Skip to content

Commit

Permalink
cellular damage removed
Browse files Browse the repository at this point in the history
  • Loading branch information
HellCatten committed Aug 29, 2024
1 parent c1898a4 commit 3221010
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions Content.Server/Cloning/CloningSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,9 @@ public bool TryCloning(EntityUid uid, EntityUid bodyToClone, Entity<MindComponen
_material.TryChangeMaterialAmount(uid, clonePod.RequiredMaterial, -cloningCost);
clonePod.UsedBiomass = cloningCost;
// end of biomass checks
FixedPoint2 cellularDmg = default!; //wd edit
// genetic damage checks
if (TryComp<DamageableComponent>(bodyToClone, out var damageable) &&
damageable.Damage.DamageDict.TryGetValue("Cellular", out cellularDmg))
damageable.Damage.DamageDict.TryGetValue("Cellular", out var cellularDmg))
{
var chance = Math.Clamp((float) (cellularDmg / 100), 0, 1);
chance *= failChanceModifier;
Expand All @@ -261,13 +260,7 @@ public bool TryCloning(EntityUid uid, EntityUid bodyToClone, Entity<MindComponen

var mob = FetchAndSpawnMob(clonePod, pref, speciesPrototype, humanoid, bodyToClone, karmaBonus); //DeltaV Replaces CloneAppearance with Metem/Clone via FetchAndSpawnMob

// WD EDIT START
if (TryComp<DamageableComponent>(mob, out var damage))
{
var damageSpec = new DamageSpecifier(_prototype.Index<DamageTypePrototype>("Cellular"), cellularDmg);
_damage.TryChangeDamage(mob,damageSpec,true,false);
}

// WD EDIT START | Adds hunger, thirst and drunkness as a debuff
if (TryComp<HungerComponent>(mob, out var hungerComponent) &&
TryComp<ThirstComponent>(mob,out var thirstComponent))
{
Expand Down

0 comments on commit 3221010

Please sign in to comment.