More borg tweaks (#19143)
* borg tweaks but i'm gonna go code fun stuff first * werkin' on it * a ton of tweaks * fuck everyone and then myself
This commit is contained in:
@@ -346,7 +346,7 @@ namespace Content.Shared.Stacks
|
||||
|
||||
private void OnStackGetState(EntityUid uid, StackComponent component, ref ComponentGetState args)
|
||||
{
|
||||
args.State = new StackComponentState(component.Count, GetMaxCount(component));
|
||||
args.State = new StackComponentState(component.Count, component.MaxCountOverride, component.Lingering);
|
||||
}
|
||||
|
||||
private void OnStackHandleState(EntityUid uid, StackComponent component, ref ComponentHandleState args)
|
||||
@@ -355,6 +355,7 @@ namespace Content.Shared.Stacks
|
||||
return;
|
||||
|
||||
component.MaxCountOverride = cast.MaxCount;
|
||||
component.Lingering = cast.Lingering;
|
||||
// This will change the count and call events.
|
||||
SetCount(uid, cast.Count, component);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user