Example #1
0
 private void OnInit(EntityUid uid, BoxerComponent boxer, ComponentInit args)
 {
     if (TryComp <MeleeWeaponComponent>(uid, out var meleeComp))
     {
         meleeComp.Range *= boxer.RangeBonus;
     }
 }
Example #2
0
        private void ApplyBoxerModifiers(EntityUid uid, BoxerComponent component, MeleeHitEvent args)
        {
            if (component.UnarmedModifiers == default !)
            {
                Logger.Warning("BoxerComponent on " + uid + " couldn't get damage modifiers. Know that adding components with damage modifiers through VV or similar is unsupported.");
                return;
            }

            args.ModifiersList.Add(component.UnarmedModifiers);
        }