Elin Decompiled Documentation EA 23.200 Stable
Loading...
Searching...
No Matches
TaskHarvest Class Reference
Inheritance diagram for TaskHarvest:
BaseTaskHarvest TaskDesignation TaskPoint ISyncScreen Task IInspect AIAct Act Element EClass

Public Member Functions

override bool CanManualCancel ()
 
override string GetBaseText (string str)
 
override string GetTextSmall (Card c)
 
override bool CanProgress ()
 
override HitResult GetHitResult ()
 
override void OnCreateProgress (Progress_Custom p)
 
string GetIdDismantled ()
 
bool ShouldGenerateDismantled (string dest)
 
bool HaveHarvestThing ()
 
void HarvestThing ()
 
- Public Member Functions inherited from BaseTaskHarvest
virtual string GetBaseText (string str)
 
override string GetTextSmall (Card c)
 
override string GetText (string str="")
 
void SetTarget (Chara c, Thing _tool=null)
 
int GetToolEfficiency (Thing t, SourceMaterial.Row mat)
 
override bool CanProgress ()
 
int[] GetToolEfficiency (SourceMaterial.Row mat)
 
string GetTextDifficulty ()
 
- Public Member Functions inherited from TaskDesignation
virtual string GetTextOrbit ()
 
bool PointHasOtherDesignation ()
 
virtual void DrawMarker (int x, int z, RenderParam p)
 
virtual void Draw (int x, int z, RenderParam p)
 
virtual void OnEnterScreen ()
 
virtual void OnLeaveScreen ()
 
virtual void TrySpawnOrbit ()
 
void DespawnOrbit ()
 
- Public Member Functions inherited from TaskPoint
override bool CanManualCancel ()
 
override bool CanPerform ()
 
override bool _CanPerformTask (Chara chara, int radius)
 
override IEnumerable< StatusRun ()
 
void OnInspect ()
 
void WriteNote (UINote n, Action< UINote > onWriteNote=null, IInspect.NoteMode mode=IInspect.NoteMode.Default, Recipe recipe=null)
 
- Public Member Functions inherited from Task
virtual HitResult GetHitResult ()
 
override void OnSuccess ()
 
void TryLater (int min=30)
 
Status Destroy ()
 
virtual void OnDestroy ()
 
override Status Cancel ()
 
override void OnReset ()
 
override bool CanProgress ()
 
bool CanPerformTask (Chara chara, int radius)
 
virtual bool _CanPerformTask (Chara chara, int radius)
 
virtual void OnAdd ()
 
void ToggleSuspend ()
 
- Public Member Functions inherited from AIAct
override string ToString ()
 
override MultiSprite GetStateIcon ()
 
virtual bool ShouldAllyAttack (Chara tg)
 
virtual Point GetDestination ()
 
AIProgress GetProgress ()
 
string GetCurrentActionText ()
 
override bool IsToolValid ()
 
virtual void OnStart ()
 
void SetOwner (Chara c)
 
virtual void OnSetOwner ()
 
void SetChild (AIAct seq, Func< Status > _onChildFail=null)
 
void Start ()
 
override bool Perform ()
 
Status Restart ()
 
Status Success (Action action=null)
 
virtual void OnSuccess ()
 
bool TryCancel (Card c)
 
virtual Status Cancel ()
 
virtual void OnCancel ()
 
virtual void OnCancelOrSuccess ()
 
virtual bool CanManualCancel ()
 
Status KeepRunning ()
 
void Reset ()
 
virtual void OnReset ()
 
Status Tick ()
 
virtual IEnumerable< StatusRun ()
 
Status TickChild ()
 
Status Do (AIAct _seq, Func< Status > _onChildFail=null)
 
Status DoGotoInteraction (Point pos, Func< Status > _onChildFail=null)
 
Status DoGoto (Point pos, int dist=0, bool ignoreConnection=false, Func< Status > _onChildFail=null)
 
Status DoGoto (Card card, Func< Status > _onChildFail=null)
 
Status DoGoto (Card card, int dist, Func< Status > _onChildFail=null)
 
Status DoGotoSpot (Card card, Func< Status > _onChildFail=null)
 
Status DoGoto< T > (Func< Status > _onChildFail=null)
 
Status DoGotoSpot< T > (Func< Status > _onChildFail=null, bool ignoreAccessType=false)
 
Status DoGrab (Card card, int num=-1, bool pickHeld=false, Func< Status > _onChildFail=null)
 
Status DoGrab< T > ()
 
Status DoProgress ()
 
Status DoIdle (int repeat=3)
 
Status DoWait (int count=1)
 
virtual AIProgress CreateProgress ()
 
virtual void OnCreateProgress (Progress_Custom p)
 
virtual bool CanProgress ()
 
virtual void OnBeforeProgress ()
 
virtual void OnProgress ()
 
virtual void OnProgressComplete ()
 
void SimulateZone (int days)
 
virtual void OnSimulateZone (int days)
 
virtual void OnSimulatePosition ()
 
- Public Member Functions inherited from Act
virtual CursorInfo GetCursorIcon (Card c)
 
virtual MultiSprite GetStateIcon ()
 
override Sprite GetSprite ()
 
virtual bool ShowMouseHint (Card c)
 
virtual bool IsValidTC (Card c)
 
virtual string GetHintText (string str="")
 
virtual string GetText (string str="")
 
virtual string GetTextSmall (Card c)
 
bool IsTargetHostileParty ()
 
virtual Color GetActPlanColor ()
 
virtual bool Perform ()
 
virtual bool CanPerform ()
 
bool Perform (Chara _cc, Card _tc=null, Point _tp=null)
 
bool CanPerform (Chara _cc, Card _tc=null, Point _tp=null)
 
virtual bool IsToolValid ()
 
new void SetImage (Image image)
 
virtual void OnMarkMapHighlights ()
 
virtual bool ShouldMapHighlight (Point p)
 
- Public Member Functions inherited from Element
virtual SourceElement.Row GetSource ()
 
virtual int GetSourcePotential (int v)
 
virtual Sprite GetSprite ()
 
int GetMaterialSourceValue (Thing t, int v)
 
virtual int GetSourceValue (int v, int lv, SourceValueType type)
 
virtual Sprite GetIcon (string suffix="")
 
bool IsActive (Card c)
 
int SortVal (bool charaSheet=false)
 
virtual bool CanLink (ElementContainer owner)
 
