11 {
13 {
14 return false;
15 }
18 {
20 {
21 tg = a;
22 return true;
23 }
25 {
26 tg = a;
27 return true;
28 }
29 return false;
30 });
31 if (tg != null)
32 {
34 {
36 {
37 if (tg.isChara && tg.Chara.mimicry != null && !tg.IsPCParty)
38 {
39 tg.Chara.mimicry.RevealMimicry(EClass.pc, surprise: true);
40 return true;
41 }
43 {
44 EClass.pc.Say("tooHeavy", tg);
45 return false;
46 }
48 {
49 if (EClass.player.flags.pickedMelilithTreasure)
50 {
51 EClass.pc.PlaySound("curse3");
52 EClass.pc.PlayEffect("curse");
53 EClass.pc.SetFeat(1206, 1, msg: true);
54 EClass.player.flags.gotMelilithCurse = true;
55 }
56 else
57 {
58 Msg.Say("pickedMelilithTreasure");
59 EClass.player.flags.pickedMelilithTreasure = true;
60 EClass.game.quests.Get<QuestCursedManor>()?.NextPhase();
61 }
63 }
66 {
67 tg.PlaySoundHold(spatial: false);
68 EClass.player.RefreshCurrentHotItem();
69 ActionMode.Adv.planRight.Update(ActionMode.Adv.mouseTarget);
70 EClass.pc.renderer.Refresh();
71 if (EClass.pc.held.trait is TraitToolMusic)
72 {
73 HotItemHeld.disableTool = true;
74 }
75 }
76 }
77 return true;
78 }, tg, null, 1, isHostileAct: false, localAct: false);
79 }
81 if (taskHarvest != null)
82 {
84 }
85 return false;
86 }
if(item3.idFile==idFirstFile &&item3.id==idFirstTopic)
bool TrySetAct(string lang, Func< bool > onPerform, Card tc, CursorInfo cursor=null, int dist=1, bool isHostileAct=false, bool localAct=true, bool canRepeat=false)
bool HasEditorTag(EditorTag tag)
void HoldCard(Card t, int num=-1)
ConTransmuteMimic mimicry
List< Card > ListVisibleCards()
static TaskHarvest TryGetAct(Chara c, Point p)