FakeFishGames / Barotrauma

A 2D online multiplayer game taking place in a submarine travelling through the icy depths of Jupiter's moon Europa.
http://www.barotraumagame.com/
1.74k stars 403 forks source link

Monsters spawned in swarms have same loot #13768

Closed Regalis11 closed 4 months ago

Regalis11 commented 5 months ago

Discussed in https://github.com/FakeFishGames/Barotrauma/discussions/13761

Originally posted by **SomeRandomNoobKekeke** April 10, 2024 ### Disclaimers - [X] I have searched the issue tracker to check if the issue has already been reported. - [ ] My issue happened while using mods. ### What happened? I killed a swarm of ~10 husked crawlers and they all got husk stingers, and i think probability to have stinger is 1/11, very suspicious And then i checked different monsters, and yes all monsters in some swarm always share same loot If you spawn them with spawncharacter inventory is randomised as intended ### Reproduction steps quickstart at 100 difficulty to make swarms bigger find some monsters, kill them and check their loot I think you have to encounter them naturally I tried to spawn them with triggerevent but they seem to spawn with empty pockets ### Bug prevalence Happens every time I play ### Single player or multiplayer? Single player ### - _No response_ ### Version v1.4.0.0 (unstable) ### - _No response_ ### Which operating system did you encounter this bug on? Windows ### Relevant error messages and crash reports _No response_
Regalis11 commented 5 months ago

Note that this happens consistently if the level's seed is 32 characters long or longer. Easiest to repro in a campaign level that takes place between two locations, because those have the longest seeds.

Regalis11 commented 5 months ago

Pushed a quick and simple fix straight to spring-update (https://github.com/FakeFishGames/Barotrauma/issues/13768), more robust fix here: https://github.com/FakeFishGames/Barotrauma-development/pull/5175