bool HasTag (string tag)
 
void SetImage (Image i)
 
virtual string GetDetail ()
 
bool IsFactionElement (Chara c)
 
Element GetParent (Card c)
 
void WriteNote (UINote n, ElementContainer owner=null, Action< UINote > onWriteNote=null)
 
void WriteNoteWithRef (UINote n, ElementContainer owner, Action< UINote > onWriteNote, Element refEle)
 
void _WriteNote (UINote n, Chara c, Act act)
 
void AddHeaderAbility (UINote n)
 
void _WriteNote (UINote n, ElementContainer owner, Action< UINote > onWriteNote, bool isRef, bool addHeader=true)
 
void AddEncNote (UINote n, Card Card, ElementContainer.NoteMode mode=ElementContainer.NoteMode.Default, Func< Element, string, string > funcText=null, Action< UINote, Element > onAddNote=null)
 
virtual void OnWriteNote (UINote n, ElementContainer owner)
 
virtual void OnChangeValue ()
 
void CheckLevelBonus (ElementContainer owner, UINote n=null)
 
int GetSortVal (UIList.SortMode m)
 
virtual Act.Cost GetCost (Chara c)
 
virtual int GetPower (Card c)
 
virtual void SetTextValue (UIText text)
 
virtual bool IsPurchaseFeatReqMet (ElementContainer owner, int lv=-1)
 
virtual void WritePurchaseReq (UINote n, int lv=1)
 
void WriteNote (UINote n, Action< UINote > onWriteNote=null, NoteMode mode=NoteMode.Default, Recipe recipe=null)
 
void OnInspect ()
 
void OnEnterScreen ()
 
void OnLeaveScreen ()
 

Static Public Member Functions

static TaskHarvest TryGetAct (Chara c, Point p)
 
- Static Public Member Functions inherited from BaseTaskHarvest
static Thing GetBestTool (Chara c, Point p)
 
static int GetReqEle (string _raw)
 
- Static Public Member Functions inherited from Act
static void SetReference (Chara _cc, Card _tc=null, Point _tp=null)
 
static void SetTool (Thing t)
 
- Static Public Member Functions inherited from Element
static string GetName (string alias)
 
static SourceElement.Row Get (int id)
 
static Dictionary< int, int > GetElementMap (int[] list)
 
static Dictionary< int, int > GetElementMap (int[] list, Dictionary< int, int > map)
 
static SourceElement.Row GetRandomElement (int lv=1, bool useWeight=true)
 
static Element Create (int id, int v=0)
 
static Element Create (string id, int v=1)
 
static int GetId (string alias)
 
static int GetResistLv (int v)
 
static int GetResistDamage (int dmg, int v, int power=0)
 
- Static Public Member Functions inherited from EClass
static int rndSeed (int a, int seed)
 
static int rnd (long a)
 
static int rnd (int a)
 
static int curve (int a, int start, int step, int rate=75)
 
static int rndHalf (int a)
 
static float rndf (float a)
 
static int rndSqrt (int a)
 
static void Wait (float a, Card c)
 
static void Wait (float a, Point p)
 
static int Bigger (int a, int b)
 
static int Smaller (int a, int b)
 

Public Attributes

bool wasReapSeed
 
bool wasCrime
 
bool harvestingCrop
 
HarvestType mode = HarvestType.Obj
 
- Public Attributes inherited from BaseTaskHarvest
Thing target
 
Element reqElement
 
int matHardness
 
int idEle
 
int reqLv
 
int toolLv
 
int maxProgress
 
int efficiency
 
int difficulty
 
int effectFrame = 1
 
bool isToolRequired
 
Thing tool
 
- Public Attributes inherited from TaskDesignation
long sync
 
bool isSynced
 
TCOrbitTask orbit
 
- Public Attributes inherited from TaskPoint
Point pos = new Point()
 
bool isRepeated
 
- Public Attributes inherited from Task
TaskList taskList
 
bool isDestroyed
 
int nextTry
 
bool suspended
 
- Public Attributes inherited from AIAct
new Chara owner
 
Status status
 
IEnumerator< StatusEnumerator
 
AIAct child
 
AIAct parent
 
byte restartCount
 
Func< StatusonChildFail
 
Func< bool > isFail
 
- Public Attributes inherited from Element
SourceElement.Row _source
 
int id
 
int vBase
 
int vExp
 
int vPotential
 
int vTempPotential
 
int vLink
 
int vSource
 
int vSourcePotential
 
ElementContainer owner
 

Properties

bool IsObj [get]
 
bool IsReapSeed [get]
 
override HarvestType harvestType [get]
 
override string IdRecipe [get]
 
override int RightHand [get]
 
override int destDist [get]
 
override bool IsGrowth [get]
 
override bool IsHostileAct [get]
 
override bool Loop [get]
 
- Properties inherited from BaseTaskHarvest
bool IsTooHard [get]
 
bool IsHarvest [get]
 
virtual string IdRecipe [get]
 
virtual bool CanReapSeed [get]
 
virtual HarvestType harvestType [get]
 
virtual bool IsGrowth [get]
 
override bool CanPressRepeat [get]
 
override int LeftHand [get]
 
override CursorInfo CursorIcon [get]
 
- Properties inherited from TaskDesignation
override bool HasProgress [get]
 
virtual int idMarker [get]
 
virtual int W [get]
 
virtual int H [get]
 
virtual bool ShowOrbit [get]
 
virtual bool Working [get]
 
override bool ShowAuto [get]
 
override CursorInfo CursorIcon [get]
 
TaskManager.Designations Designations [get]
 
long Sync [get]
 
- Properties inherited from TaskPoint
override bool HasProgress [get]
 
virtual int destDist [get]
 
virtual bool destIgnoreConnection [get]
 
virtual bool isBlock [get]
 
virtual bool Loop [get]
 
bool CanInspect [get]
 
string InspectName [get]
 
Point InspectPoint [get]
 
Vector3 InspectPosition [get]
 
- Properties inherited from Task
override TargetType TargetType [get]
 
- Properties inherited from AIAct
virtual bool IsRunning [get]
 
bool IsChildRunning [get]
 
bool IsMoveAI [get]
 
virtual int MaxRestart [get]
 
virtual new string Name [get]
 
virtual MultiSprite stateIcon [get]
 
virtual Sprite actionIcon [get]
 
virtual bool IsNoGoal [get]
 
