draconisPW / PWMAngband

A free, multi-player roguelike dungeon exploration game based on Angband
35 stars 12 forks source link

Prevent negative value for [MOVES] #263

Closed igroglaz closed 3 years ago

igroglaz commented 4 years ago

negative value for [MOVES] is great for race's rebalances. also for some items.

[22:28] PowerWyrm: I also need to check if "moves" can be negative on cursed randarts, that would be a bug that would also happen in V and I would have to report it there

draconisPW commented 4 years ago

MOVES cannot be negative, I checked the code and it's not possible, energy is capped at what a character can spend and negative moves would do nothing except crash the game. I need to ensure that this is always positive, especially on randarts. For randarts, more checks must be made for other modifiers.

To lower movement for chars, use -SPEED instead. It's more brutal, but is the only way to work with extra energy consumption.

igroglaz commented 3 years ago

damm.. :( it's sad that so 'easy' thing like reducing movement speed is impossible to implement in roguelike game (which got much more gamedesign possibilities in general); while in any MMORPG it's EZPZ thing.

Having possibility to slow down only player movement, but not other actions - is really great thing which makes gameplay more diverse...

igroglaz commented 3 years ago

as energy = base energy / moves... maybe then [MOVES] could be changed to work like speed, but only for movement? so there won't be need to divide.. like a special case of 'speed' parameter

draconisPW commented 3 years ago

Cannot work as of Angband's implementation because energy cannot be greater than base energy (it's a hard cap that cannot be removed due to how energy is implemented -- changing this would require redesigning the game completely).

draconisPW commented 3 years ago

I've harmonized all modifiers so they can all have negative values, but the result must compel to the minimum value for each one. This means:

Concerning MOVES, this means a value of -1 on object or race/class will have no effect, but you will need to find something that has +2 MOVES to counterbalance it if you want to benefit from faster movement speed. At least until the V team finds a way to expand energy differently.