mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 12:12:36 -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.__skillCreditMultiplier = simbase.air.baseXpMultiplier
|
||||||
self.tutorialFlag = tutorialFlag
|
self.tutorialFlag = tutorialFlag
|
||||||
self.trainTrapTriggered = False
|
self.trainTrapTriggered = False
|
||||||
self.fireDifficulty = 0
|
|
||||||
|
|
||||||
def setSkillCreditMultiplier(self, mult):
|
def setSkillCreditMultiplier(self, mult):
|
||||||
self.__skillCreditMultiplier = simbase.air.baseXpMultiplier * mult
|
self.__skillCreditMultiplier = simbase.air.baseXpMultiplier * mult
|
||||||
|
@ -516,19 +515,14 @@ class BattleCalculatorAI:
|
||||||
elif atkTrack == FIRE:
|
elif atkTrack == FIRE:
|
||||||
suit = self.battle.findSuit(targetId)
|
suit = self.battle.findSuit(targetId)
|
||||||
if suit:
|
if suit:
|
||||||
costToFire = 1 + self.fireDifficulty
|
slips = toon.getPinkSlips()
|
||||||
abilityToFire = toon.getPinkSlips()
|
|
||||||
numLeft = abilityToFire - costToFire
|
if slips < 1:
|
||||||
if numLeft < 0:
|
|
||||||
numLeft = 0
|
|
||||||
toon.b_setPinkSlips(numLeft)
|
|
||||||
self.fireDifficulty += 1
|
|
||||||
if costToFire > abilityToFire:
|
|
||||||
simbase.air.writeServerEvent('suspicious', toonId, 'Toon attempting to fire a %s cost cog with %s pinkslips' % (costToFire, abilityToFire))
|
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:
|
else:
|
||||||
suit.skeleRevives = 0
|
suit.skeleRevives = 0
|
||||||
attackDamage = suit.getHP()
|
attackDamage = suit.getHP()
|
||||||
|
toon.b_setPinkSlips(slips - 1)
|
||||||
else:
|
else:
|
||||||
attackDamage = 0
|
attackDamage = 0
|
||||||
bonus = 0
|
bonus = 0
|
||||||
|
|
Loading…
Reference in a new issue