CorsixTH Forums

Community => Hospital Café => Topic started by: Jima on October 08, 2018, 12:54:23 PM

Title: Plants
Post by: Jima on October 08, 2018, 12:54:23 PM
Hello

First, i want to thanks the corsix team for the rework.


And, is it possible for me to change something in my game?

Make the plants disappear instead of being tier 3 of drying.


Have a nice day at least.
Title: Re: Plants
Post by: LeDocteur on October 08, 2018, 05:33:17 PM
You can edit the Lua\objects\plant.lua file, go to function Plant:tickDay() and replace
self:setNextState() with
self:setNextState() if self.current_state >= 5 then self.world:destroyEntity(self) return end

But that would be a bad idea, plants will slowly disappear from the game if they aren't watered in time which can be very annoying.
Title: Re: Plants
Post by: Jima on October 08, 2018, 07:23:57 PM
Oh ty a lot.
Can i modify the duration of the first stade of drying?

Nice day.
Title: Re: Plants
Post by: LeDocteur on October 09, 2018, 05:29:04 PM
Yep, to change the drying time, in the same file find the line
local days_between_states = 75
and change it to whatever value you want, for example 150 will make the plants last double.
Title: Re: Plants
Post by: Jima on October 09, 2018, 06:34:41 PM
Ty again!

 Last thing, can i remove the blocking placement with empty cases system?

ND
Title: Re: Plants
Post by: LeDocteur on October 10, 2018, 01:38:16 PM
You mean to let people walk over plants? Same file, find all complete_cell = true and set them to false, I think it should work.

Have fun!
Title: Re: Plants
Post by: Jima on October 10, 2018, 02:39:00 PM
I wasn't asking for that but i find how to do. I explained badly.
Ty at least.

ND