virtual bool IsAutoTurn [get]
 
virtual bool IsIdle [get]
 
virtual bool CancelOnAggro [get]
 
virtual bool PushChara [get]
 
virtual int MaxProgress [get]
 
virtual bool ShowProgress [get]
 
virtual bool UseTurbo [get]
 
virtual int CurrentProgress [get]
 
virtual bool ShowCursor [get]
 
virtual bool CancelWhenDamaged [get]
 
virtual bool CancelWhenMoved [get]
 
virtual bool InformCancel [get]
 
virtual Thing RenderThing [get]
 
AIAct Current [get]
 
override bool IsAct [get]
 
override bool ShowPotential [get]
 
override bool UsePotential [get]
 
override bool ShowRelativeAttribute [get]
 
virtual bool HasProgress [get]
 
- Properties inherited from Act
override bool ShowPotential [get]
 
override bool UsePotential [get]
 
override bool ShowRelativeAttribute [get]
 
virtual CursorInfo CursorIcon [get]
 
virtual string ID [get]
 
virtual bool IsAct [get]
 
virtual bool WillEndTurn [get]
 
virtual bool CloseLayers [get]
 
virtual int LeftHand [get]
 
virtual int RightHand [get]
 
virtual int ElementPowerMod [get]
 
virtual bool ShowMapHighlight [get]
 
virtual bool ShowMapHighlightBlock [get]
 
virtual bool PickHeldOnStart [get]
 
virtual bool DropHeldOnStart [get]
 
virtual bool CanPressRepeat [get]
 
virtual bool CanAutofire [get]
 
virtual bool ResetAxis [get]
 
virtual bool RequireTool [get]
 
virtual bool IsHostileAct [get]
 
virtual bool HideRightInfo [get]
 
virtual bool HaveLongPressAction [get]
 
virtual float Radius [get]
 
virtual int PerformDistance [get]
 
virtual int MaxRadius [get]
 
virtual TargetType TargetType [get]
 
virtual bool LocalAct [get]
 
virtual bool CanRapidFire [get]
 
virtual float RapidDelay [get]
 
virtual bool ShowAuto [get]
 
virtual bool IsCrime [get]
 
- Properties inherited from Element
SourceElement.Row source [get]
 
virtual int DisplayValue [get]
 
virtual int MinValue [get]
 
int Value [get]
 
int ValueWithoutLink [get]
 
virtual int MinPotential [get]
 
int Potential [get]
 
virtual bool CanGainExp [get]
 
bool IsFlag [get]
 
virtual string Name [get]
 
virtual string FullName [get]
 
virtual int ExpToNext [get]
 
virtual bool UseExpMod [get]
 
virtual int CostTrain [get]
 
virtual int CostLearn [get]
 
virtual bool ShowXP [get]
 
virtual bool ShowMsgOnValueChanged [get]
 
virtual bool ShowValue [get]
 
virtual bool ShowPotential [get]
 
virtual bool UsePotential [get]
 
virtual bool PotentialAsStock [get]
 
virtual bool ShowRelativeAttribute [get]
 
virtual bool ShowBonuses [get]
 
virtual string ShortName [get]
 
bool IsGlobalElement [get]
 
bool IsFactionWideElement [get]
 
bool IsPartyWideElement [get]
 
virtual bool ShowEncNumber [get]
 
bool IsTrait [get]
 
bool IsFoodTrait [get]
 
bool IsFoodTraitMain [get]
 
bool IsMainAttribute [get]
 
Act act [get]
 
