1using System.Collections.Generic;
112 if (thing.
id ==
"medal")
114 thing.isHidden =
false;
142 if (traitToolFishing !=
null)
144 num = num * 100 / (50 + traitToolFishing.owner.material.hardness * 2);
188 public override IEnumerable<Status>
Run()
223 yield
return Status.Running;
248 foreach (
Point p
in list)
254 for (
int _x = p.
x - 1; _x <= p.
x + 1; _x++)
256 for (
int _z = p.
z - 1; _z <= p.
z + 1; _z++)
262 yield
return DoGoto(dest);
265 yield
return Status.Success;
279 for (
int i = p.
x - 1; i <= p.
x + 1; i++)
281 for (
int j = p.
z - 1; j <= p.
z + 1; j++)
295 bool hqFever = c.IsPC && c.
Evalue(1659) > 0 && EClass.player.fished < 5;
297 if (!hqFever &&
EClass.
rnd(3 + num) == 0)
304 c.
Say(
"fishingFever");
306 int[] array =
new int[18]
308 233, 235, 236, 236, 236, 1170, 1143, 1144, 727, 728,
309 237, 869, 1178, 1179, 1180, 1243, 1244, 1245
318 text =
"book_ancient";
325 text =
"scratchcard";
329 text =
"casino_coin";
337 text =
new string[7] {
"659",
"758",
"759",
"806",
"828",
"1190",
"1191" }.RandomItem();
345 if (!hqFever && text !=
"")
349 else if (!hqFever &&
EClass.
rnd(5 + num / 3) == 0)
373 int num4 = Mathf.Max(1, num / (thing.
source.LV * 2 + 10));
386 c.
Say(
"bigCatch", c);
388 num2 = (num6 ? num4 :
EClass.
rnd(num4)) / (num3 + 1) + 1;
Status DoWait(int count=1)
Status DoGoto(Point pos, int dist=0, bool ignoreConnection=false, Func< Status > _onChildFail=null)
override bool ShowProgress
override void OnProgressComplete()
override void OnProgress()
override bool CanPerform()
static Point GetFishingPoint(Point p)
override AIProgress CreateProgress()
override bool CanManualCancel()
static Thing Makefish(Chara c)
override IEnumerable< Status > Run()
void PlayAnime(AnimeID id, bool force)
void SetTier(int a, bool setTraits=true)
ElementContainerCard elements
bool HasElement(int ele, int req=1)
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
virtual void SetBlessedState(BlessedState s)
Effect PlayEffect(string id, bool useRenderPos=true, float range=0f, Vector3 fix=default(Vector3))
int ChildrenAndSelfWeight
void ModNum(int a, bool notify=true)
void Say(string lang, string ref1=null, string ref2=null)
override bool IsPCFaction
void ClearInventory(ClearInventoryType type)
override void LookAt(Card c)
Thing Pick(Thing t, bool msg=true, bool tryStack=true)
static int curve(int a, int start, int step, int rate=75)
static FactionBranch Branch
static Effect Get(Effect original)
void Play(float delay, Point from, float fixY=0f, Point to=null, Sprite sprite=null)
void ModExp(int ele, int a, bool chain=false)
List< Point > ListPoints()
ConfigPreference preference
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
Point Set(int _x, int _z)
SoundSource PlaySound(string id, bool synced=true, float v=1f, bool spatial=true)
static void SetSeed(int a=-1)
static TargetTypeGround Ground
List< Thing > List(Func< Thing, bool > func, bool onlyAccessible=false)
static Thing Create(string id, int idMat=-1, int lv=-1)
Card AddCard(Card t, Point point)