Skip to content

Commit

Permalink
Fix other old refactor conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
vaketola committed Nov 6, 2023
1 parent 279bda9 commit 4577f38
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Content.Server/SimpleStation14/Chat/ESayCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void Execute(IConsoleShell shell, string argStr, string[] args)
if (string.IsNullOrEmpty(message))
return;

EntitySystem.Get<ChatSystem>().TrySendInGameICMessage(playerEntity, message, InGameICChatType.Empathy, false, shell, player, checkRadioPrefix: false);
EntitySystem.Get<ChatSystem>().TrySendInGameICMessage(playerEntity, message, InGameICChatType.Empathy, false, false, shell, player, checkRadioPrefix: false);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public sealed partial class ShadowkinTeleportEvent : WorldTargetActionEvent, ISp


[DataField("speech")]
public string? Speech { get; }
public string? Speech { get; set; }
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public void ResetLight(PointLightComponent light, ShadowkinLightComponent sLight
sLight.OldRadiusEdited = false;

if (sLight.OldEnergyEdited)
light.Energy = sLight.OldEnergy;
_light.SetEnergy(light.Owner, sLight.OldEnergy);
sLight.OldEnergyEdited = false;
}

Expand Down Expand Up @@ -136,7 +136,7 @@ public override void Update(float frameTime)

// Put changes into effect
_light.SetRadius(pointLight.Owner, radius);
pointLight.Energy = energy;
_light.SetEnergy(pointLight.Owner, energy);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,9 @@ private void OnBlackeye(ShadowkinBlackeyeEvent ev)

var minus = damageable.TotalDamage;

_damageable.TryChangeDamage(
ev.Uid,
new DamageSpecifier(_prototype.Index<DamageTypePrototype>("Cellular"),
_damageable.TryChangeDamage(ev.Uid, new DamageSpecifier(_prototype.Index<DamageTypePrototype>("Cellular"),
Math.Max((double) (key.Value - minus - 5), 0)),
true,
true,
null,
null,
false
);
true,
true, null, null);
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Content.Server.Speech.Components;

[RegisterComponent]
public sealed class ShadowkinAccentComponent : Component {}
public sealed partial class ShadowkinAccentComponent : Component {}

0 comments on commit 4577f38

Please sign in to comment.