- Properties inherited from EClass
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Faction Wilds [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static SoundManager Sound [get]
 
static CoreDebug debug [get]
 
- Properties inherited from IInspect
bool CanInspect [get]
 
string InspectName [get]
 
Point InspectPoint [get]
 
Vector3 InspectPosition [get]
 
- Properties inherited from ISyncScreen
long Sync [get]
 

Additional Inherited Members

- Public Types inherited from BaseTaskHarvest
enum  HarvestType {
  Floor , Block , Obj , Thing ,
  Disassemble
}
 
- Public Types inherited from AIAct
enum  Status { Running , Fail , Success }
 
- Public Types inherited from Act
enum  CostType { None , MP , SP }
 
- Public Types inherited from IInspect
enum  NoteMode { Default , Recipe , Product , Info }
 
- Static Public Attributes inherited from Act
static Chara CC
 
static Card TC
 
static Point TP = new Point()
 
static Thing TOOL
 
static int powerMod = 100
 
static bool forcePt
 
static Act CurrentAct
 
- Static Public Attributes inherited from Element
const int Div = 5
 
static Element Void = new Element()
 
static int[] List_MainAttributes = new int[9] { 70, 72, 71, 77, 74, 75, 76, 73, 79 }
 
static int[] List_MainAttributesMajor = new int[8] { 70, 72, 71, 77, 74, 75, 76, 73 }
 
static int[] List_Body = new int[4] { 70, 72, 71, 77 }
 
static int[] List_Mind = new int[4] { 74, 75, 76, 73 }
 
static List< SourceElement.RowListElements = new List<SourceElement.Row>()
 
static List< SourceElement.RowListAttackElements = new List<SourceElement.Row>()
 
- Static Public Attributes inherited from EClass
static Core core
 

Detailed Description

Definition at line 3 of file TaskHarvest.cs.

Member Function Documentation

◆ CanManualCancel()

override bool TaskHarvest.CanManualCancel ( )
inlinevirtual

Reimplemented from AIAct.

Definition at line 101 of file TaskHarvest.cs.

102 {
103 return true;
104 }

◆ CanProgress()

override bool TaskHarvest.CanProgress ( )
inlinevirtual

Reimplemented from BaseTaskHarvest.

Definition at line 226 of file TaskHarvest.cs.

227 {
228 if (tool != null && tool.trait is TraitToolSickle && !pos.cell.CanReapSeed())
229 {
230 return false;
231 }
232 if (IsObj)
233 {
235 if (base.CanProgress())
236 {
237 return pos.HasObj;
238 }
239 return false;
240 }
241 if (target == null || !target.ExistsOnMap)
242 {
243 return false;
244 }
245 return base.CanProgress();
246 }
new Chara owner
Definition: AIAct.cs:14
void SetTarget(Chara c, Thing _tool=null)
bool ExistsOnMap
Definition: Card.cs:2047
Trait trait
Definition: Card.cs:51
bool CanReapSeed()
Definition: Cell.cs:1669
Definition: EClass.cs:5
static Chara pc
Definition: EClass.cs:14
bool HasObj
Definition: Point.cs:137
Cell cell
Definition: Point.cs:51
Point pos
Definition: TaskPoint.cs:11

References Cell.CanReapSeed(), Point.cell, Card.ExistsOnMap, Point.HasObj, IsObj, AIAct.owner, EClass.pc, TaskPoint.pos, BaseTaskHarvest.SetTarget(), BaseTaskHarvest.target, BaseTaskHarvest.tool, and Card.trait.

◆ GetBaseText()

override string TaskHarvest.GetBaseText ( string  str)
inlinevirtual

Reimplemented from BaseTaskHarvest.

Definition at line 106 of file TaskHarvest.cs.

107 {
108 if (IsReapSeed)
109 {
110 return "TaskHarvestSeed".lang();
111 }
112 if (mode == HarvestType.Disassemble)
113 {
114 return (HaveHarvestThing() ? "TaskDisassemble" : "TaskDisassemble_destroy").lang();
115 }
116 if (!base.IsHarvest)
117 {
118 return base.GetBaseText(str);
119 }
120 return "actHarvest".lang();
121 }
bool HaveHarvestThing()
Definition: TaskHarvest.cs:559
HarvestType mode
Definition: TaskHarvest.cs:11
bool IsReapSeed
Definition: TaskHarvest.cs:16

References HaveHarvestThing(), IsReapSeed, and mode.

◆ GetHitResult()

override HitResult TaskHarvest.GetHitResult ( )
inlinevirtual

Reimplemented from Task.

Definition at line 248 of file TaskHarvest.cs.

249 {
250 if (harvestingCrop && !base.IsHarvest)
251 {
252 return HitResult.Default;
253 }
254 if (IsObj)
255 {
256 if (base.IsHarvest)
257 {
258 return HitResult.Valid;
259 }
260 if (pos.HasObj)
261 {
262 return HitResult.Valid;
263 }
265 {
266 return HitResult.Valid;
267 }
268 return HitResult.Default;
269 }
270 if (target == null || !target.ExistsOnMap)
271 {
272 return HitResult.Default;
273 }
274 return HitResult.Valid;
275 }
HitResult
Definition: HitResult.cs:2
static BuildMenu Instance
Definition: BuildMenu.cs:77
bool godBuild
Definition: CoreDebug.cs:304
static CoreDebug debug
Definition: EClass.cs:48
bool HasDecal
Definition: Point.cs:139
bool harvestingCrop
Definition: TaskHarvest.cs:9

References EClass.debug, Card.ExistsOnMap, CoreDebug.godBuild, harvestingCrop, Point.HasDecal, Point.HasObj, BuildMenu.Instance, IsObj, TaskPoint.pos, and BaseTaskHarvest.target.

◆ GetIdDismantled()

string TaskHarvest.GetIdDismantled ( )
inline

Definition at line 502 of file TaskHarvest.cs.

503 {
504 if (target.HasElement(707))
505 {
506 return "fish_slice";
507 }
508 string[] array = target.source.components[0].Split('|');
509 for (int i = 0; i < array.Length; i++)
510 {
511 array[i] = array[i].Split('/')[0];
512 }
513 string result = array[0];
514 if (array.Length > 1)
515 {
516 string category = target.material.category;
517 bool flag = category == "rock" || category == "ore" || category == "gem";
518 if (array[0] == "ingot" && array[1] == "log" && !flag)
519 {
520 result = array[1];
521 }
522 }
524 {
525 result = target.material.thing;
526 }
527 return result;
528 }
bool HasElement(int ele, int req=1)
Definition: Card.cs:5725
SourceMaterial.Row material
Definition: Card.cs:2013
bool IsEquipmentOrRangedOrAmmo
Definition: Card.cs:2192
SourceThing.Row source
Definition: Thing.cs:11

References Card.HasElement(), Card.IsEquipmentOrRangedOrAmmo, Card.material, Thing.source, and BaseTaskHarvest.target.

Referenced by HarvestThing(), and HaveHarvestThing().

◆ GetTextSmall()

override string TaskHarvest.GetTextSmall ( Card  c)
inlinevirtual

Reimplemented from BaseTaskHarvest.

Definition at line 123 of file TaskHarvest.cs.

124 {
125 if (IsObj)
126 {
127 return base.GetTextSmall(c);
128 }
129 if (target == null)
130 {
131 return "";
132 }
133 return target.Name;
134 }
string Name
Definition: Card.cs:2099

References IsObj, Card.Name, and BaseTaskHarvest.target.

◆ HarvestThing()

void TaskHarvest.HarvestThing ( )
inline

Definition at line 565 of file TaskHarvest.cs.

566 {
567 string text = GetIdDismantled();
568 float num = target.Num;
569 float num2 = 1.0999999f;
570 if (target.trait.CraftNum > 1)
571 {
572 num2 = (float)target.trait.CraftNum * 1.35f;
573 }
574 switch (text)
575 {
576 case "log":
577 case "rock":
578 num2 = 2.1999998f;
579 break;
580 case "fish_slice":
581 num2 = 4.4f;
582 break;
583 }
584 string text2 = target.id;
585 if (text2 == "glass" || text2 == "brick")
586 {
587 num2 = 2.1999998f;
588 }
589 float num3 = num % num2;
590 num /= num2;
591 Debug.Log("num:" + num + " div:" + num3 + " chance:" + num2 + " check:" + (num2 - num3 + 1f));
592 if (num3 > 0f && EClass.rndf(num2 - num3 + 1f) < 1f)
593 {
594 num += 1f;
595 }
596 if (target.sockets != null)
597 {
599 }
600 int decay = target.decay;
601 int lV = target.LV;
602 target.Die(null, EClass.pc);
603 if ((int)num <= 0 || !ShouldGenerateDismantled(text))
604 {
605 return;
606 }
607 if (target.isCopy || target.HasElement(764))
608 {
609 text = "ash3";
610 }
612 {
613 fixedQuality = true
614 });
615 Thing thing = ThingGen.Create(text, 1, Mathf.Max(1, lV * 2 / 3));
616 if (thing == null)
617 {
618 return;
619 }
620 if (EClass._zone.IsUserZone && target.isNPCProperty && (thing.trait is TraitPotionLove || thing.HasTag(CTAG.rareResource)))
621 {
622 Msg.Say("spellbookCrumble", thing);
623 thing.Destroy();
624 return;
625 }
626 thing.SetNum((int)num);
628 thing.decay = decay;
629 if (thing.IsDecayed && thing.IsFood)
630 {
631 thing.elements.SetBase(73, -10);
632 }
634 }
CTAG
Definition: CTAG.cs:2
static void Set(CardBlueprint _bp)
bool IsDecayed
Definition: Card.cs:2249
ElementContainerCard elements
Definition: Card.cs:39
string id
Definition: Card.cs:33
bool isNPCProperty
Definition: Card.cs:540
virtual void Die(Element e=null, Card origin=null, AttackSource attackSource=AttackSource.None, Chara originalTarget=null)
Definition: Card.cs:4864
Card ChangeMaterial(int idNew, bool ignoreFixedMaterial=false)
Definition: Card.cs:2994
bool isCopy
Definition: Card.cs:864
void EjectSockets()
Definition: Card.cs:3474
Thing SetNum(int a)
Definition: Card.cs:3393
int decay
Definition: Card.cs:204
bool IsFood
Definition: Card.cs:2137
bool HasTag(CTAG tag)
Definition: Card.cs:2557
Point pos
Definition: Card.cs:57
void Destroy()
Definition: Card.cs:4931
int Num
Definition: Card.cs:156
List< int > sockets
Definition: Card.cs:45
int LV
Definition: Card.cs:372
static Zone _zone
Definition: EClass.cs:20
static Map _map
Definition: EClass.cs:18
static float rndf(float a)
Definition: EClass.cs:92
Element SetBase(string alias, int v, int potential=0)
void TrySmoothPick(Cell cell, Thing t, Chara c)
Definition: Map.cs:1804
Definition: Msg.cs:5
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
Definition: Msg.cs:58
bool IsBlocked
Definition: Point.cs:351
string GetIdDismantled()
Definition: TaskHarvest.cs:502
bool ShouldGenerateDismantled(string dest)
Definition: TaskHarvest.cs:530
static Thing Create(string id, int idMat=-1, int lv=-1)
Definition: ThingGen.cs:53
Definition: Thing.cs:8
virtual int CraftNum
Definition: Trait.cs:132
virtual bool IsUserZone
Definition: Zone.cs:266

