Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: How do I adjust the maximum attribute value?  (Read 2288 times)

Pwnzerfaust

  • Bay Watcher
  • It's evolution, baby!
    • View Profile
How do I adjust the maximum attribute value?
« on: June 17, 2017, 03:22:35 pm »

I've been rooting around in the source code for a couple hours now with no results. I'm trying to figure out how to adjust the maximum attribute to whatever arbitrary number I decide. I found a MAXATTRIBUTE define but that's set to 99, so that's obviously not the culprit. Where's the code which sets attribute upper bounds to 20?
Logged
Give an elf a fire and he's warm for a night. Drop an elf in magma and he's warm for the rest of his life.

SlatersQuest

  • Bay Watcher
    • View Profile
Re: How do I adjust the maximum attribute value?
« Reply #1 on: June 17, 2017, 07:48:12 pm »

The upper bound is not 20. If you note, a yoga instructor (starts with health 10) who gets up to 1000 juice will have have a health stat of 21 :)

The ranges are defined in Creatures.xml, which sets the default maximum stat for most classes at 10. There are a few classes that can have more than this (hippies have higher heart, etc.), but that's the general rule. Your founder is not restricted by this limit.
Logged

Pwnzerfaust

  • Bay Watcher
  • It's evolution, baby!
    • View Profile
Re: How do I adjust the maximum attribute value?
« Reply #2 on: June 18, 2017, 03:16:33 am »

Huh, I thought it was capped at 20 for the founder. I stand corrected! Thanks.
Logged
Give an elf a fire and he's warm for a night. Drop an elf in magma and he's warm for the rest of his life.