December 13, 2018, 11:52:04 AMLatest Member: Petakerky

Author Topic: Plants  (Read 316 times)

0 Members and 1 Guest are viewing this topic.

Jima

  • Registered member
  • *
  • Posts: 6
    • View Profile
Plants
« 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.
« Last Edit: October 08, 2018, 07:24:56 PM by Jima »

LeDocteur

  • Registered member
  • *
  • Posts: 14
    • View Profile
Re: Plants
« Reply #1 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.

Jima

  • Registered member
  • *
  • Posts: 6
    • View Profile
Re: Plants
« Reply #2 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.
« Last Edit: October 09, 2018, 10:46:50 AM by Jima »

LeDocteur

  • Registered member
  • *
  • Posts: 14
    • View Profile
Re: Plants
« Reply #3 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.

Jima

  • Registered member
  • *
  • Posts: 6
    • View Profile
Re: Plants
« Reply #4 on: October 09, 2018, 06:34:41 PM »
Ty again!

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

ND
« Last Edit: October 10, 2018, 12:12:57 PM by Jima »

LeDocteur

  • Registered member
  • *
  • Posts: 14
    • View Profile
Re: Plants
« Reply #5 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!

Jima

  • Registered member
  • *
  • Posts: 6
    • View Profile
Re: Plants
« Reply #6 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
« Last Edit: October 21, 2018, 10:56:47 AM by Jima »