|
1 | 1 | <?php |
2 | 2 |
|
3 | | -class Orderus |
| 3 | +class Orderus extends Player |
4 | 4 | { |
5 | 5 | public $name = "Orderus"; |
6 | 6 |
|
7 | | - private $orderus_health_min = 70; |
8 | | - private $orderus_health_max = 100; |
| 7 | + private $health_min = 70; |
| 8 | + private $health_max = 100; |
9 | 9 |
|
10 | | - private $orderus_strength_min = 70; |
11 | | - private $orderus_strength_max = 80; |
| 10 | + private $strength_min = 70; |
| 11 | + private $strength_max = 80; |
12 | 12 |
|
13 | | - private $orderus_defense_min = 45; |
14 | | - private $orderus_defense_max = 55; |
| 13 | + private $defense_min = 45; |
| 14 | + private $defense_max = 55; |
15 | 15 |
|
16 | | - private $orderus_speed_min = 40; |
17 | | - private $orderus_speed_max = 50; |
| 16 | + private $speed_min = 40; |
| 17 | + private $speed_max = 50; |
18 | 18 |
|
19 | | - private $orderus_luck_min = 10; |
20 | | - private $orderus_luck_max = 30; |
21 | | - |
22 | | - private $orderus_health_last = 0; |
23 | | - private $orderus_strength_last = 0; |
24 | | - private $orderus_defense_last = 0; |
25 | | - private $orderus_speed_last = 0; |
26 | | - private $orderus_luck_last = 0; |
| 19 | + private $luck_min = 10; |
| 20 | + private $luck_max = 30; |
27 | 21 |
|
28 | 22 | public function __construct() |
29 | 23 | { |
30 | | - $this->health = rand($this->orderus_health_min, $this->orderus_health_max); |
31 | | - $this->strength = rand($this->orderus_strength_min, $this->orderus_strength_max); |
32 | | - $this->defense = rand($this->orderus_defense_min, $this->orderus_defense_max); |
33 | | - $this->speed = rand($this->orderus_speed_min, $this->orderus_speed_max); |
34 | | - $this->luck = rand($this->orderus_luck_min, $this->orderus_luck_max); |
| 24 | + $this->health = rand($this->health_min, $this->health_max); |
| 25 | + $this->strength = rand($this->strength_min, $this->strength_max); |
| 26 | + $this->defense = rand($this->defense_min, $this->defense_max); |
| 27 | + $this->speed = rand($this->speed_min, $this->speed_max); |
| 28 | + $this->luck = rand($this->luck_min, $this->luck_max); |
35 | 29 | } |
36 | 30 | } |
0 commit comments