luciensadi / AwakeMUD

The Community Edition fork of the 'Awakened Worlds' Shadowrun 3 MUD codebase.
Other
55 stars 31 forks source link

Prevent reaching 0 essence #681

Closed jdevnull closed 1 year ago

jdevnull commented 1 year ago

Using < here instead of <= means you're not prevented from reaching 0 essence on a cyberware install. SR3 pg 56, an essence of 0 means you're dead.

Khai

jdevnull commented 1 year ago

One questionable bit about my fix is that by the book, 0.001 is still alive. But because essence values here are treated as x100 and turned into integers, rounding of essence costs can cause such an operation to be treated as 0.00 and so block it from happening.

luciensadi commented 1 year ago

It's a step in the right direction, thanks!