]> git.smokeofanarchy.ru Git - space-station-14.git/commit
use weighted random for ninja threats (#20469)
authordeltanedas <39013340+deltanedas@users.noreply.github.com>
Mon, 25 Sep 2023 03:16:09 +0000 (04:16 +0100)
committerGitHub <noreply@github.com>
Mon, 25 Sep 2023 03:16:09 +0000 (23:16 -0400)
commit91a157d7ed0e7597dd5ad0db7d288c6b2e85694c
treee56a02b09fcf49df41ed52694eebf842862285f1
parent2616cb69e8df119c8d780ca235ca89edf5307f5e
use weighted random for ninja threats (#20469)

* change threats to be weighted random and a little cleanup

* ninja rule stores weighted random id for threats

* move threats out of the rule and into weighted random

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
Content.Server/Communications/CommsHackerSystem.cs
Content.Server/GameTicking/Rules/Components/NinjaRuleComponent.cs
Content.Shared/Communications/CommsHackerComponent.cs
Content.Shared/Communications/SharedCommsHackerSystem.cs
Resources/Prototypes/GameRules/midround.yml
Resources/Prototypes/threats.yml [new file with mode: 0644]