mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
Toons can't destroy other toon's money.
This commit is contained in:
parent
5101a94e5a
commit
210a8f012e
1 changed files with 8 additions and 3 deletions
|
@ -182,6 +182,11 @@ class DistributedGardenPlotAI(DistributedLawnDecorAI):
|
|||
|
||||
def plantNothing(self, burntBeans, toon):
|
||||
# TODO: Fix exploit.
|
||||
av = simbase.air.doId2do.get(toon)
|
||||
av.takeMoney(burntBeans)
|
||||
self.planted = None
|
||||
estate = simbase.air.doId2do.get(self.getEstate())
|
||||
sendAvId = self.air.getAvatarIdFromSender()
|
||||
if sendAvId != toon or burntBeans > 8 or sendAvId not in estate.toons:
|
||||
self.air.writeServerEvent('suspicious', sendAvId, 'DistributedGardenPlotAI.plantNothing attempted exploit')
|
||||
else:
|
||||
av = simbase.air.doId2do.get(toon)
|
||||
av.takeMoney(burntBeans)
|
||||
self.planted = None
|
||||
|
|
Loading…
Reference in a new issue