|
@@ -7,6 +7,8 @@ appropriately in the db web interface.
|
|
|
import DistributedObjectAI
|
|
import DistributedObjectAI
|
|
|
|
|
|
|
|
class AccountAI(DistributedObjectAI.DistributedObjectAI):
|
|
class AccountAI(DistributedObjectAI.DistributedObjectAI):
|
|
|
- def __init__(self, cr):
|
|
|
|
|
- pass
|
|
|
|
|
-
|
|
|
|
|
|
|
+ def setPirate(self, slot, avatarId):
|
|
|
|
|
+ if (not hasattr(self,'pirateAvatars')):
|
|
|
|
|
+ self.pirateAvatars = [0,0,0,0,0,0]
|
|
|
|
|
+ self.pirateAvatars[slot] = avatarId
|
|
|
|
|
+ self.sendUpdate('pirateAvatars', self.pirateAvatars)
|