Changeset 489:e5c060dda22a


Ignore:
Timestamp:
04/09/11 20:25:43 (12 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Phase:
public
Rebase:
30326331646334623534396464386161383166313863653362326438363131316664633364373664
Message:

Rekill zombie player_action methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/sprites/items.py

    r474 r489  
    120120    image_file = 'props/kindling.png'
    121121
    122     def player_action(self, player):
    123         if player.has_item('oil'):
    124             set_fire(player, self)
    125         else:
    126             player.take_item(self)
    127 
    128122
    129123class Oil(Item):
    130124    image_file = 'props/oil.png'
    131 
    132     def player_action(self, player):
    133         if player.has_item('kindling'):
    134             set_fire(player, self)
    135         else:
    136             player.take_item(self)
    137 
    138125
    139126
Note: See TracChangeset for help on using the changeset viewer.