public void addDefenseAbilities(List <string> defenseTargets) { if (abilitiesCreator == null) { abilitiesCreator = new AbilitiesEditor(tentativeAbilities, creature.remainingAbilityPoints); } for (int i = 0; i < defenseTargets.Count; i++) { abilitiesCreator.addAbility(defenseTargets[i] + "Defense", abilityType.defense); } }
public void addDefaultResourceAbilities() { if (abilitiesCreator == null) { abilitiesCreator = new AbilitiesEditor(tentativeAbilities, creature.remainingAbilityPoints); } foreach (string resource in creature.storedResources.Keys) { abilitiesCreator.addAbility(resource, abilityType.consumption); } }
public void addAttackAbilities(List <string> attackTargets) { if (abilitiesCreator == null) { abilitiesCreator = new AbilitiesEditor(tentativeAbilities, creature.remainingAbilityPoints); } for (int i = 0; i < attackTargets.Count; i++) { abilitiesCreator.addAbility(attackTargets[i] + "Attack", abilityType.attack); } }
/// <summary> /// edit tentativeAbilities, returns AbilitesEditor /// </summary> public AbilitiesEditor editAbilities() { abilitiesCreator = new AbilitiesEditor(tentativeAbilities, creature.remainingAbilityPoints); return(abilitiesCreator); }