/** * Parse the vocation formula from the vocations file. * * @param \pandaac\Exporter\Contracts\Reader $reader * @return \Illuminate\Support\Collection */ protected function formula(Reader $reader) { if (!($reader->is('formula') and $reader->parent('vocation'))) { return false; } return new Collection($reader->attributes('meleeDamage', 'distDamage', 'defense', 'armor')); }
/** * Parse the mission states from the quests file. * * @param \pandaac\Exporter\Contracts\Reader $reader * @return \Illuminate\Support\Collection */ protected function missionState(Reader $reader) { if (!($reader->is('missionstate') and $reader->parent('mission'))) { return false; } return new Collection($reader->attributes('id', 'description')); }
/** * Parse the conjure spell vocations from the spells file. * * @param \pandaac\Exporter\Contracts\Reader $reader * @return \Illuminate\Support\Collection */ protected function conjureVocations(Reader $reader) { if (!($reader->is('vocation') and $reader->parent('conjure'))) { return false; } return new Collection($reader->attributes('name')); }
/** * Parse the item attribute properties information from the items file. * * @param \pandaac\Exporter\Contracts\Reader $reader * @return \Illuminate\Support\Collection */ protected function itemAttributeProperties(Reader $reader) { if (!($reader->is('attribute') and $reader->parent('attribute'))) { return false; } return new Collection($reader->attributes('key', 'value')); }
/** * Parse the loot comment information from the monster file. * * @param \pandaac\Exporter\Contracts\Reader $reader * @return string */ protected function lootComments(Reader $reader) { if (!($reader->isComment() and $reader->parent('loot'))) { return false; } return trim($reader->value()); }