Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
HomeResourceNature Class Reference
Inheritance diagram for HomeResourceNature:
HomeResourceRate BaseHomeResource EClass

Public Member Functions

override int GetDestValue ()
 
- Public Member Functions inherited from HomeResourceRate
override void Refresh ()
 
override void OnAdvanceDay ()
 
virtual int GetDestValue ()
 
- Public Member Functions inherited from BaseHomeResource
virtual T Create< T > (HomeResourceType _type, int _value)
 
virtual void Mod (int a, bool popText=true)
 
virtual void Refresh ()
 
void OnRefreshEffect ()
 
virtual void OnAdvanceHour ()
 
virtual void OnAdvanceDay ()
 
virtual void WriteNote (UINote n)
 

Additional Inherited Members

- Public Types inherited from BaseHomeResource
enum  ResourceGroup { Currency , Skill , Rate , None }
 
- Static Public Member Functions inherited from EClass
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 inherited from BaseHomeResource
HomeResourceType type
 
int value
 
int lastValue
 
FactionBranch branch
 
- Static Public Attributes inherited from EClass
static Core core
 
- Properties inherited from HomeResourceRate
override bool IsAvailable [get]
 
override ResourceGroup Group [get]
 
- Properties inherited from BaseHomeResource
SourceHomeResource.Row source [get]
 
virtual int Min [get]
 
virtual int Max [get]
 
bool IsCurrency [get]
 
bool IsRate [get]
 
bool IsSkill [get]
 
virtual bool IsAvailable [get]
 
virtual float ExpRatio [get]
 
virtual ResourceGroup Group [get]
 
string Name [get]
 
Sprite Sprite [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]
 

Detailed Description

Definition at line 1 of file HomeResourceNature.cs.

Member Function Documentation

◆ GetDestValue()

override int HomeResourceNature.GetDestValue ( )
inlinevirtual

Reimplemented from HomeResourceRate.

Definition at line 3 of file HomeResourceNature.cs.

4 {
5 int p = 0;
7 {
8 if (c.sourceFloor.value == 0)
9 {
10 p++;
11 }
12 if (c.sourceBlock.value == 0)
13 {
14 p += 2;
15 }
16 if (c.sourceBridge.value == 0)
17 {
18 p++;
19 }
20 });
21 return p / 10;
22 }
if(item3.idFile==idFirstFile &&item3.id==idFirstTopic)
Definition: UIBook.cs:627
Definition: Cell.cs:7
SourceBlock.Row sourceBlock
Definition: Cell.cs:1052
SourceFloor.Row sourceFloor
Definition: Cell.cs:1054
SourceFloor.Row sourceBridge
Definition: Cell.cs:1056
Definition: EClass.cs:5
static Map _map
Definition: EClass.cs:18
void ForeachCell(Action< Cell > action)
Definition: MapBounds.cs:279
MapBounds bounds
Definition: Map.cs:52

References EClass._map, Map.bounds, MapBounds.ForeachCell(), if(), Cell.sourceBlock, Cell.sourceBridge, and Cell.sourceFloor.


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