zryych wrote:
Quote:
- Added -1 peak stat penalty to spirit disorientation
- Refactor existing spells to use peak stat modifier
It may just be too early, but I'm not really following this. Could you explain this a little more?
Code:
oOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOo
o [Affects] XXXXXXX, New to Pyrathia o
o===-===-===-===-===-===-===-===-===-===-===-===-===-===-===-===-===-===-===o
o Affect: 'spirit disorientation' - penalty to peak attributes o
o Affect: 'spirit disorientation' - penalty to attributes o
oOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOo
Peak stat modifiers encapsulate the previously hidden game effect of modifying your peak statistical capacity. Enough spells were doing this now to make maintenance a chore and so I refactored it. Instead of them being modified directly by code for various situations, they have now been institutionalized into a game modifier of their own.
And while doing so I took the opportunity to make spirit disorientation and fatigue a bit more penalizing. In this case, spirit disorientation not only reduces your stats but also your maximum stats. And like before, this will stack with multiple spirit disorientations. So you can no longer ignore the effects of spirit disorientation just by having a bunch of buffs on your gear.
Code:
oOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOo
o [Affects] XXXXXXX, New to Pyrathia o
o===-===-===-===-===-===-===-===-===-===-===-===-===-===-===-===-===-===-===o
o Affect: 'fatigue' - penalty to peak strength o
oOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOoOOOo
Meanwhile, instead of fatigue always penalizing your constitution, it now penalizes the specific stat which had been previously buffed. So if you are have been buffed by giant strength, when it wears off you will have a strength penalty instead of a constitution penalty. Fatigue always modified your stat cap (constitution), but it will show up on your affect list now.