Ejemplo n.º 1
0
        public void StoreValues(Character character, NewCharacter newchar)
        {
            switch (character.race)
            {
            case "Human":
                humanAgility        = character.agility;
                humanStrength       = character.strength;
                humanBody           = character.body;
                humanReaction       = character.reaction;
                humanLogic          = character.logic;
                humanCharisma       = character.charisma;
                humanWillpower      = character.willpower;
                humanIntuition      = character.intuition;
                humanEdge           = character.edge;
                humanAttributeAccum = character.attributeAccum;
                humanAttributeCost  = character.AttributeRaceSwitch(newchar, character);
                character.BuildPointCost(character, humanAttributeCost, false, false);
                humanAttributeMax = character.attributeMax;
                humanSwitch       = true;
                break;

            case "Ork":
                orkAgility        = character.agility;
                orkStrength       = character.strength;
                orkBody           = character.body;
                orkReaction       = character.reaction;
                orkLogic          = character.logic;
                orkCharisma       = character.charisma;
                orkWillpower      = character.willpower;
                orkIntuition      = character.intuition;
                orkEdge           = character.edge;
                orkAttributeAccum = character.attributeAccum;
                orkAttributeCost  = character.AttributeRaceSwitch(newchar, character);
                character.BuildPointCost(character, orkAttributeCost, false, false);
                orkAttributeMax = character.attributeMax;
                orkSwitch       = true;
                break;

            case "Dwarf":
                dwarfAgility        = character.agility;
                dwarfStrength       = character.strength;
                dwarfBody           = character.body;
                dwarfReaction       = character.reaction;
                dwarfLogic          = character.logic;
                dwarfCharisma       = character.charisma;
                dwarfWillpower      = character.willpower;
                dwarfIntuition      = character.intuition;
                dwarfEdge           = character.edge;
                dwarfAttributeAccum = character.attributeAccum;
                dwarfAttributeCost  = character.AttributeRaceSwitch(newchar, character);
                character.BuildPointCost(character, dwarfAttributeCost, false, false);
                dwarfAttributeMax = character.attributeMax;
                dwarfSwitch       = true;
                break;

            case "Elf":
                elfAgility        = character.agility;
                elfStrength       = character.strength;
                elfBody           = character.body;
                elfReaction       = character.reaction;
                elfLogic          = character.logic;
                elfCharisma       = character.charisma;
                elfWillpower      = character.willpower;
                elfIntuition      = character.intuition;
                elfEdge           = character.edge;
                elfAttributeAccum = character.attributeAccum;
                elfAttributeCost  = character.AttributeRaceSwitch(newchar, character);
                character.BuildPointCost(character, elfAttributeCost, false, false);
                elfAttributeMax = character.attributeMax;
                elfSwitch       = true;
                break;

            case "Troll":
                trollAgility        = character.agility;
                trollStrength       = character.strength;
                trollBody           = character.body;
                trollReaction       = character.reaction;
                trollLogic          = character.logic;
                trollCharisma       = character.charisma;
                trollWillpower      = character.willpower;
                trollIntuition      = character.intuition;
                trollEdge           = character.edge;
                trollAttributeAccum = character.attributeAccum;
                trollAttributeCost  = character.AttributeRaceSwitch(newchar, character);
                character.BuildPointCost(character, trollAttributeCost, false, false);
                trollAttributeMax = character.attributeMax;
                trollSwitch       = true;
                break;

            default: break;
            }
        }
Ejemplo n.º 2
0
 public void StoreValues(Character character, NewCharacter newchar)
 {
     switch(character.race)
     {
         case "Human":
             humanAgility = character.agility;
             humanStrength = character.strength;
             humanBody = character.body;
             humanReaction = character.reaction;
             humanLogic = character.logic;
             humanCharisma = character.charisma;
             humanWillpower = character.willpower;
             humanIntuition = character.intuition;
             humanEdge = character.edge;
             humanAttributeAccum = character.attributeAccum;
             humanAttributeCost = character.AttributeRaceSwitch(newchar, character);
             character.BuildPointCost(character, humanAttributeCost, false, false);
             humanAttributeMax = character.attributeMax;
             humanSwitch = true;
             break;
         case "Ork":
             orkAgility = character.agility;
             orkStrength = character.strength;
             orkBody = character.body;
             orkReaction = character.reaction;
             orkLogic = character.logic;
             orkCharisma = character.charisma;
             orkWillpower = character.willpower;
             orkIntuition = character.intuition;
             orkEdge = character.edge;
             orkAttributeAccum = character.attributeAccum;
             orkAttributeCost = character.AttributeRaceSwitch(newchar, character);
             character.BuildPointCost(character, orkAttributeCost, false, false);
             orkAttributeMax = character.attributeMax;
             orkSwitch = true;
             break;
         case "Dwarf":
             dwarfAgility = character.agility;
             dwarfStrength = character.strength;
             dwarfBody = character.body;
             dwarfReaction = character.reaction;
             dwarfLogic = character.logic;
             dwarfCharisma = character.charisma;
             dwarfWillpower = character.willpower;
             dwarfIntuition = character.intuition;
             dwarfEdge = character.edge;
             dwarfAttributeAccum = character.attributeAccum;
             dwarfAttributeCost = character.AttributeRaceSwitch(newchar, character);
             character.BuildPointCost(character, dwarfAttributeCost, false, false);
             dwarfAttributeMax = character.attributeMax;
             dwarfSwitch = true;
             break;
         case "Elf":
             elfAgility = character.agility;
             elfStrength = character.strength;
             elfBody = character.body;
             elfReaction = character.reaction;
             elfLogic = character.logic;
             elfCharisma = character.charisma;
             elfWillpower = character.willpower;
             elfIntuition = character.intuition;
             elfEdge = character.edge;
             elfAttributeAccum = character.attributeAccum;
             elfAttributeCost = character.AttributeRaceSwitch(newchar, character);
             character.BuildPointCost(character, elfAttributeCost, false, false);
             elfAttributeMax = character.attributeMax;
             elfSwitch = true;
             break;
         case "Troll":
             trollAgility = character.agility;
             trollStrength = character.strength;
             trollBody = character.body;
             trollReaction = character.reaction;
             trollLogic = character.logic;
             trollCharisma = character.charisma;
             trollWillpower = character.willpower;
             trollIntuition = character.intuition;
             trollEdge = character.edge;
             trollAttributeAccum = character.attributeAccum;
             trollAttributeCost = character.AttributeRaceSwitch(newchar, character);
             character.BuildPointCost(character, trollAttributeCost, false, false);
             trollAttributeMax = character.attributeMax;
             trollSwitch = true;
             break;
         default: break;
     }
 }