Rotwood-Vale / Ratwood-Keep

GNU Affero General Public License v3.0
22 stars 259 forks source link

[BUG] Unexpected Behavior for Werewolf Conversion #331

Open Yawet330 opened 3 months ago

Yawet330 commented 3 months ago

Describe the bug

Due to how the infection code now works, it appears as if the INFECTION_ATTEMPT proc can occur twice in the same tick (and in general, wounds seem to be ticking extremely fast - I was bleeding up to 4x through a bandage per instance) if you somehow experience two wounds at once (double-bite). This causes Werewolf transformation timers to break - sometimes leading to Werewolves being unable to transform until the next Night (which often kills new converts)

Round ID:

image

Steps to Reproduce:

image Be bit twice, see two infection messages, die because moonlight doesn't transform you.

Additional context

This seems to be related to being bit in rapid succession (and the fact the infection is based on wounds, rather than the limb itself)

Drayco84 commented 3 months ago

A good solution to the infection timer issue is to prolly make it so new infections don't override the initial one, or even cut down the timer. Mostly, this would be an if/then line to check if there's an existing infection and then go from there.