Defibs will now also shock anyone still interacting with the target. (#35998)
* Defibs will now also shock anyone still interacting with the target. * Improvements to test readability * Apply fixes to other tests * Refactor the interacting entities query to use an event. * Include pullers as interacting with the entity they are pulling * Broadcast event * Use a constant * Convert new test to InteractionTest * Convert existing test * Add behaviour note * Revert "Convert existing test" This reverts commit b8a8f2f68e3733bdb6ec254faf955a42096d47d7. * Move new test into separate (InteractionTest) test file * Use ToServer * Use a constant for prototype id * Use ToServer * Add EntProtoId constructor * Add assertion failure messages * Manual cleanup of test entities * Remove obsolete flag * Add test summaries * Remove tuple constructor * Wrap entity deletion in WaitPost * Extend DoAfter interacting test with an extra mob
This commit is contained in:
@@ -49,6 +49,9 @@ public abstract partial class InteractionTest
|
||||
public static implicit operator EntitySpecifier(string prototype)
|
||||
=> new(prototype, 1);
|
||||
|
||||
public static implicit operator EntitySpecifier(EntProtoId prototype)
|
||||
=> new(prototype.Id, 1);
|
||||
|
||||
public static implicit operator EntitySpecifier((string, int) tuple)
|
||||
=> new(tuple.Item1, tuple.Item2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user