private void OnRangedMagMapInit(EntityUid uid, RangedMagazineComponent component, MapInitEvent args)
    {
        if (component.FillPrototype != null)
        {
            component.UnspawnedCount += component.Capacity;
        }

        UpdateRangedMagAppearance(component);
    }
예제 #2
0
 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);
 }