mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 19:52:37 -06:00
Donalds Dock water fixed
This commit is contained in:
parent
e24791c307
commit
b726175902
2 changed files with 11 additions and 0 deletions
|
@ -41,6 +41,11 @@ class DDSafeZoneLoader(SafeZoneLoader.SafeZoneLoader):
|
|||
random.shuffle(TTLocalizer.DonaldChatter)
|
||||
self.donaldSpeech = self.donald.createTalkSequence(TTLocalizer.DonaldChatter, 15)
|
||||
self.donaldSpeech.loop(0)
|
||||
|
||||
water = self.geom.find('**/water')
|
||||
|
||||
water.setColorScale(1, 1, 1, 0.7)
|
||||
water.setTransparency(1)
|
||||
|
||||
def unload(self):
|
||||
SafeZoneLoader.SafeZoneLoader.unload(self)
|
||||
|
|
|
@ -90,7 +90,13 @@ class Walk(StateData.StateData):
|
|||
self.swimSoundPlaying = 0
|
||||
self.swimSound.stop()
|
||||
|
||||
saturation = min(max((base.localAvatar.getZ() / -12.3), 0.51), 1)
|
||||
self.getFog().setColor(*colorsys.hsv_to_rgb(0.616, saturation, 0.5))
|
||||
|
||||
return Task.cont
|
||||
|
||||
def getFog(self):
|
||||
return base.cr.playGame.hood.fog if hasattr(base.cr.playGame.hood, 'fog') else base.cr.playGame.place.fog
|
||||
|
||||
def enterSlowWalking(self):
|
||||
self.accept(base.localAvatar.uniqueName('positiveHP'), self.__handlePositiveHP)
|
||||
|
|
Loading…
Reference in a new issue