References EClass._map, EClass._zone, Card.ChangeMaterial(), Trait.CraftNum, ThingGen.Create(), Debug, Card.decay, Card.Destroy(), Card.Die(), Card.EjectSockets(), Card.elements, GetIdDismantled(), Card.HasElement(), Card.HasTag(), Card.id, Point.IsBlocked, Card.isCopy, Card.IsDecayed, Card.IsFood, Card.isNPCProperty, Zone.IsUserZone, Card.LV, Card.material, Card.Num, AIAct.owner, EClass.pc, Card.pos, TaskPoint.pos, EClass.rndf(), Msg.Say(), CardBlueprint.Set(), ElementContainer.SetBase(), Card.SetNum(), ShouldGenerateDismantled(), Card.sockets, BaseTaskHarvest.target, Card.trait, and Map.TrySmoothPick().

Referenced by OnCreateProgress().

◆ HaveHarvestThing()

bool TaskHarvest.HaveHarvestThing ( )
inline

Definition at line 559 of file TaskHarvest.cs.

560 {
561 string idDismantled = GetIdDismantled();
562 return ShouldGenerateDismantled(idDismantled);
563 }

References GetIdDismantled(), and ShouldGenerateDismantled().

Referenced by GetBaseText().

◆ OnCreateProgress()

override void TaskHarvest.OnCreateProgress ( Progress_Custom  p)
inlinevirtual

Reimplemented from AIAct.

Definition at line 277 of file TaskHarvest.cs.

