Exemplo n.º 1
0
 function loadSavePack($savePack, $cc = null)
 {
     parent::loadSavePack($savePack);
     $this->canUse = $savePack['canUse'];
     $this->mandatory = $savePack['mandatory'];
     $this->traitPosNeg = $savePack['traitPosNeg'];
     $this->traitEgoMorph = $savePack['traitEgoMorph'];
     $this->cpCost = $savePack['cpCost'];
     $this->level = $savePack['level'];
     foreach ($savePack['bmSavePacks'] as $m) {
         $savedBm = new EPBonusMalus('', '', '');
         $savedBm->loadSavePack($m);
         array_push($this->bonusMalus, $savedBm);
     }
 }
Exemplo n.º 2
0
 function loadSavePack($savePack, $cc = null)
 {
     parent::loadSavePack($savePack);
     $this->psyType = $savePack['psyType'];
     $this->range = $savePack['range'];
     $this->duration = $savePack['duration'];
     $this->action = $savePack['action'];
     $this->strainMod = $savePack['strainMod'];
     $this->isActif = $savePack['isActif'];
     $this->psyLevel = $savePack['psyLevel'];
     $this->skillNeeded = $savePack['skillNeeded'];
     $this->buyInCreationMode = $savePack['buyInCreationMode'];
     foreach ($savePack['bmSavePacks'] as $m) {
         $savedBm = new EPBonusMalus('', '', '');
         $savedBm->loadSavePack($m);
         array_push($this->bonusMalus, $savedBm);
     }
 }
Exemplo n.º 3
0
 function loadSavePack($savePack, $cc = null)
 {
     parent::loadSavePack($savePack);
     $this->backgroundType = $savePack['backgroundType'];
     foreach ($savePack['bmSavePacks'] as $m) {
         $savedBm = new EPBonusMalus('', '', '');
         $savedBm->loadSavePack($m);
         array_push($this->bonusMalus, $savedBm);
     }
     foreach ($savePack['traitSavePacks'] as $m) {
         $savedTrait = new EPTrait('', '', '', '', '');
         $savedTrait->loadSavePack($m);
         array_push($this->traits, $savedTrait);
     }
     foreach ($savePack['limitationsArray'] as $m) {
         array_push($this->limitations, $m);
     }
     foreach ($savePack['obligationsArray'] as $m) {
         array_push($this->obligations, $m);
     }
 }
Exemplo n.º 4
0
 function loadSavePack($savePack, $cc = null)
 {
     parent::loadSavePack($savePack);
     foreach ($savePack['aptitudesSavePacks'] as $m) {
         $savedAptitude = new EPAptitude('', '');
         $savedAptitude->loadSavePack($m);
         array_push($this->aptitudes, $savedAptitude);
     }
     foreach ($savePack['skillsSavePacks'] as $m) {
         $savedSkill = new EPSkill('', '', '', '', '');
         $savedSkill->loadSavePack($m);
         array_push($this->skills, $savedSkill);
     }
     foreach ($savePack['statsSavePacks'] as $m) {
         $savedStat = new EPStat('', '', '', 0, $cc);
         $savedStat->loadSavePack($m);
         array_push($this->stats, $savedStat);
     }
     foreach ($savePack['bmSavePacks'] as $m) {
         $savedBm = new EPBonusMalus('', '', '');
         $savedBm->loadSavePack($m);
         array_push($this->bonusMalus, $savedBm);
     }
 }
Exemplo n.º 5
0
 function loadSavePack($savePack, $cc = null)
 {
     parent::loadSavePack($savePack);
     $this->bonusMalusType = $savePack['bonusMalusType'];
     $this->forTargetNamed = $savePack['forTargetNamed'];
     $this->value = $savePack['value'];
     $this->targetForChoice = $savePack['targetForChoice'];
     $this->typeTarget = $savePack['typeTarget'];
     $this->onCost = $savePack['onCost'];
     $this->multi_occurence = $savePack['multi_occurence'];
     $this->selected = $savePack['selected'];
     foreach ($savePack['bonusMalusTypes'] as $m) {
         $savedBm = new EPBonusMalus('', '', '');
         $savedBm->loadSavePack($m);
         array_push($this->bonusMalusTypes, $savedBm);
     }
 }
