Пример #1
0
 public function start()
 {
     Logger::info('Starting an encounter with the following beings:');
     foreach ($this->involved as $being) {
         Logger::info(' - %s (Perception: %s, Hitpoints %s)', array($being->getName(), DisplayHelper::displayInt($being->checkSkill(C\Skills::PERCEPTION, TRUE)), DisplayHelper::displayInt($being->getHitpoints())));
     }
     $this->state = Encounter::STATE_ACTIVE;
 }
Пример #2
0
 public function rollInitiative()
 {
     $this->initiative = $this->checkAbility(Constants\Abilities::DEX);
     Logger::debug('Character %s rolls initiative of %s.', array($this->getName(), DisplayHelper::displayInt($this->initiative)));
 }