Despite the beta adding a parasite hosted tag check shown below:
self.OnPlayerKilledOther = function(player, data) local victim = data and data.victim or nil if victim == nil then return end if victim:HasAnyTag("rabbit", "manrabbit") and not victim:HasTag("shadowthrall_parasite_hosted") then local naughtiness = FunctionOrValue(NAUGHTY_VALUE[victim.prefab] or 1, player, data) self:AddNaughtinessFromPlayer(player, naughtiness) end end
It doesn't work because the tag is removed at that point in time.
The reason this happens is due to:
- "death" event fires (before "killed" event, which is what rabbitkingmanager listens to from players).
- The parasite mask has a death listener to unequip the mask (shown below).
- Unequipping the mask removes the parasite hosted tag (shown below).
- "killed" event eventually fires from combat component, and manages to go through the check due to the tag being missing, and adds naughtiness anyway.
-- when this event is fired, this also fires the event below fns.shadowthrall_parasite_ondeath = function(owner, data) owner.components.inventory:Unequip(EQUIPSLOTS.HEAD) end fns.shadowthrall_parasite_onunequip = function(inst, owner) _onunequip(inst, owner) inst:RemoveEventCallback("death", fns.shadowthrall_parasite_ondeath, owner) inst:RemoveEventCallback("killed", fns.shadowthrall_parasite_onkilledsomething, owner) owner:RemoveTag("shadowthrall_parasite_hosted") -- rest of the function end
Since you intend to fix this issue, could I bother you to look at this report I made a while ago too? It's also related to parasite Bunnymen (and Werepigs) having a small, but noticeable, inconsistency with non-parasite ones. It'd be really simple to address.
Steps to Reproduce
- Kill a parasite hosted Bunnyman.
- Notice how naughtiness to spawn the rabbit king still gets added.
I realize typing this, maybe you should make sure that naughtiness in general isn't added with parasite hosted kills. It's clearly not intended with the Rabbit King, but wouldn't that mean that it also shouldn't be the case with Krampus?
-
3
-
1
A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now