Refactor antag rule code (#23445)

* Initial Pass, Rev, Thief

* Zombie initial pass

* Rebase, Traitor

* Nukeops, More overloads

* Revert RevolutionaryRuleComponent

* Use TryRoundStartAttempt, Rewrite nukie spawning

* Comments, Add task scheduler to GameRuleSystem

* Zombie initial testing done

* Sort methods, rework GameRuleTask

* Add CCVar, Initial testing continues

* Might as well get rid of the obsolete logging

* Oops, i dont know how to log apparently

* Suggested formatting fixes

* Suggested changes

* Fix merge issues

* Minor optimisation

* Allowed thief to choose other antags

* Review changes

* Spawn items on floor first, then inserting

* minor tweaks

* Shift as much as possible to ProtoId<>

* Remove unneeded

* Add exclusive antag attribute

* Fix merge issues

* Minor formatting fix

* Convert to struct

* Cleanup

* Review cleanup (need to test a lot)

* Some fixes, (mostly) tested

* oop

* Pass tests (for real)

---------

Co-authored-by: Rainfall <rainfey0+git@gmail.com>
Co-authored-by: AJCM <AJCM@tutanota.com>
This commit is contained in:
Rainfey
2024-02-29 06:25:10 +00:00
committed by GitHub
parent 3966a65c65
commit 4e6c59cfe5
53 changed files with 22454 additions and 22396 deletions

View File

@@ -1,7 +1,7 @@
- type: entity
parent: BaseItem
id: NukeOpsDeclarationOfWar
name: declaration of war
name: war declarator
description: Use to send a declaration of hostilities to the target, delaying your shuttle departure while they prepare for your assault. Such a brazen move will attract the attention of powerful benefactors within the Syndicate, who will supply your team with a massive amount of bonus telecrystals. Must be used at start of mission, or your benefactors will lose interest.
components:
- type: Sprite
@@ -22,4 +22,5 @@
type: WarDeclaratorBoundUserInterface
- type: WarDeclarator
message: war-declarator-default-message
# - type: WarConditionOnExamine
- type: AccessReader
access: [["NuclearOperative"]]

View File

@@ -0,0 +1,16 @@
- type: entity
abstract: true
id: BaseStationSyndicate
components:
- type: NpcFactionMember
factions:
- Syndicate
- type: entity
id: StandardNukieOutpost
parent:
- BaseStation
- BaseStationSyndicate
noSpawn: true
components:
- type: Transform