DistributedGolfSpot: Add config option to have classic TTO golf damage

This commit is contained in:
Michael G 2026-07-30 04:15:24 -04:00 committed by GitHub
parent ada498764a
commit f63c280439
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -716,7 +716,10 @@ class DistributedGolfSpot(DistributedObject.DistributedObject, FSM.FSM):
throwerId))
if flyBallCode == ToontownGlobals.PieCodeBossCog and self.avId == localAvatar.doId and self.lastHitSequenceNum != self.__flyBallSequenceNum:
self.lastHitSequenceNum = self.__flyBallSequenceNum
self.boss.d_ballHitBoss(2)
if base.config.GetBool('want-ceo-golf-classic-damage', False):
self.boss.d_ballHitBoss(1)
else:
self.boss.d_ballHitBoss(2)
elif flyBallCode == ToontownGlobals.PieCodeToon and self.avId == localAvatar.doId and self.lastHitSequenceNum != self.__flyBallSequenceNum:
self.lastHitSequenceNum = self.__flyBallSequenceNum
avatarDoId = entry.getIntoNodePath().getNetTag('avatarDoId')