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:
Joonas Rikkonen
2018-02-21 11:12:49 +02:00
parent d414e8e103
commit 24cb7a3659
4 changed files with 79 additions and 18 deletions
@@ -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;
}