Changeset 359:eacb3e1bc1d1


Ignore:
Timestamp:
04/09/11 12:14:53 (12 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Phase:
public
Message:

Only drop items while standing on ground.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/sprites/player.py

    r357 r359  
    262262        if self._touching_actionables:
    263263            self._touching_actionables[0].player_action(self)
    264         elif self._me.item is not None:
     264        elif self._me.item is not None and self.on_solid:
    265265            self.drop_item()
    266266
     
    366366                self._image_dict[standing_key] = [self._image_dict[key][0]]
    367367
     368
    368369    def discard_item(self):
    369370        self._me.item = None
Note: See TracChangeset for help on using the changeset viewer.