* Quick, send it!
* no spaces, no fun
* Noooo I have to adhere to good code standards
_humanoidAppearance.SetBaseLayerId(target, HumanoidVisualLayers.Snout, zombiecomp.BaseLayerExternal, humanoid: huApComp);
//This is done here because non-humanoids shouldn't get baller damage
- //lord forgive me for the hardcoded damage
- DamageSpecifier dspec = new()
- {
- DamageDict = new()
- {
- { "Slash", 13 },
- { "Piercing", 7 },
- { "Structural", 10 }
- }
- };
- melee.Damage = dspec;
+ melee.Damage = zombiecomp.DamageOnBite;
// humanoid zombies get to pry open doors and shit
var pryComp = EnsureComp<PryingComponent>(target);
}
};
+ /// <summary>
+ /// The damage dealt on bite, dehardcoded for your enjoyment
+ /// </summary>
+ [DataField]
+ public DamageSpecifier DamageOnBite = new()
+ {
+ DamageDict = new()
+ {
+ { "Slash", 13 },
+ { "Piercing", 7 },
+ { "Structural", 10 }
+ }
+ };
+
/// <summary>
/// Path to antagonist alert sound.
/// </summary>