Skip to content

Commit

Permalink
Wd comments
Browse files Browse the repository at this point in the history
  • Loading branch information
HellCatten committed Aug 29, 2024
1 parent f261fc1 commit c1898a4
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Content.Server/Cloning/CloningSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ public sealed class CloningSystem : EntitySystem
[Dependency] private readonly SharedJobSystem _jobs = default!;
[Dependency] private readonly MetempsychoticMachineSystem _metem = default!; //DeltaV
[Dependency] private readonly TagSystem _tag = default!; //DeltaV
[Dependency] private readonly DamageableSystem _damage = default!;
[Dependency] private readonly HungerSystem _hunger = default!;
[Dependency] private readonly ThirstSystem _thirst = default!;
[Dependency] private readonly SharedDrunkSystem _drunk = default!;
[Dependency] private readonly DamageableSystem _damage = default!; //WD edit
[Dependency] private readonly HungerSystem _hunger = default!; //WD edit
[Dependency] private readonly ThirstSystem _thirst = default!; //WD edit
[Dependency] private readonly SharedDrunkSystem _drunk = default!; //WD edit

public readonly Dictionary<MindComponent, EntityUid> ClonesWaitingForMind = new();
public const float EasyModeCloningCost = 0.7f;
Expand Down Expand Up @@ -237,7 +237,7 @@ 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!;
FixedPoint2 cellularDmg = default!; //wd edit
// genetic damage checks
if (TryComp<DamageableComponent>(bodyToClone, out var damageable) &&
damageable.Damage.DamageDict.TryGetValue("Cellular", out cellularDmg))
Expand All @@ -261,6 +261,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);
Expand All @@ -274,7 +275,7 @@ public bool TryCloning(EntityUid uid, EntityUid bodyToClone, Entity<MindComponen
_thirst.SetThirst(mob,thirstComponent,50);
_drunk.TryApplyDrunkenness(mob,300);
}

// WD EDIT END

///Nyano - Summary: adds the potential psionic trait to the reanimated mob.
EnsureComp<PotentialPsionicComponent>(mob);
Expand Down

0 comments on commit c1898a4

Please sign in to comment.