Exemplo n.º 6
0
 function loadSavePack($savePack, $cc = null)
 {
     parent::loadSavePack($savePack);
     $this->armorEnergy = $savePack['armorEnergy'];
     $this->armorKinetic = $savePack['armorKinetic'];
     $this->degat = $savePack['degat'];
     $this->armorPenetration = $savePack['armorPenetration'];
     $this->gearType = $savePack['gearType'];
     $this->gearRestriction = $savePack['gearRestriction'];
     $this->armorPenetrationMorphMod = $savePack['armorPenetrationMorphMod'];
     $this->degatMorphMod = $savePack['degatMorphMod'];
     $this->armorEnergyMorphMod = $savePack['armorEnergyMorphMod'];
     $this->armorKineticMorphMod = $savePack['armorKineticMorphMod'];
     $this->armorPenetrationTraitMod = $savePack['armorPenetrationTraitMod'];
     $this->degatTraitMod = $savePack['degatTraitMod'];
     $this->armorEnergyTraitMod = $savePack['armorEnergyTraitMod'];
     $this->armorKineticTraitMod = $savePack['armorKineticTraitMod'];
     $this->armorPenetrationBackgroundMod = $savePack['armorPenetrationBackgroundMod'];
     $this->degatBackgroundMod = $savePack['degatBackgroundMod'];
     $this->armorEnergyBackgroundMod = $savePack['armorEnergyBackgroundMod'];
     $this->armorKineticBackgroundMod = $savePack['armorKineticBackgroundMod'];
     $this->armorPenetrationFactionMod = $savePack['armorPenetrationFactionMod'];
     $this->degatFactionMod = $savePack['degatFactionMod'];
     $this->armorEnergyFactionMod = $savePack['armorEnergyFactionMod'];
     $this->armorKineticFactionMod = $savePack['armorKineticFactionMod'];
     $this->armorPenetrationSoftgearMod = $savePack['armorPenetrationSoftgearMod'];
     $this->degatSoftgearMod = $savePack['degatSoftgearMod'];
     $this->armorEnergySoftgearMod = $savePack['armorEnergySoftgearMod'];
     $this->armorKineticSoftgearMod = $savePack['armorKineticSoftgearMod'];
     $this->armorPenetrationPsyMod = $savePack['armorPenetrationPsyMod'];
     $this->degatPsyMod = $savePack['degatPsyMod'];
     $this->armorEnergyPsyMod = $savePack['armorEnergyPsyMod'];
     $this->armorKineticPsyMod = $savePack['armorKineticPsyMod'];
     foreach ($savePack['bmSavePacks'] as $m) {
         $savedBm = new EPBonusMalus('', '', '');
         $savedBm->loadSavePack($m);
         array_push($this->bonusMalus, $savedBm);
     }
 }
Exemplo n.º 7
0
 function loadSavePack($savePack, $cc = null)
 {
     parent::loadSavePack($savePack);
     $this->name = $savePack['name'];
     $this->description = $savePack['description'];
     $this->morphType = $savePack['morphType'];
     $this->age = $savePack['age'];
     $this->gender = $savePack['gender'];
     $this->maxApptitude = $savePack['maxApptitude'];
     $this->durability = $savePack['durability'];
     $this->nickname = $savePack['nickname'];
     $this->location = $savePack['location'];
     $this->cpCost = $savePack['cpCost'];
     $this->buyInCreationMode = $savePack['buyInCreationMode'];
     foreach ($savePack['traitsSavePacks'] as $m) {
         $savedTrait = new EPTrait('', '', '', '', '');
         $savedTrait->loadSavePack($m);
         array_push($this->traits, $savedTrait);
     }
     foreach ($savePack['additionalTraitsSavePacks'] as $m) {
         $savedTrait = new EPTrait('', '', '', '', '');
         $savedTrait->loadSavePack($m);
         array_push($this->additionalTraits, $savedTrait);
     }
     foreach ($savePack['gearSavePacks'] as $m) {
         $savedGear = new EPGear('', '', '', '');
         $savedGear->loadSavePack($m);
         array_push($this->gears, $savedGear);
     }
     foreach ($savePack['addGearSavePacks'] as $m) {
         $savedGear = new EPGear('', '', '', '');
         $savedGear->loadSavePack($m);
         array_push($this->additionalGears, $savedGear);
     }
     foreach ($savePack['bmSavePacks'] as $m) {
         $savedBm = new EPBonusMalus('', '', '');
         $savedBm->loadSavePack($m);
         array_push($this->bonusMalus, $savedBm);
     }
 }