Skip to content

Commit

Permalink
Photocopier: Fixed formatting errors a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
TheArturZh committed Jun 24, 2023
1 parent 787b058 commit fa7d9b8
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Content.Server/SS220/Photocopier/PhotocopierSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ private void OnCopyButtonPressed(EntityUid uid, PhotocopierComponent component,
if (TryGetHumanoidOnTop(uid, out var humanoidOnScanner))
{
TryQueueCopyPhysicalButt(component, humanoidOnScanner, args.Amount);
if(HasComp<EmaggedComponent>(uid))
if (HasComp<EmaggedComponent>(uid))
BurnButt(humanoidOnScanner.Owner, uid, component);
}
}
Expand All @@ -214,7 +214,7 @@ private void OnPrintButtonPressed(EntityUid uid, PhotocopierComponent component,
if (!component.Initialized)
return;

if(_specificFormManager is null)
if (_specificFormManager is null)
return;

if (component.CopiesQueued > 0)
Expand Down Expand Up @@ -252,7 +252,7 @@ private void BurnButt(EntityUid mobUid, EntityUid photocopierUid, PhotocopierCom
return;

// TODO LATER: Когда добавим куклу нужно сделать так чтоб дамаг шел в гроин
if(!TryComp<DamageableComponent>(mobUid, out var damageable))
if (!TryComp<DamageableComponent>(mobUid, out var damageable))
return;

var dealtDamage = _damageableSystem.TryChangeDamage(
Expand Down Expand Up @@ -423,7 +423,6 @@ private void ProcessPrinting(EntityUid uid, float frameTime, PhotocopierComponen
return;
}


if (component.IsCopyingPhysicalButt)
{
// If there is no butt or someones else butt is in the way - stop copying.
Expand All @@ -438,7 +437,7 @@ private void ProcessPrinting(EntityUid uid, float frameTime, PhotocopierComponen
component.PrintingTimeRemaining -= frameTime;

var isPrinted = component.PrintingTimeRemaining <= 0;
if(!isPrinted)
if (!isPrinted)
return;

if (component.IsCopyingButt)
Expand Down Expand Up @@ -491,7 +490,7 @@ private void TryUpdateVisualState(EntityUid uid, PhotocopierComponent? component
var outOfToner = (!TryGetTonerCartridge(component, out var tonerCartridge) || tonerCartridge.Charges <= 0);

if (component.CopiesQueued > 0)
state = component.IsScanning? PhotocopierVisualState.Copying : PhotocopierVisualState.Printing;
state = component.IsScanning ? PhotocopierVisualState.Copying : PhotocopierVisualState.Printing;
else if (!this.IsPowered(uid, EntityManager))
state = PhotocopierVisualState.Off;
else if (outOfToner)
Expand Down

0 comments on commit fa7d9b8

Please sign in to comment.