]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Fix antag objectives always overshooting MaxDifficulty (and kill tries20) (#29830)
authorTayrtahn <tayrtahn@gmail.com>
Sat, 13 Jul 2024 04:14:30 +0000 (00:14 -0400)
committerGitHub <noreply@github.com>
Sat, 13 Jul 2024 04:14:30 +0000 (14:14 +1000)
commit3388c0dcaa4bc1d459ce01bc9b1c1296011018a4
tree4c786df0627b92e22451cf19d0caa1cc20dd9476
parentde2ab29f349871797182d105918d3e9c013661e5
Fix antag objectives always overshooting MaxDifficulty (and kill tries20) (#29830)

* The death of try20

* Add integration test for traitor gamerule

* Fix max difficulty being overshot

* Check at least one objective is assigned

* EntProtoId
Content.IntegrationTests/Tests/GameRules/TraitorRuleTest.cs [new file with mode: 0644]
Content.Server/Antag/AntagRandomObjectivesSystem.cs
Content.Server/Objectives/ObjectivesSystem.cs
Content.Shared/Objectives/Systems/SharedObjectivesSystem.cs
Content.Shared/Random/Helpers/SharedRandomExtensions.cs