private void OnRangedMagMapInit(EntityUid uid, RangedMagazineComponent component, MapInitEvent args) { if (component.FillPrototype != null) { component.UnspawnedCount += component.Capacity; } UpdateRangedMagAppearance(component); }
private void OnMapInit(EntityUid uid, ToiletComponent component, MapInitEvent args) { // roll is toilet seat will be up or down component.IsSeatUp = _random.Prob(0.5f); UpdateSprite(uid, component); }