Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function nameColor($playerlvl, $monsterlvl) {
- if ($playerlvl === $monsterlvl) {
- $this->colorToPlayer = "white";
- } else if ($playerlvl < $monsterlvl) {
- $this->colorToPlayer = "red";
- } else if ($playerlvl > $monsterlvl) {
- $this->colorToPlayer = "blue";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement