Only auto-enable internals when necessary (#28248)
* Only auto-enable internals when necessary * Add toxic gas check * Rename Any -> AnyPositive
This commit is contained in:
@@ -166,7 +166,7 @@ public sealed class ElectrocutionSystem : SharedElectrocutionSystem
|
||||
if (!electrified.OnAttacked)
|
||||
return;
|
||||
|
||||
if (!_meleeWeapon.GetDamage(args.Used, args.User).Any())
|
||||
if (_meleeWeapon.GetDamage(args.Used, args.User).Empty)
|
||||
return;
|
||||
|
||||
TryDoElectrifiedAct(uid, args.User, 1, electrified);
|
||||
@@ -183,7 +183,7 @@ public sealed class ElectrocutionSystem : SharedElectrocutionSystem
|
||||
if (!component.CurrentLit || args.Used != args.User)
|
||||
return;
|
||||
|
||||
if (!_meleeWeapon.GetDamage(args.Used, args.User).Any())
|
||||
if (_meleeWeapon.GetDamage(args.Used, args.User).Empty)
|
||||
return;
|
||||
|
||||
DoCommonElectrocution(args.User, uid, component.UnarmedHitShock, component.UnarmedHitStun, false);
|
||||
|
||||
Reference in New Issue
Block a user