Husk infection state can be decreased after the infection reaches the active state (causing the husk appendage to be removed). Calyxanide still has a conditional preventing the decrease, but now it's possible for modders to revert huskification without code modifications. Closes #258
This commit is contained in:
@@ -393,13 +393,11 @@ namespace Barotrauma
|
||||
set
|
||||
{
|
||||
if (ConfigPath != humanConfigFile) return;
|
||||
|
||||
|
||||
if (value <= 0.0f)
|
||||
{
|
||||
if (huskInfection != null)
|
||||
{
|
||||
//already active, can't cure anymore
|
||||
if (huskInfection.State == HuskInfection.InfectionState.Active) return;
|
||||
huskInfection.Remove(this);
|
||||
huskInfection = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user