278 {
280 string i = (IsObj ? pos.cell.GetObjName() : target.Name);
281 SourceMaterial.Row mat = (IsObj ? pos.cell.matObj : target.material);
282 GrowSystem growth = pos.growth;
283 float num = (base.IsHarvest ? 0.5f : ((!IsObj) ? 1f : ((growth != null) ? growth.MtpProgress : 1f)));
284 int exp = 50;
287 p.textHint = i;
288 p.maxProgress = (int)((float)(maxProgress * 150) * num / 100f);
289 p.interval = 1;
290 p.onProgressBegin = delegate
291 {
292 if (TryGetAct(owner, pos) == null)
293 {
294 p.Cancel();
295 }
296 else if (base.IsTooHard)
297 {
298 owner.Say((mode == HarvestType.Disassemble) ? "tooHardToDisassemble" : "tooHardToHarvest", owner, i);
299 p.Cancel();
300 }
301 else if (mode == HarvestType.Disassemble)
302 {
303 owner.Say("disassemble_start", owner, owner.Tool, i);
304 }
305 else if (owner.Tool == null)
306 {
307 owner.Say("harvestHand_start", owner, i);
308 }
309 else
310 {
311 owner.Say("harvest_start", owner, owner.Tool, i);
312 }
313 };
314 p.onProgress = delegate(Progress_Custom _p)
315 {
318 if (_p.progress % 2 == 0)
319 {
320 if (IsObj)
321 {
322 if (base.IsHarvest && growth != null)
323 {
325 if (growth.AnimeProgress != 0)
326 {
327 pos.Animate(growth.AnimeProgress);
328 }
329 return;
330 }
331 pos.Animate(AnimeID.HitObj);
332 }
333 else
334 {
335 target.PlayAnime(AnimeID.HitObj);
336 }
338 mat.PlayHitEffect(pos);
339 mat.AddBlood(pos);
340 effectFrame += maxProgress / 4 + 1;
341 if (EClass._zone.IsCrime(owner, this))
342 {
344 }
345 }
346 };
347 p.onProgressComplete = delegate
348 {
349 string idRecipe = IdRecipe;
351 int num2 = ((EClass.rnd(3) != 0) ? 1 : 0);
352 if (IsObj)
353 {
354 SourceObj.Row sourceObj = pos.sourceObj;
355 bool flag = false;
356 if (difficulty >= 0 && EClass.rnd(6) == 0)
357 {
358 flag = true;
359 }
360 if (difficulty >= 2 && EClass.rnd(3) == 0)
361 {
362 flag = true;
363 }
364 if (flag && growth != null)
365 {
366 growth.OnHitFail(owner);
367 }
368 if (EClass._zone is Zone_Harvest && !base.IsHarvest && pos.IsFarmField)
369 {
371 pos.SetObj();
372 }
373 else
374 {
375 if (base.IsHarvest && !IsReapSeed)
376 {
377 if (pos.growth.CanHarvest())
378 {
379 harvestingCrop = true;
380 }
382 }
383 else if (growth != null && !IsReapSeed)
384 {
386 }
387 else
388 {
389 EClass._map.MineObj(pos, this);
390 }
391 if (sourceObj.alias == "mound")
392 {
393 if (EClass.rnd(7) == 0)
394 {
395 EClass._zone.AddThing("plat", pos);
396 }
397 else if (EClass.rnd(3) == 0)
398 {
400 }
401 else
402 {
403 EClass._zone.AddThing("bone", pos);
404 }
405 }
406 }
407 }
408 else
409 {
410 exp = target.Num * 5;
411 num2 = target.Num / 3 + EClass.rnd(target.Num / 3 + 2);
413 {
414 HarvestThing();
415 }
416 }
417 if (EClass._zone.IsCrime(owner, this) && EClass.rnd(3) != 0)
418 {
420 }
421 if (backerObj != null)
422 {
423 if (backerObj != null && !backerObj.loot.IsEmpty() && !EClass.player.doneBackers.Contains(backerObj.id))
424 {
425 if (EClass.sources.cards.map.ContainsKey(backerObj.loot))
426 {
427 Thing thing = ThingGen.Create(backerObj.loot);
428 switch (backerObj.id)
429 {
430 case 490:
431 case 867:
432 case 5160:
433 thing.c_charges = 0;
434 thing.c_priceFix = -100;
435 break;
436 case 2531:
437 thing.MakeFoodFrom("cloud_electric");
438 break;
439 case 1027:
440 thing.ChangeMaterial(25);
441 thing.SetBlessedState(BlessedState.Doomed);
442 thing.ChangeRarity(Rarity.Legendary);
443 break;
444 case 4565:
445 EClass._zone.AddThing("rod", pos);
446 EClass._zone.AddThing("money", pos).SetNum(121);
447 break;
448 case 5367:
449 thing.Dye("obsidian");
450 break;
451 case 471:
452 case 1828:
453 case 5765:
454 thing.SetBlessedState(BlessedState.Cursed);
455 break;
456 case 5529:
457 thing.ChangeMaterial(25);
458 break;
459 case 1854:
460 thing.decay = 10000;
461 break;
462 case 4788:
463 thing.SetEncLv(1);
464 break;
465 case 4615:
466 thing.ChangeMaterial("meat");
467 break;
468 }
469 EClass._zone.AddCard(thing, pos);
470 }
471 else
472 {
473 Debug.LogError("exception: Backer Loot not valid:" + backerObj.id + "/" + backerObj.loot);
474 }
475 Debug.Log(backerObj.id + "/" + backerObj.Name + "/" + backerObj.loot);
476 }
477 EClass.player.doneBackers.Add(backerObj.id);
478 if (!backerObj.Text.IsEmpty() && EClass.core.config.backer.Show(backerObj))
479 {
480 bool num3 = backerObj.type == 1;
481 Msg.Say(num3 ? "backerRemain_read" : "backerTree_read");
482 Msg.Say(num3 ? "backerRemain" : "backerTree", backerObj.Text);
483 }
484 }
485 if (owner.IsPC)
486 {
488 }
490 if (wasReapSeed)
491 {
492 owner.ModExp(286, 20);
493 }
494 owner.stamina.Mod(-num2);
495 if (owner != null && owner.IsPC)
496 {
498 }
499 };
500 }
AnimeID
Definition: AnimeID.cs:2
BlessedState
Definition: BlessedState.cs:2
Rarity
Definition: Rarity.cs:2
virtual Status Cancel()
Definition: AIAct.cs:291
int progress
Definition: AIProgress.cs:5
virtual void NextFrame()
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Definition: Card.cs:5939
Thing Tool
Definition: Card.cs:2372
void CalculateFOV()
Definition: Card.cs:6263
virtual void SetBlessedState(BlessedState s)
Definition: Card.cs:3793
void Dye(string idMat)
Definition: Card.cs:5795
void SetEncLv(int a)
Definition: Card.cs:3762
Card MakeFoodFrom(string _id)
Definition: Card.cs:5353
void ModExp(string alias, int a)
Definition: Card.cs:2610
void PlayAnime(AnimeID id, bool force=false)
Definition: Card.cs:5958
virtual void ChangeRarity(Rarity q)
Definition: Card.cs:3818
CardRenderer renderer
Definition: Card.cs:59
void Say(string lang, string ref1=null, string ref2=null)
Definition: Card.cs:6586
string GetObjName()
Definition: Cell.cs:1604
override bool IsPC
Definition: Chara.cs:610
Stats stamina
Definition: Chara.cs:1128
override void LookAt(Card c)
Definition: Chara.cs:3474
BackerContentConfig backer
Definition: CoreConfig.cs:608
CoreConfig config
Definition: Core.cs:70
static Game game
Definition: EClass.cs:8
static Core core
Definition: EClass.cs:6
static int rnd(long a)
Definition: EClass.cs:58
static SourceManager sources
Definition: EClass.cs:42
static Player player
Definition: EClass.cs:12
void ModExp(int ele, float a, bool chain=false)
bool disableUsermapBenefit
GamePrincipal principal
Definition: Game.cs:221
bool CanHarvest()
Definition: GrowSystem.cs:501
virtual AnimeID AnimeProgress
Definition: GrowSystem.cs:99
virtual void OnHitFail(Chara c)
Definition: GrowSystem.cs:519
void OnProgressComplete(Chara c)
Definition: GrowSystem.cs:523
virtual string GetSoundProgress()
Definition: GrowSystem.cs:125
void Harvest(Chara c)
Definition: GrowSystem.cs:618
void DestroyObj(Point point)
Definition: Map.cs:1825
void MineObj(Point point, Task task=null, Chara c=null)
Definition: Map.cs:1840
SourceBacker.Row GetBackerObj(Point p)
Definition: Map.cs:1592
RecipeManager recipes
Definition: Player.cs:1053
void ModKarma(int a)
Definition: Player.cs:2444
HashSet< int > doneBackers
Definition: Player.cs:1029
void SetObj(int id=0, int value=1, int dir=0)
Definition: Point.cs:912
bool IsFarmField
Definition: Point.cs:127
SoundSource PlaySound(string id, bool synced=true, float v=1f, bool spatial=true)
Definition: Point.cs:1237
SourceObj.Row sourceObj
Definition: Point.cs:69
bool TryWitnessCrime(Chara criminal, Chara target=null, int radius=4, Func< Chara, bool > funcWitness=null)
Definition: Point.cs:861
void Animate(AnimeID id, bool animeBlock=false)
Definition: Point.cs:1286
GrowSystem growth
Definition: Point.cs:77
void ComeUpWithRecipe(string idRecipe, int chanceForRandomRecipe=0)
Dictionary< string, CardRow > map
Definition: SourceCard.cs:8
SourceCard cards
string GetSoundImpact(RenderRow c=null)
void AddBlood(Point p, int a=1)
void PlayHitEffect(Point p, int emit=2)
virtual void Mod(int a)
Definition: Stats.cs:135
bool wasReapSeed
Definition: TaskHarvest.cs:5
override bool IsHostileAct
Definition: TaskHarvest.cs:56
void HarvestThing()
Definition: TaskHarvest.cs:565
bool wasCrime
Definition: TaskHarvest.cs:7
static TaskHarvest TryGetAct(Chara c, Point p)
Definition: TaskHarvest.cs:136
override string IdRecipe
Definition: TaskHarvest.cs:34
static Thing CreateFromCategory(string idCat, int lv=-1)
Definition: ThingGen.cs:75
string alias
Definition: TileRow.cs:12
Card AddThing(string id, int x, int z)
Definition: Zone.cs:1933
bool IsCrime(Chara c, Act act)
Definition: Zone.cs:3420
Card AddCard(Card t, Point point)
Definition: Zone.cs:1943

