Closed lebroomer closed 5 years ago
Failed with the branches --> these should originally be 2 PRs. I will split them up if neccessary :)
Sorry for the bad changes - I noticed that the mistake came from a desync between Github and Steam Workshop. With the latest update on Steam Workshop colors for Sidekicks were broken. Here most of them are fine. However the corpse icon was black on both versions. This is fixed now.
The current solution is to remove the GetSidekickTableForRole function from this PR to first fix the bug. Further steps can be discussed in another PR. Made GetDarkenColor function for easier access in other addons.
Additionally to giving the needed infos for corpse building, setting the right color on server too is good for consistency.
Yeah, that would be the easy and boring way ^^ I will change it :D
Ty! Now it should seems to be fine :)
implemented GetSidekickTableForRole function which returns the possible sidekick role table for a role (including correct colors) or nil if no sidekick is possible
-this will be used for Weapons like Manipulation Knife/Death Faker, which need the possible role distribution and not the current one