mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 12:12:36 -06:00
Donalds Dock water fixed
This commit is contained in:
parent
e24791c307
commit
b726175902
2 changed files with 11 additions and 0 deletions
|
@ -42,6 +42,11 @@ class DDSafeZoneLoader(SafeZoneLoader.SafeZoneLoader):
|
||||||
self.donaldSpeech = self.donald.createTalkSequence(TTLocalizer.DonaldChatter, 15)
|
self.donaldSpeech = self.donald.createTalkSequence(TTLocalizer.DonaldChatter, 15)
|
||||||
self.donaldSpeech.loop(0)
|
self.donaldSpeech.loop(0)
|
||||||
|
|
||||||
|
water = self.geom.find('**/water')
|
||||||
|
|
||||||
|
water.setColorScale(1, 1, 1, 0.7)
|
||||||
|
water.setTransparency(1)
|
||||||
|
|
||||||
def unload(self):
|
def unload(self):
|
||||||
SafeZoneLoader.SafeZoneLoader.unload(self)
|
SafeZoneLoader.SafeZoneLoader.unload(self)
|
||||||
|
|
||||||
|
|
|
@ -90,8 +90,14 @@ class Walk(StateData.StateData):
|
||||||
self.swimSoundPlaying = 0
|
self.swimSoundPlaying = 0
|
||||||
self.swimSound.stop()
|
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
|
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):
|
def enterSlowWalking(self):
|
||||||
self.accept(base.localAvatar.uniqueName('positiveHP'), self.__handlePositiveHP)
|
self.accept(base.localAvatar.uniqueName('positiveHP'), self.__handlePositiveHP)
|
||||||
base.localAvatar.startTrackAnimToSpeed()
|
base.localAvatar.startTrackAnimToSpeed()
|
||||||
|
|
Loading…
Reference in a new issue