public static CombatModificationsModel getAdrenalineModification(string time) { CombatModificationsModel cmm = new CombatModificationsModel(); cmm.name = "Adrenaline"; cmm.conditions = new List <CombatConditionModel>(); cmm.conditions.Add(new CombatConditionModel() { name = "Time", state = time }); return(cmm); }
public static CombatModificationsModel getRecklessModification(string characterName) { CombatModificationsModel cmm = new CombatModificationsModel(); cmm.name = "Reckless"; cmm.conditions = new List <CombatConditionModel>(); cmm.conditions.Add(new CombatConditionModel() { name = "TurnEnding", state = characterName + "!" }); return(cmm); }
public static void removeRanged(FullCombatCharacter fcc) { CombatModificationsModel toRemove = null; foreach (CombatModificationsModel mod in fcc.mods) { if (mod.name == "Ranged") { toRemove = mod; } } if (toRemove != null) { fcc.mods.Remove(toRemove); } }
public Func <List <FullCombatCharacter>, List <FullCombatCharacter>, CombatData, List <IEffect> > initialExecute(FullCombatCharacter source) { return((List <FullCombatCharacter> allies, List <FullCombatCharacter> enemies, CombatData combatData) => { List <IEffect> effects = new List <IEffect>(); if (source.className == "Adventurer" && source.classLevel >= 13) { foreach (FullCombatCharacter fcc in enemies) { if (!BasicModificationsGeneration.hasMod(fcc, "Glance")) { CombatModificationsModel cmm = new CombatModificationsModel(); cmm.name = "Glance"; cmm.conditions = new List <CombatConditionModel>(); fcc.mods.Add(cmm); cmm = null; } } effects.Add(new Effect(EffectTypes.Message, 0, "All enemies have been glanced by " + source.name + "'s Insight ability!", 0)); } return effects; }); }