Zombies recover faster from crit. They heal Piercing damage (#16325)

This commit is contained in:
Tom Leys
2023-05-16 15:58:36 +12:00
committed by GitHub
parent 525d746d6e
commit eab0121744
4 changed files with 68 additions and 8 deletions

View File

@@ -26,6 +26,25 @@ namespace Content.Shared.Zombies
[ViewVariables(VVAccess.ReadWrite)]
public float MaxZombieInfectionChance = 0.40f;
/// <summary>
/// Chance that this zombie be permanently killed (rolled once on crit->death transition)
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
public float ZombiePermadeathChance = 0.70f;
/// <summary>
/// Chance that this zombie will be healed (rolled each second when in crit or dead)
/// 3% means you have a 60% chance after 30 secs and a 84% chance after 60.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
public float ZombieReviveChance = 0.03f;
/// <summary>
/// Has this zombie stopped healing now that it's died for real?
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
public bool Permadeath = false;
/// <summary>
/// The minimum infection chance possible. This is simply to prevent
/// being invincible by bundling up.
@@ -97,8 +116,9 @@ namespace Content.Shared.Zombies
{
DamageDict = new ()
{
{ "Blunt", -0.3 },
{ "Blunt", -0.4 },
{ "Slash", -0.2 },
{ "Piercing", -0.2 },
{ "Heat", -0.2 },
{ "Cold", -0.2 },
{ "Shock", -0.2 },