public static bool MeetsCondition( KnowsSpellCondition condition, Player player, Event eventInstance, QuestBase questBase ) { if (player.KnowsSpell(condition.SpellId)) { return(true); } return(false); }
private void SetupFormValues(KnowsSpellCondition condition) { cmbSpell.SelectedIndex = SpellBase.ListIndex(condition.SpellId); }
private void SaveFormValues(KnowsSpellCondition condition) { condition.SpellId = SpellBase.IdFromList(cmbSpell.SelectedIndex); }