fixed typos and made more readable

make use of the fact we have this_player defined in event_heart_beat if
light object is inside players inventory.