mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
DANIEL: "Toon has went sad"
This commit is contained in:
parent
8751f73779
commit
8c0eed8214
3 changed files with 9 additions and 5 deletions
|
@ -548,7 +548,7 @@ def getToonTrack(attack, damageDelay = 1e-06, damageAnimNames = None, dodgeDelay
|
|||
animTrack = Sequence()
|
||||
animTrack.append(Func(toon.headsUp, battle, suitPos))
|
||||
if dmg > 0:
|
||||
animTrack.append(getToonTakeDamageTrack(toon, target['died'], dmg, damageDelay, damageAnimNames, splicedDamageAnims, showDamageExtraTime))
|
||||
animTrack.append(getToonTakeDamageTrack(toon, attack, target['died'], dmg, damageDelay, damageAnimNames, splicedDamageAnims, showDamageExtraTime))
|
||||
return animTrack
|
||||
else:
|
||||
animTrack.append(getToonDodgeTrack(target, dodgeDelay, dodgeAnimNames, splicedDodgeAnims, showMissedExtraTime))
|
||||
|
@ -704,7 +704,7 @@ def throwPos(t, object, duration, target, values, gravity = -32.144):
|
|||
object.setPos(x, y, z)
|
||||
|
||||
|
||||
def getToonTakeDamageTrack(toon, died, dmg, delay, damageAnimNames = None, splicedDamageAnims = None, showDamageExtraTime = 0.01):
|
||||
def getToonTakeDamageTrack(toon, attack, died, dmg, delay, damageAnimNames = None, splicedDamageAnims = None, showDamageExtraTime = 0.01):
|
||||
toonTrack = Sequence()
|
||||
toonTrack.append(Wait(delay))
|
||||
if damageAnimNames:
|
||||
|
@ -718,7 +718,9 @@ def getToonTakeDamageTrack(toon, died, dmg, delay, damageAnimNames = None, splic
|
|||
indicatorTrack = Sequence(Wait(delay + showDamageExtraTime), Func(__doDamage, toon, dmg, died))
|
||||
toonTrack.append(Func(toon.loop, 'neutral'))
|
||||
if died:
|
||||
toonTrack.append(Wait(5.0))
|
||||
pbpText = attack['playByPlayText']
|
||||
|
||||
toonTrack.append(pbpText.getToonsDiedInterval([TTLocalizer.ToonDefeatedMessage % toon.getName()], 7.0))
|
||||
return Parallel(toonTrack, indicatorTrack)
|
||||
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ class PlayByPlayText(OnscreenText.OnscreenText):
|
|||
return Sequence(Func(self.hide), Wait(duration * 0.3), Func(self.setText, text), Func(self.show), Wait(duration * 0.7), Func(self.hide))
|
||||
|
||||
def getToonsDiedInterval(self, textList, duration):
|
||||
track = Sequence(Func(self.hide), Wait(duration * 0.3))
|
||||
track = Sequence(Func(self.hide), Wait(duration * 0.1))
|
||||
waitGap = 0.6 / len(textList) * duration
|
||||
for text in textList:
|
||||
newList = [Func(self.setText, text),
|
||||
|
|
|
@ -6967,7 +6967,7 @@ TipDict = {TIP_NONE: ('',),
|
|||
'Each street in Toontown has different Cog levels and types.',
|
||||
'Sidewalks are safe from Cogs.',
|
||||
'On the streets, side doors tell knock-knock jokes when approached.',
|
||||
'Some ToonTasks train you for new Gag Tracks. You only get to choose six of the seven Gag Tracks, so choose carefully!',
|
||||
'Some ToonTasks train you for new Gag Tracks.',
|
||||
'Traps are only useful if you or your friends coordinate using Lure in battle.',
|
||||
'Higher level Lures are less likely to miss.',
|
||||
'Lower level gags have a lower accuracy against high level Cogs.',
|
||||
|
@ -8470,3 +8470,5 @@ def convertSecondsToDate(seconds):
|
|||
|
||||
print '%d:%02d:%02d' % (h, m, s)
|
||||
return '%d:%02d:%02d' % (h, m, s)
|
||||
|
||||
ToonDefeatedMessage = '%s was defeated!'
|
||||
|
|
Loading…
Reference in a new issue