References EClass._map, EClass._zone, SourceMaterial.Row.AddBlood(), Zone.AddCard(), Zone.AddThing(), TileRow.alias, Point.Animate(), GrowSystem.AnimeProgress, CoreConfig.backer, Card.CalculateFOV(), AIAct.Cancel(), GrowSystem.CanHarvest(), SourceManager.cards, Point.cell, Card.ChangeMaterial(), Card.ChangeRarity(), RecipeManager.ComeUpWithRecipe(), Core.config, EClass.core, ThingGen.Create(), ThingGen.CreateFromCategory(), Debug, Map.DestroyObj(), BaseTaskHarvest.difficulty, GamePrincipal.disableUsermapBenefit, Player.doneBackers, Card.Dye(), BaseTaskHarvest.effectFrame, Card.elements, EClass.game, Map.GetBackerObj(), Cell.GetObjName(), SourceMaterial.Row.GetSoundImpact(), GrowSystem.GetSoundProgress(), Point.growth, GrowSystem.Harvest(), harvestingCrop, HarvestThing(), SourceBacker.Row.id, BaseTaskHarvest.idEle, IdRecipe, Zone.IsCrime(), Point.IsFarmField, IsHostileAct, Card.isNPCProperty, IsObj, Chara.IsPC, IsReapSeed, Zone.IsUserZone, Chara.LookAt(), SourceBacker.Row.loot, Card.MakeFoodFrom(), SourceCard.map, Card.material, BaseTaskHarvest.maxProgress, Map.MineObj(), Stats.Mod(), mode, ElementContainer.ModExp(), Card.ModExp(), Player.ModKarma(), Card.Name, SourceBacker.Row.Name, CardRenderer.NextFrame(), Card.Num, GrowSystem.OnHitFail(), GrowSystem.OnProgressComplete(), AIAct.owner, EClass.pc, Card.PlayAnime(), EClass.player, SourceMaterial.Row.PlayHitEffect(), Point.PlaySound(), Card.PlaySound(), Card.pos, TaskPoint.pos, Game.principal, AIProgress.progress, Player.recipes, Card.renderer, EClass.rnd(), Msg.Say(), Card.Say(), Card.SetBlessedState(), Card.SetEncLv(), Card.SetNum(), Point.SetObj(), BaseTaskHarvest.SetTarget(), CoreConfig.BackerContentConfig.Show(), Point.sourceObj, EClass.sources, Chara.stamina, BaseTaskHarvest.target, SourceBacker.Row.Text, Card.Tool, TryGetAct(), Point.TryWitnessCrime(), wasCrime, and wasReapSeed.

◆ ShouldGenerateDismantled()

bool TaskHarvest.ShouldGenerateDismantled ( string  dest)
inline

Definition at line 530 of file TaskHarvest.cs.

531 {
533 {
534 return false;
535 }
536 if (target.trait is TraitGrave)
537 {
538 return false;
539 }
541 {
542 return false;
543 }
544 if (dest.Contains("$") || dest.Contains("#") || dest.Contains("@") || dest.Contains("-"))
545 {
546 return false;
547 }
548 if (dest == target.id || !EClass.sources.cards.map.ContainsKey(dest))
549 {
550 return false;
551 }
552 if (target.source.components.IsEmpty())
553 {
554 return false;
555 }
556 return true;
557 }

References SourceManager.cards, Card.id, SourceCard.map, Thing.source, EClass.sources, BaseTaskHarvest.target, and Card.trait.

Referenced by HarvestThing(), and HaveHarvestThing().

◆ TryGetAct()

static TaskHarvest TaskHarvest.TryGetAct ( Chara  c,
Point  p 
)
inlinestatic

Definition at line 136 of file TaskHarvest.cs.

