Added dtEnvitonment to player damage text (#4925)

+ Added dtEnvironment to string conversion
+ Added dtEnvironment to player damage strings
This commit is contained in:
12xx12
2020-09-22 12:38:55 +01:00
committed by GitHub
parent 51e026a3ae
commit a0dd311d02
+1
View File
@@ -1203,6 +1203,7 @@ void cPlayer::KilledBy(TakeDamageInfo & a_TDI)
case dtAdmin: return "was administrator'd";
case dtExplosion: return "blew up";
case dtAttack: return "was attacked by thin air";
case dtEnvironment: return "played too much dress up"; // This is not vanilla - added a own pun
}
UNREACHABLE("Unsupported damage type");
}();