2using System.Collections.Generic;
11 public void Add(
Act a,
string s =
"")
56 public bool Perform(
bool repeated =
false)
72 EClass.scene.mouseTarget.card = lastMouseCard;
133 if (aIAct is
Task task)
135 task.isDestroyed =
false;
139 taskPoint.isRepeated =
true;
198 return list[0].act.CanPressRepeat;
214 return list[0].act.GetCursorIcon(
list[0].tc);
228 return list[0].act.WillEndTurn;
240 return list[0].act.HideRightInfo;
256 return list[0].act.ShowMouseHint(
list[0].tc);
270 return list[0].tc !=
list.LastItem().tc;
284 return list[0].GetText(showName);
286 return "+" + list.Count + ((
HasMultipleTargets ||
list[0].tc ==
null) ? (
"\n<size=28>(" +
"multipleTargets".lang() +
")</size>") : (
"\n<size=28>" +
list[0].tc.Name +
list[0].tc.GetExtraName() +
"</size>"));
326 EClass.player.forceTalk =
true;
337 uIContextMenu2.
AddButton(
"order_fight", delegate
339 Order(
"order_fight");
341 uIContextMenu2.
AddButton(
"order_heal", delegate
345 uIContextMenu2.
AddButton(
"order_wait", delegate
353 textContext = textContext.Replace(
"\n",
" ").Replace(Environment.NewLine,
" ");
354 uIContextMenu.AddButton(textContext, delegate
368 uIContextMenu.Show();
378 isHostileAct = isHostileAct,
407 if (_tc !=
null && _tc.isChara)
410 for (
int i = 0; i <
list.Count; i++)
412 if (
list[i].tc == _tc)
455 for (
int i = 0; i < components.Length; i++)
457 components[i].effectColor = effectColor;
463 EClass.ui.hud.imageRight.rectTransform.localScale =
new Vector3(2f, 2f, 1f);
466 for (
int i = 0; i < components.Length; i++)
468 components[i].effectColor = effectColor;
529 items.ForeachReverse(delegate(
Card _c)
560 variation = AI_Fuck.Variation.Succubus
629 items.ForeachReverse(delegate(
Card _c)
649 uIContextMenu.
AddSlider(
"rideSkin", (
float a) =>
list[(
int)a].Split(
'-')[0] ??
"", index, delegate(
float a)
651 ride.c_idRidePCC =
list[(int)a];
653 }, 0f, list.Count - 1, isInt:
true, hideOther:
false);
654 uIContextMenu.
Show();
667 string lang =
"actGive";
681 Dialog.YesNo(
"dialogGive".lang(EClass.pc.held.GetName(NameStyle.Full, 1)), func);
696 ActThrow.Throw(EClass.pc, c.pos, c, EClass.pc.held.Split(1));
769 t.c_lightColor = (byte)Mathf.Clamp(_c.r * 32f, 1f, 31f) * 1024 + (byte)Mathf.Clamp(_c.g * 32f, 1f, 31f) * 32 + (byte)Mathf.Clamp(_c.b * 32f, 1f, 31f);
779 TrySetAct(
"(debug) Toggle Float", delegate
871 IList<Card> _cards = items.Copy();
874 foreach (
Card item2
in _cards)
878 EClass.pc.Pick(item2.Thing);
901 ActionMode.AdvOrRegion.updatePlans =
true;
942 items.ForeachReverse(delegate(
Card _c)
946 TrySetAct(ACT.Melee, _c);
965 hotItem.OnClick(hotItem.button, hotItem.hotbar);
973 bool flag = EClass.game.config.autoCombat.enable && EClass.scene.mouseTarget.TargetChara !=
null && EClass.scene.mouseTarget.TargetChara.mimicry ==
null;
1000 if (!
list[0].act.ShowAuto)
if(item3.idFile==idFirstFile &&item3.id==idFirstTopic)
void SetTurbo(int mtp=-1)
string GetText(bool showName)
bool Perform(bool repeated=false)
string GetTextContext(bool showName)
void Add(Act a, string s="")
bool _canInteractNeighbor
string GetText(bool showName)
void Update(PointTarget target)
bool TrySetAct(Act _act, Card _tc=null)
void _Update(PointTarget target)
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 TrySetAct(string lang, Func< bool > onPerform, CursorInfo cursor=null, int dist=1)
static bool SearchMedal(Chara c, Point p)
virtual int PerformDistance
virtual string GetTextSmall(Card c)
virtual string GetText(string str="")
virtual bool CanPerform()
bool IsRestrainedResident
void TryUnrestrain(bool force=false, Chara c=null)
void SayRaw(string text, string ref1=null, string ref2=null)
bool HasElement(int ele, bool includeNagative=false)
override bool IsAliveInCurrentZone
bool CanAcceptGift(Chara c, Card t)
void Cuddle(Chara c, bool headpat=false)
bool IsValidGiftWeight(Card t, int num=-1)
void PickHeld(bool msg=false)
bool HasCondition(string alias)
ConTransmuteMimic mimicry
override CardRenderer _CreateRenderer()
override bool IsPCFaction
override bool IsPCPartyMinion
override bool IsPCFactionMinion
void SetAIImmediate(AIAct g)
bool CanInteractTo(Card c)
static NoGoal _NoGoalRepeat
void DropThing(Thing t, int num=-1)
void GiveGift(Chara c, Thing t)
Thing Pick(Thing t, bool msg=true, bool tryStack=true)
virtual void TrySetAct(ActPlan p)
bool bDontAutoAttackNeutral
static CursorInfo Inventory
static CursorInfo MoveZone
static Dialog InputName(string langDetail, string text, Action< bool, string > onClose, InputType inputType=InputType.Default)
static void TryWarnDisassemble(Action action)
static void TryWarnCrime(Action action)
static ColorProfile Colors
ConfigAutoCombat autoCombat
static bool _TrySetAct(ActPlan p)
virtual void SetImage(Image icon)
virtual bool TrySetAct(ActPlan p)
virtual bool IsGameAction
static LayerDragGrid Create(InvOwnerDraglet owner, bool refuelFromLayerDragGrid=false)
static LayerInventory CreateContainer(Card owner)
bool CanExitBorder(Point p)
bool HasKeyItem(string alias)
void EndTurn(bool consume=true)
void EnterLocalZone(bool encounter=false, Chara mob=null)
void ExitBorder(ActPlan p=null)
List< Card > ListCards(bool includeMasked=false)
Point Set(int _x, int _z)
bool Equals(int _x, int _z)
Thing FindThing(Func< Thing, bool > func)
bool IsDeliverTarget(Chara c)
virtual bool AllowTraining
virtual bool CanBeAttacked
virtual void TrySetAct(ActPlan p)
virtual bool CanRead(Chara c)
virtual void TrySetToggleAct(ActPlan p)
virtual bool CanEat(Chara c)
virtual bool DisableAutoCombat
virtual bool CanDrink(Chara c)
virtual bool CanOnlyCarry
bool IsCrime(Chara c, Act act)