]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Fix bounties(and potentially other things) running out of ids (#32700)
authornikthechampiongr <32041239+nikthechampiongr@users.noreply.github.com>
Thu, 10 Oct 2024 14:35:35 +0000 (17:35 +0300)
committerGitHub <noreply@github.com>
Thu, 10 Oct 2024 14:35:35 +0000 (16:35 +0200)
commite7b7e2270d8bfcbcbd973d3c9d0271f5b3a96ffc
tree97e98c20f02676dc8685dea657ee434ed0303452
parent740288eb962904197f23f7ca23264af521b810fb
Fix bounties(and potentially other things) running out of ids (#32700)

* Make NameIdentifier Ids get refreshed after round restarts

Before this commit the existing values would just get shuffled.
This means that eventually the server would run out of ids to give to
new entities for different groups. As a result everything would get id 0

* Comply with what seemingly is the convention for sawmills

* Make it impossible to insert a bounty with a duplicate id

* Reduce duplication

* Remove unused sawmill

* Fix rustbrain and skill issue

* Aaaa

* Apply suggestions from code review

---------

Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com>
Content.Server/Cargo/Systems/CargoSystem.Bounty.cs
Content.Server/NameIdentifier/NameIdentifierSystem.cs