137 {
138 Thing t = c.Tool;
139 bool hasTool = t != null && (t.HasElement(225) || t.HasElement(220));
140 bool hasDiggingTool = t != null && t.HasElement(230);
141 if (t != null)
142 {
143 if (t.trait is TraitToolBrush)
144 {
145 return null;
146 }
147 if (t.trait is TraitToolShears)
148 {
149 return null;
150 }
151 if (t.trait is TraitToolWaterCan)
152 {
153 return null;
154 }
155 if (t.trait is TraitToolMusic)
156 {
157 return null;
158 }
159 if (t.trait is TraitToolSickle && !p.cell.CanReapSeed())
160 {
161 return null;
162 }
163 if (t.trait is TraitAbility)
164 {
165 return null;
166 }
167 }
169 {
170 return null;
171 }
172 if (p.HasObj && IsValidTarget(p.sourceObj.reqHarvest))
173 {
174 return new TaskHarvest
175 {
176 pos = p.Copy()
177 };
178 }
179 if (p.HasThing)
180 {
181 for (int num = p.Things.Count - 1; num >= 0; num--)
182 {
183 t = p.Things[num];
184 if (t.trait.ReqHarvest != null && IsValidTarget(t.trait.ReqHarvest.Split(',')))
185 {
186 return new TaskHarvest
187 {
188 pos = p.Copy(),
189 mode = HarvestType.Thing,
190 target = t
191 };
192 }
193 }
194 for (int num2 = p.Things.Count - 1; num2 >= 0; num2--)
195 {
196 t = p.Things[num2];
198 {
199 return new TaskHarvest
200 {
201 pos = p.Copy(),
202 mode = HarvestType.Disassemble,
203 target = t
204 };
205 }
206 }
207 }
208 return null;
209 bool IsValidTarget(string[] raw)
210 {
211 if (raw[0] == "digging")
212 {
213 return hasDiggingTool;
214 }
215 bool num3 = p.cell.CanHarvest();
216 int num4 = (num3 ? 250 : EClass.sources.elements.alias[raw[0]].id);
217 bool flag = ((!num3 && num4 != 250) ? true : false);
218 if (!flag && t != null && !t.trait.CanHarvest)
219 {
220 return false;
221 }
222 return !flag || hasTool;
223 }
224 }
bool isMasked
Definition: Card.cs:576
bool isHidden
Definition: Card.cs:516
bool CanHarvest()
Definition: Cell.cs:1664
HotItem currentHotItem
Definition: Player.cs:1056
Point Copy()
Definition: Point.cs:479
List< Thing > Things
Definition: Point.cs:326
bool HasThing
Definition: Point.cs:239
SourceElement elements
virtual bool CanHarvest
Definition: Trait.cs:91
virtual bool CanBeDisassembled
Definition: Trait.cs:305
virtual string ReqHarvest
Definition: Trait.cs:302

References Trait.CanBeDisassembled, Cell.CanHarvest(), Trait.CanHarvest, Cell.CanReapSeed(), Point.cell, Point.Copy(), Player.currentHotItem, SourceManager.elements, Card.HasElement(), Point.HasObj, Point.HasThing, Card.isHidden, Card.isMasked, Chara.IsPC, mode, EClass.player, TaskPoint.pos, Trait.ReqHarvest, Point.sourceObj, EClass.sources, BaseTaskHarvest.target, Point.Things, Card.Tool, and Card.trait.

Referenced by OnCreateProgress(), and HotItemHeld.TrySetToolAct().

Member Data Documentation

◆ harvestingCrop

bool TaskHarvest.harvestingCrop

Definition at line 9 of file TaskHarvest.cs.

Referenced by GetHitResult(), and OnCreateProgress().

◆ mode

HarvestType TaskHarvest.mode = HarvestType.Obj

Definition at line 11 of file TaskHarvest.cs.

Referenced by GetBaseText(), OnCreateProgress(), and TryGetAct().

◆ wasCrime

bool TaskHarvest.wasCrime

Definition at line 7 of file TaskHarvest.cs.

Referenced by OnCreateProgress().

◆ wasReapSeed

bool TaskHarvest.wasReapSeed

Definition at line 5 of file TaskHarvest.cs.

Referenced by OnCreateProgress().

Property Documentation

◆ destDist

override int TaskHarvest.destDist
get

Definition at line 51 of file TaskHarvest.cs.

◆ harvestType

override HarvestType TaskHarvest.harvestType
get

Definition at line 31 of file TaskHarvest.cs.

◆ IdRecipe

override string TaskHarvest.IdRecipe
get

Definition at line 33 of file TaskHarvest.cs.

34 {
35 get
36 {
37 if (!IsObj)
38 {
39 if (target == null)
40 {
41 return "";
42 }
43 return target.source.RecipeID;
44 }
45 return pos.sourceObj.RecipeID;
46 }
47 }

Referenced by OnCreateProgress().

◆ IsGrowth

override bool TaskHarvest.IsGrowth
get

Definition at line 53 of file TaskHarvest.cs.

◆ IsHostileAct

override bool TaskHarvest.IsHostileAct
get

Definition at line 55 of file TaskHarvest.cs.

56 {
57 get
58 {
59 if (!wasCrime)
60 {
61 if (mode == HarvestType.Disassemble)
62 {
63 Thing thing = target;
64 if (thing != null && thing.isNPCProperty)
65 {
66 goto IL_007b;
67 }
68 }
69 if (mode == HarvestType.Obj)
70 {
71 if (!pos.sourceObj.ContainsTag("crime"))
72 {
73 if (pos.growth != null && pos.growth.IsCrimeToHarvest)
74 {
75 return !(EClass._zone is Zone_Harvest);
76 }
77 return false;
78 }
79 return true;
80 }
81 return false;
82 }
83 goto IL_007b;
84 IL_007b:
85 return true;
86 }
87 }
virtual bool IsCrimeToHarvest
Definition: GrowSystem.cs:89

Referenced by OnCreateProgress().

◆ IsObj

bool TaskHarvest.IsObj
get

Definition at line 13 of file TaskHarvest.cs.

Referenced by CanProgress(), GetHitResult(), GetTextSmall(), and OnCreateProgress().

◆ IsReapSeed

bool TaskHarvest.IsReapSeed
get

Definition at line 15 of file TaskHarvest.cs.

16 {
17 get
18 {
19 if (IsObj && CanReapSeed && owner.Tool != null)
20 {
22 {
23 return owner.Tool.category.IsChildOf("scythe");
24 }
25 return true;
26 }
27 return false;
28 }
29 }
virtual bool CanReapSeed
SourceCategory.Row category
Definition: Card.cs:2011

Referenced by GetBaseText(), and OnCreateProgress().

◆ Loop

override bool TaskHarvest.Loop
get

Definition at line 89 of file TaskHarvest.cs.

90 {
91 get
92 {
94 {
95 return CanProgress();
96 }
97 return false;
98 }
99 }
bool IsSurvival
Definition: Game.cs:272
override bool CanProgress()
Definition: TaskHarvest.cs:226

◆ RightHand

override int TaskHarvest.RightHand
get

Definition at line 49 of file TaskHarvest.cs.


The documentation for this class was generated from the following file: