Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BALANCE] Cloning Debuff #25

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Content.Server/Cloning/CloningSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Content.Server.Chat.Systems;
using Content.Server.Cloning.Components;
using Content.Server.DeviceLinking.Systems;
using Content.Server.Drunk;
using Content.Server.EUI;
using Content.Server.Fluids.EntitySystems;
using Content.Server.Humanoid;
Expand Down Expand Up @@ -50,6 +51,10 @@
using Content.Shared.Damage.ForceSay;
using Content.Server.Polymorph.Components;
using Content.Shared.Chat;
using Content.Shared.Drunk;
using Content.Shared.FixedPoint;
using Content.Shared.Nutrition.Components;
using Content.Shared.Nutrition.EntitySystems;

namespace Content.Server.Cloning
{
Expand Down Expand Up @@ -79,6 +84,9 @@ 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 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 @@ -251,6 +259,16 @@ 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 | Adds hunger, thirst and drunkness as a debuff
if (TryComp<HungerComponent>(mob, out var hungerComponent) &&
TryComp<ThirstComponent>(mob,out var thirstComponent))
{
_hunger.SetHunger(mob,50,hungerComponent);
_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
Loading