mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 11:42:39 -06:00
Remove fire difficulty
This commit is contained in:
parent
aa011d98a3
commit
8a431f83a4
1 changed files with 4 additions and 10 deletions
|
@ -69,7 +69,6 @@ class BattleCalculatorAI:
|
|||
self.__skillCreditMultiplier = simbase.air.baseXpMultiplier
|
||||
self.tutorialFlag = tutorialFlag
|
||||
self.trainTrapTriggered = False
|
||||
self.fireDifficulty = 0
|
||||
|
||||
def setSkillCreditMultiplier(self, mult):
|
||||
self.__skillCreditMultiplier = simbase.air.baseXpMultiplier * mult
|
||||
|
@ -516,19 +515,14 @@ class BattleCalculatorAI:
|
|||
elif atkTrack == FIRE:
|
||||
suit = self.battle.findSuit(targetId)
|
||||
if suit:
|
||||
costToFire = 1 + self.fireDifficulty
|
||||
abilityToFire = toon.getPinkSlips()
|
||||
numLeft = abilityToFire - costToFire
|
||||
if numLeft < 0:
|
||||
numLeft = 0
|
||||
toon.b_setPinkSlips(numLeft)
|
||||
self.fireDifficulty += 1
|
||||
if costToFire > abilityToFire:
|
||||
slips = toon.getPinkSlips()
|
||||
|
||||
if slips < 1:
|
||||
simbase.air.writeServerEvent('suspicious', toonId, 'Toon attempting to fire a %s cost cog with %s pinkslips' % (costToFire, abilityToFire))
|
||||
print 'Not enough PinkSlips to fire cog - print a warning here'
|
||||
else:
|
||||
suit.skeleRevives = 0
|
||||
attackDamage = suit.getHP()
|
||||
toon.b_setPinkSlips(slips - 1)
|
||||
else:
|
||||
attackDamage = 0
|
||||
bonus = 0
|
||||
|
|
Loading…
Reference in a new issue