Open Vlek opened 11 months ago
Right now, we have some code that looks like this:
int skill_value = Player_swordsmanship_skill if (Player_swordsmanship_skill < other_skill) { skill_value = other_skill } etc...
when, instead, it could just be:
int skill_value = Utility.Max( Player_swordsmanship_skill, other_skill, other_other_skill )
This way, it's clear what's going on and we don't have to keep reinventing the wheel with all of these conditional statements.
Also would like a min as well that's the opposite of this.
Right now, we have some code that looks like this:
when, instead, it could just be:
This way, it's clear what's going on and we don't have to keep reinventing the wheel with all of these conditional statements.
Also would like a min as well that's the opposite of this.