Ignore:
Timestamp:
09/05/13 14:43:25 (8 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Phase:
public
Rebase:
32343633386634616336303738386161323731353264643130653532663838666335343435383630
Message:

Collect gun (which currently looks like a bullet) to shoot.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/protagonist.py

    r285 r286  
    254254            pass
    255255        else:
    256             vec = Vec2d.unit()
    257             vec.angle = self.angle
    258             vec.length = 100
    259             FireEvent.post(self.physicser.position, vec)
    260             print "Biff", self.physicser.position, vec
     256            self.shoot()
     257
     258    def shoot(self):
     259        if not self.has_item('gun'):
     260            return
     261        vec = Vec2d.unit()
     262        vec.angle = self.angle
     263        vec.length = 100
     264        FireEvent.post(self.physicser.position, vec)
     265        print "Biff", self.physicser.position, vec
    261266
    262267    def in_wolf_form(self):
Note: See TracChangeset for help on using the changeset viewer.