Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Item rot  (Read 637 times)

zakhad

  • Bay Watcher
    • View Profile
Item rot
« on: June 25, 2016, 08:28:05 pm »

Is it possible to edit how fast or slow decay effects food/clothing? if so any chance anyone could point me in the right direction (file/ directory?)
Logged
LP'er

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Item rot
« Reply #1 on: June 26, 2016, 09:36:53 am »

Its in hack/scripts/deterioratefood.rb
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

zakhad

  • Bay Watcher
    • View Profile
Re: Item rot
« Reply #2 on: June 26, 2016, 12:13:15 pm »

Thank you, I've never edited ruby before, thankfully notepad ++ works,


Code: [Select]
if (i.wear_timer > 24 + rand(8))
if (i.wear_timer > (this is the bit that extends its shelf life?) +  rand( 8 )) and this bit is just a random extension between 0 to 8 for a bit of variation?
« Last Edit: June 26, 2016, 12:16:30 pm by zakhad »
Logged
LP'er

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Item rot
« Reply #3 on: June 26, 2016, 12:42:17 pm »

I don't know. I neither wrote it nor understand ruby. Omniclasm is the author.
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::