public AbilityEffect(PotionData potionData) { ability = potionData.Ability; remainingTurn = -1; wayOfCalculate = potionData.WayOfIncrease; effectValue = potionData.IncreaseValue; abilityEffectData = AbilityEffectData.Potion; description = potionData.Description; dataIdList = new List <int>(); dataIdList.Add(potionData.Id); }
public AbilityEffect(ScenarioData scenarioData) { ability = scenarioData.ApplyAbility; remainingTurn = scenarioData.ApplyTurn; wayOfCalculate = WayOfCalculate.Percentage; effectValue = scenarioData.ApplyPercentage; abilityEffectData = AbilityEffectData.Scenario; description = scenarioData.RewardDescription; dataIdList = new List <int>(); dataIdList.Add(scenarioData.ChapterId); dataIdList.Add(scenarioData.WaveId); dataIdList.Add(scenarioData.ScenarioId); }
public AbilityEffectSaveData(List <int> idList, AbilityEffectData data, int remainingTurn) { DataIdList = idList; abilityEffectData = data; this.remainingTurn = remainingTurn; }