projects
/
koperkapel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ctpug.org.za:koperkapel
[koperkapel.git]
/
koperkapel
/
vehicles
/
base.py
diff --git
a/koperkapel/vehicles/base.py
b/koperkapel/vehicles/base.py
index ba4fbb77325b0542d32d7cb35e0d0d8a302be57f..47588a59c5450aaaabd5f74ac120302c65037f50 100644
(file)
--- a/
koperkapel/vehicles/base.py
+++ b/
koperkapel/vehicles/base.py
@@
-42,6
+42,12
@@
class Vehicle:
# line below records new seating on the world proxy
vehicle.seating = seating
# line below records new seating on the world proxy
vehicle.seating = seating
+ def roach_at(self, world, seat_pos):
+ roach_seating = world.vehicles[self.vehicle_type].seating
+ if seat_pos >= len(roach_seating):
+ return None
+ return roach_seating[seat_pos]
+
_vehicle_types = {}
@classmethod
_vehicle_types = {}
@classmethod