Ejemplo n.º 1
0
 function __construct($playerLevel, $distance)
 {
     // Randomly generate monster level based on player level and distance to the origin.
     $this->InitLevel($playerLevel, $distance);
     $this->InitStats($playerLevel);
     $this->name = NameGenerator::Monster($playerLevel);
     if ($this->elite) {
         $this->name = "ELITE " . $this->name;
     }
 }