Forecast all-down recovery and preserve self-rescue; record Workshop 0.0.133
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -28,8 +28,10 @@ source=body(p,'protected string ERR_TrySelfEpinephrine(')
|
||||
assert 'if (!Replication.IsServer()) return "";' in source
|
||||
assert 'GetControlledEntity()' in source and 'life.Actor == actor' in source and 'mode.Players().CurrentActor(actor) == life' in source
|
||||
assert 'mode.Settings().Get("selfEpinephrine") == 1' in source
|
||||
assert 'inventory.Contains(injector)' in source and 'items.Count() > 512' in source
|
||||
assert source.index('effect.CanApplyEffect(') < source.index('item.ApplyItemEffect(')
|
||||
inventory_source=body(p,'static IEntity FindUsable(')
|
||||
assert 'inventory.Contains(injector)' in inventory_source and 'items.Count() > 512' in inventory_source
|
||||
assert 'ERR_SelfEpinephrineInventory.FindUsable(actor)' in source
|
||||
assert 'effect.CanApplyEffect(' in inventory_source and 'item.ApplyItemEffect(' in source
|
||||
assert 'effect.GetDeleteOnUse()' in source and 'Spawn(' not in source and 'SetHealth' not in source
|
||||
settings=ROOT/'addons/core/Scripts/Game/ERR/00_Core/ERR_Settings.c'
|
||||
assert '"selfEpinephrine"' in body(settings,'static array<string> Keys(')
|
||||
|
||||
Reference in New Issue
Block a user