public void Execute(AdjustValueVO vo) { CharacterModel model = AmbitionApp.GetModel <CharacterModel>(); NotableVO notable = Array.Find(model.Notables, n => n.Name == vo.Type); if (vo.IsRequest && notable != null) { notable.Devotion += (int)vo.Amount; vo.IsRequest = false; AmbitionApp.SendMessage <AdjustValueVO>(vo); } }
public void Execute(SeductionVO s) { CharacterModel model = AmbitionApp.GetModel <CharacterModel>(); NotableVO notable = Array.Find(model.Notables, n => n.Name == s.Notable); if (notable != null) { //int seductionChance = //(notable.Gender == Gender.Female ? model.SeductionModifier : model.SeductionAltModifier) + //(model.SeductionTimeModifier - s.Time) - //(string.IsNullOrEmpty(notable.Spouse) ? model.SeductionMarriedModifier : 0); // TODO: Dancing? } }