KillerDJLang / Raid-Overhaul

3 stars 2 forks source link

Rework weighting system #4

Closed dirtbikercj closed 8 months ago

dirtbikercj commented 8 months ago

Reworked the weighting system to be more expandable in the future.

it contains two components a list pair of <Action, int> where action is a method to call and int is the associated weighting. The list pair lives in Plugin because of initialization problems otherwise. I had no choice, i tried... It works the exact same as before however, just easier to expand apon. The weightings will need adjusted to your liking, i left it as a descending count of ints 6, 5, 4...

The second component is a reworked DoRandomEvent() method in the EventController.

I also had to move the disable checks to their respective methods for this to work.

I didn't disable the keycard door, mostly because i forgot, but its easy to do