Commit Graph

18 Commits

Author SHA1 Message Date
Winkarst
4d72a2d5f3 Cleanup: Use `MapSystem.DeleteMap instead of IMapManager.DeleteMap in MindTests` (#35473)
* Cleanup

* Fix
2025-02-24 21:26:04 +01:00
ShadowCommander
a985c5e83e Fix ghosts getting spawned in nullspace (#27617)
* Add tests for ghost spawn position

* Make ghosts spawn immediately

* Format mind system

* Move ghost spawning to GhostSystem

* Spawn ghost on grid or map

This fixes the ghosts being attached the parent entity instead of the grid.

* Move logging out of the ghost system

* Make round start observer spawn using GhostSystem

* Move GameTicker ghost spawning to GhostSystem

Moved the more robust character name selection code over.
Moved the TimeOfDeath code over.
Added canReturn logic.

* Add overrides and default for ghost spawn coordinates

* Add warning log to ghost spawn fail

* Clean up test

* Dont spawn ghost on map delete

* Minor changes to the role test

* Fix role test failing to spawn ghost

It was failing the map check due to using Nullspace

* Fix ghost tests when running in parallel

Not sure what happened, but it seems to be because they were running simultaneously and overwriting values.

* Clean up ghost tests

* Test that map deletion does not spawn ghosts

* Spawn ghost on the next available map

* Disallow spawning on deleted maps

* Fix map deletion ghost test

* Cleanup
2024-05-11 11:03:40 -04:00
DrSmugleaf
641b490313 Replace usages of MobObserver and AdminObserver with GameTicker consts (#21814) 2023-11-21 15:27:37 +11:00
Leon Friedrich
e685cb626b Un-revert IPlayerManager refactor (#21244) 2023-10-28 09:59:53 +11:00
metalgearsloth
a2bbda43cc Revert "Update submodule to 172.0.0 (#21222)" (#21225) 2023-10-24 21:55:20 +11:00
Leon Friedrich
7ba0ea2926 IPlayerManager refactor (#21215) 2023-10-24 20:19:08 +11:00
DrSmugleaf
3f3ba6ac62 Move minds, roles, jobs and objectives to shared (#19679) 2023-08-30 21:46:11 -07:00
DrSmugleaf
15c0211fb2 Refactor minds to be entities with components, make roles components (#19591)
Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
2023-08-28 16:53:24 -07:00
metalgearsloth
0b542098db Remove ghost compref (#19478) 2023-08-25 18:50:46 +10:00
Visne
9bd30d57ad Remove obsolete PoolManager methods (#19499) 2023-08-25 12:13:11 +10:00
Visne
3c667b6f7e Remove obsolete TestPair.Pair (#19496) 2023-08-25 10:56:51 +10:00
Leon Friedrich
1ec014cf39 Remove prototype ignore lists from some tests (#19366) 2023-08-21 21:08:12 -07:00
Leon Friedrich
6a45d36457 Fix mind test issues (#18793) 2023-08-07 13:29:10 +10:00
TemporalOroboros
ba91023a85 Fix content.integration tests warnings (#17817)
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
2023-07-06 14:54:25 +10:00
Leon Friedrich
74df2a300e Try fix even more random mind test failures (#17581) 2023-06-23 13:55:54 +10:00
Leon Friedrich
878a684260 Maybe fix more mind test failures (#17577) 2023-06-23 10:54:24 +10:00
Leon Friedrich
501bc4be04 Try fix random TestGhostToAghost test failures (#17546) 2023-06-22 13:44:11 +10:00
Leon Friedrich
3fa99b8abf Slight mind test cleanup (#17521) 2023-06-21 12:11:58 +10:00