Body code cleanup (#24946)
* Fix test * Kill float accumulators * Use entity proxy methods * DataField auto name generation where possible * Kill comp properties * Clean up server comps * Make events record structs * Clean up shared body code * Clean up server body code * Rename organ events to be same names as in med refactor
This commit is contained in:
@@ -202,7 +202,7 @@ namespace Content.Shared.ActionBlocker
|
||||
public bool CanShiver(EntityUid uid)
|
||||
{
|
||||
var ev = new ShiverAttemptEvent(uid);
|
||||
RaiseLocalEvent(uid, ev);
|
||||
RaiseLocalEvent(uid, ref ev);
|
||||
|
||||
return !ev.Cancelled;
|
||||
}
|
||||
@@ -210,7 +210,7 @@ namespace Content.Shared.ActionBlocker
|
||||
public bool CanSweat(EntityUid uid)
|
||||
{
|
||||
var ev = new SweatAttemptEvent(uid);
|
||||
RaiseLocalEvent(uid, ev);
|
||||
RaiseLocalEvent(uid, ref ev);
|
||||
|
||||
return !ev.Cancelled;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user