1using System.Collections.Generic;
8 public bool cook =
true;
38 public override IEnumerable<Status>
Run()
52 yield
return DoGrab<TraitFood>();
65 yield
return DoGotoSpot<TraitHearth>(base.KeepRunning);
75 yield
return DoGotoSpot<TraitSpotDining>(base.KeepRunning);
77 int max = ((target.SelfWeight < 100) ? 1 : (2 + (
int)Mathf.Sqrt(
target.
SelfWeight * 2 / 3)));
81 cancelWhenMoved =
false,
83 onProgressBegin = delegate
100 if (!value.
source.foodEffect.IsEmpty())
102 string[] foodEffect = value.
source.foodEffect;
103 if (foodEffect[0] ==
"poison" || foodEffect[0] ==
"love")
111 if (refCard !=
null && refCard.
id ==
"mammoth")
113 EClass.player.forceTalk =
true;
119 onProgressComplete = delegate
133 }.SetDuration(max, 5);
134 yield
return Do(seq);
Status DoGrab(Card card, int num=-1, bool pickHeld=false, Func< Status > _onChildFail=null)
Status Do(AIAct _seq, Func< Status > _onChildFail=null)
override bool IsHostileAct
override bool CanManualCancel()
bool IsValidTarget(Card c)
override IEnumerable< Status > Run()
virtual string GetName(NameStyle style, int num=-1)
ElementContainerCard elements
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
void Talk(string idTopic, string ref1=null, string ref2=null, bool forceSync=false)
void ShowEmo(Emo _emo=Emo.none, float duration=0f, bool skipSame=true)
void PlayAnime(AnimeID id, bool force=false)
void ModNum(int a, bool notify=true)
void Say(string lang, string ref1=null, string ref2=null)
void HoldCard(Card t, int num=-1)
FactionMemberType memberType
Dictionary< int, Element > dict
static void Proc(Chara c, Thing food)
virtual bool CanEat(Chara c)