Jump to content

Recommended Posts

Okay, so I'm working on modifying a small mod so that it works with Shipwrecked, and I am unsure as to what the seasons should be called in the new DLC compared to the old. Here's a chunk of code so you get the idea.

function self:PlayDuskTheme()		self.season = GetSeasonManager().current_season		if self.season == SEASONS.WINTER then			self.inst.SoundEmitter:PlaySound( "continuousmusicmod/music/music_work_winter_dusk", "busy")		elseif self.season == SEASONS.SPRING then			self.inst.SoundEmitter:PlaySound( "continuousmusicmod/music/music_work_spring_dusk", "busy")		elseif self.season == SEASONS.SUMMER and rogEnabled then			self.inst.SoundEmitter:PlaySound( "continuousmusicmod/music/music_work_summer_dusk", "busy")		else --autumn			self.inst.SoundEmitter:PlaySound( "continuousmusicmod/music/music_work_dusk", "busy")		end		if continuous_mode then			self.busy_started = true		end

I want to change WINTER, SPRING, and SUMMER to the corresponding DLC seasons, and I want to alter rogEnabled to check for Shipwrecked (or not check for anything since I plan to make it only compatible with Shipwrecked, as a replacement for the one that is used for RoG). My main issue is I'm not sure what the code would reference these seasons as. Any help would be appreciated.

 

I would upload the main ModMain.lua as a whole, but it's not technically all my code and I want to alter as little as possible from the original maker and have it work. If anyone wants to add me on Skype or PM me on the forums, we can discuss it more there, but as of now, I'm not making the modmain.lua public.

 

That's all for now, any feedback, help, etc. would be appreciated. I hope to work with someone soon!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...