greedyj4ck / DEGENESIS-FoundryVTT

DEGENESIS: Rebirth system for Foundry Virtual Tabletop
26 stars 22 forks source link

Spend Ego/Spore lasts 2 initiative rolls #173

Open Dentatum opened 4 months ago

Dentatum commented 4 months ago

When rolling for initiative after spending ego/spore, initiative value gets stuck for the next roll and does a second roll as if ego/spore points where spent but they are not.

Steps reproduced: On character sheet PSY+Reaction 6 image image

3 Ego points spent and 9 dice rolled, this looks fine image

However, when I go back to the character sheet, Initiative is shown as 9D with no ego spent image

If I roll for initiative again (no ego spent this time), it rolls 9D, where it should be 6D image

After rolling this second time, Initiative gets updated and goes back to 6D. The total ego spent on these two rolls is 3. image image


Steps reproduced: On aberrant sheet Initiative 8D 3 Spore points spent, 11D rolled Second roll, no spore spent, 11D rolled again image

On a third roll, no spores spent, it goes back to 8D image

greedyj4ck commented 2 months ago

Initiative roll is handled as action roll (mechanically in code). Initiative is changed to 9D since its adding bonus to first action reserved for other rolls.

This needs to be redesigned on core level.