Author Topic: How do mutations function?  (Read 143 times)

Offline Mr. Moustache

  • Zombie Food
  • *
  • Posts: 41
    • View Profile
How do mutations function?
« on: September 09, 2017, 03:47:43 AM »
So I've been tweaking around with the mutation .jsons and I'm getting pretty confused. Some mutations seem to be nothing but a description and some points, but they obviously do more, like the Night Vision traits for example. My question is, where do I go to find these seemingly hidden values? I mainly want to tweak dodge chance, hearing range, and night vision. By the way, I'm not a very skilled coder.
Am I supposed to put something funny here?

Offline Squaggly Maggleton

  • Zombie Food
  • *
  • Posts: 39
    • View Profile
Re: How do mutations function?
« Reply #1 on: September 09, 2017, 04:52:09 AM »
I *believe* that some effects are hard-coded. I read that somewhere, but it was from like 2013 and they've been slowly jsonizing everything since then.

Offline i2amroy

  • Contributor
  • Survivor
  • ****
  • Posts: 2783
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: How do mutations function?
« Reply #2 on: September 09, 2017, 06:21:35 PM »
A *lot* of the effects of mutations are simply hardcoded, and there isn't really a good way to fix it. Over time a lot of them have been able to be JSONized due to their similarity to other mutations (basic stat manipulations, etc.), but since a lot of mutations are just simple one-offs in the code (and sometimes have pretty deep-reaching, rather unique effects) they haven't really been worth the time it would take to JSONize yet.

Assuming it's been kept sort of up to date you should be able to find most things that you can currently do with mutations in JSON here.

Offline Mr. Moustache

  • Zombie Food
  • *
  • Posts: 41
    • View Profile
Re: How do mutations function?
« Reply #3 on: September 10, 2017, 04:55:04 AM »
Well that's a bummer, but thanks for the help!
Am I supposed to put something funny here?