Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
SourceElement.Row Class Reference
Inheritance diagram for SourceElement.Row:

Public Member Functions

override string GetName ()
 
Sprite GetSprite ()
 
void SetImage (Image image)
 
string GetAltname (int i)
 
bool IsMaterialEncAppliable (Thing t)
 
bool IsEncAppliable (SourceCategory.Row cat)
 

Public Attributes

int id
 
string alias
 
string name_JP
 
string name
 
string altname_JP
 
string altname
 
string aliasParent
 
string aliasRef
 
string aliasMtp
 
float parentFactor
 
int lvFactor
 
int encFactor
 
string encSlot
 
int mtp
 
int LV
 
int chance
 
int value
 
int[] cost
 
int geneSlot
 
int sort
 
string target
 
string[] proc
 
string type
 
string group
 
string category
 
string categorySub
 
string[] abilityType
 
string[] tag
 
string thing
 
int eleP
 
int cooldown
 
int charge
 
float radius
 
int max
 
string[] req
 
string idTrainer
 
int partySkill
 
string tagTrainer
 
string levelBonus_JP
 
string levelBonus
 
string[] foodEffect
 
string[] langAct
 
string detail_JP
 
string detail
 
string textPhase_JP
 
string textPhase
 
string textExtra_JP
 
string textExtra
 
string textInc_JP
 
string textInc
 
string textDec_JP
 
string textDec
 
string[] textAlt_JP
 
string[] textAlt
 
string[] adjective_JP
 
string[] adjective
 
bool isAttribute
 
bool isPrimaryAttribute
 
bool isSkill
 
bool isSpell
 
bool isTrait
 
int idMold
 
string name_L
 
string altname_L
 
string detail_L
 
string textPhase_L
 
string textExtra_L
 
string textInc_L
 
string textDec_L
 
string levelBonus_L
 
string[] textAlt_L
 
string[] adjective_L
 

Properties

override bool UseAlias [get]
 
override string GetAlias [get]
 
bool IsWeaponEnc [get]
 

Detailed Description

Definition at line 10 of file SourceElement.cs.

Member Function Documentation

◆ GetAltname()

string SourceElement.Row.GetAltname ( int  i)
inline

Definition at line 214 of file SourceElement.cs.

215 {
216 return GetText("altname").Split(',').TryGet(i);
217 }

Referenced by CardRow.GetName().

◆ GetName()

override string SourceElement.Row.GetName ( )
inline

Definition at line 187 of file SourceElement.cs.

188 {
189 if (idMold != 0)
190 {
191 return EClass.sources.elements.map[idMold].alias.lang(EClass.sources.elements.alias[aliasRef].GetAltname(0));
192 }
193 return base.GetName();
194 }
Definition: EClass.cs:5
static SourceManager sources
Definition: EClass.cs:42
SourceElement elements

References SourceElement.Row.aliasRef, SourceManager.elements, SourceElement.Row.idMold, and EClass.sources.

Referenced by Feat.Apply(), Element.CheckLevelBonus(), CardRow.GetName(), Thing.MatchEncSearch(), TraitBookSkill.OnRead(), TraitBookSkill.SetName(), and BaseListPeople.WriteHobbies().

◆ GetSprite()

Sprite SourceElement.Row.GetSprite ( )
inline

Definition at line 196 of file SourceElement.cs.

197 {
198 return SpriteSheet.Get("Media/Graphics/Icon/Element/icon_ability", alias) ?? SpriteSheet.Get("Media/Graphics/Icon/Element/icon_ability", type) ?? EClass.core.refs.icons.defaultAbility;
199 }
Sprite defaultAbility
Definition: CoreRef.cs:114
Icons icons
Definition: CoreRef.cs:339
CoreRef refs
Definition: Core.cs:51
static Core core
Definition: EClass.cs:6
static Sprite Get(string id)
Definition: SpriteSheet.cs:28

References SourceElement.Row.alias, EClass.core, CoreRef.Icons.defaultAbility, SpriteSheet.Get(), CoreRef.icons, Core.refs, and SourceElement.Row.type.

Referenced by ButtonGrid.SetCard(), and SourceElement.Row.SetImage().

◆ IsEncAppliable()

bool SourceElement.Row.IsEncAppliable ( SourceCategory::Row  cat)
inline

Definition at line 244 of file SourceElement.cs.

245 {
246 if (encSlot.IsEmpty())
247 {
248 return false;
249 }
250 if (encSlot == "global")
251 {
252 return true;
253 }
254 int slot = cat.slot;
255 if (slot == 0)
256 {
257 return IsWeaponEnc;
258 }
259 string text = encSlot;
260 if (!(text == "all"))
261 {
262 if (text == "weapon")
263 {
264 return cat.IsChildOf("weapon");
265 }
266 return encSlot.Contains(EClass.sources.elements.map[slot].alias);
267 }
268 return true;
269 }
bool IsChildOf(string id)

References SourceManager.elements, SourceElement.Row.encSlot, SourceElement.Row.IsWeaponEnc, and EClass.sources.

◆ IsMaterialEncAppliable()

bool SourceElement.Row.IsMaterialEncAppliable ( Thing  t)
inline

Definition at line 219 of file SourceElement.cs.

220 {
221 if (id == 10)
222 {
223 return true;
224 }
225 if (isTrait)
226 {
228 {
229 return false;
230 }
231 return true;
232 }
234 {
235 return false;
236 }
237 if (!t.IsEquipment)
238 {
239 return IsWeaponEnc;
240 }
241 return true;
242 }
bool IsThrownWeapon
Definition: Card.cs:2105
bool IsEquipmentOrRangedOrAmmo
Definition: Card.cs:2090
bool IsEquipment
Definition: Card.cs:2049

References Card.IsEquipment, Card.IsEquipmentOrRangedOrAmmo, Card.IsThrownWeapon, SourceElement.Row.isTrait, and SourceElement.Row.IsWeaponEnc.

◆ SetImage()

void SourceElement.Row.SetImage ( Image  image)
inline

Definition at line 201 of file SourceElement.cs.

202 {
203 image.sprite = GetSprite() ?? EClass.core.refs.icons.defaultAbility;
204 if (!aliasRef.IsEmpty())
205 {
206 image.color = EClass.setting.elements[aliasRef].colorSprite;
207 }
208 else
209 {
210 image.color = Color.white;
211 }
212 }
static GameSetting setting
Definition: EClass.cs:34
UD_String_ElementRef elements
Definition: GameSetting.cs:315

References SourceElement.Row.aliasRef, Color, EClass.core, CoreRef.Icons.defaultAbility, GameSetting.elements, SourceElement.Row.GetSprite(), CoreRef.icons, Core.refs, and EClass.setting.

Referenced by ButtonGrid.SetCard().

Member Data Documentation

◆ abilityType

string [] SourceElement.Row.abilityType

Definition at line 64 of file SourceElement.cs.

Referenced by GoalCombat.TryUseAbility().

◆ adjective

string [] SourceElement.Row.adjective

Definition at line 122 of file SourceElement.cs.

◆ adjective_JP

string [] SourceElement.Row.adjective_JP

Definition at line 120 of file SourceElement.cs.

◆ adjective_L

string [] SourceElement.Row.adjective_L

Definition at line 169 of file SourceElement.cs.

◆ alias

string SourceElement.Row.alias

◆ aliasMtp

string SourceElement.Row.aliasMtp

Definition at line 28 of file SourceElement.cs.

◆ aliasParent

string SourceElement.Row.aliasParent

Definition at line 24 of file SourceElement.cs.

Referenced by SourceElement.AddRow(), and Chara.MutateRandom().

◆ aliasRef

string SourceElement.Row.aliasRef

◆ altname

string SourceElement.Row.altname

Definition at line 22 of file SourceElement.cs.

◆ altname_JP

string SourceElement.Row.altname_JP

Definition at line 20 of file SourceElement.cs.

◆ altname_L

string SourceElement.Row.altname_L

Definition at line 145 of file SourceElement.cs.

◆ category

string SourceElement.Row.category

◆ categorySub

string SourceElement.Row.categorySub

Definition at line 62 of file SourceElement.cs.

◆ chance

int SourceElement.Row.chance

Definition at line 42 of file SourceElement.cs.

◆ charge

int SourceElement.Row.charge

Definition at line 74 of file SourceElement.cs.

◆ cooldown

int SourceElement.Row.cooldown

Definition at line 72 of file SourceElement.cs.

Referenced by Chara.AddCooldown().

◆ cost

int [] SourceElement.Row.cost

Definition at line 46 of file SourceElement.cs.

◆ detail

string SourceElement.Row.detail

Definition at line 98 of file SourceElement.cs.

◆ detail_JP

string SourceElement.Row.detail_JP

Definition at line 96 of file SourceElement.cs.

◆ detail_L

string SourceElement.Row.detail_L

Definition at line 148 of file SourceElement.cs.

◆ eleP

int SourceElement.Row.eleP

Definition at line 70 of file SourceElement.cs.

Referenced by SpawnList.Filter().

◆ encFactor

int SourceElement.Row.encFactor

Definition at line 34 of file SourceElement.cs.

◆ encSlot

string SourceElement.Row.encSlot

Definition at line 36 of file SourceElement.cs.

Referenced by SourceElement.Row.IsEncAppliable().

◆ foodEffect

string [] SourceElement.Row.foodEffect

Definition at line 92 of file SourceElement.cs.

◆ geneSlot

int SourceElement.Row.geneSlot

Definition at line 48 of file SourceElement.cs.

◆ group

string SourceElement.Row.group

Definition at line 58 of file SourceElement.cs.

◆ id

◆ idMold

int SourceElement.Row.idMold

Definition at line 139 of file SourceElement.cs.

Referenced by SourceElement.Row.GetName().

◆ idTrainer

string SourceElement.Row.idTrainer

Definition at line 82 of file SourceElement.cs.

◆ isAttribute

bool SourceElement.Row.isAttribute

Definition at line 125 of file SourceElement.cs.

◆ isPrimaryAttribute

bool SourceElement.Row.isPrimaryAttribute

Definition at line 128 of file SourceElement.cs.

◆ isSkill

bool SourceElement.Row.isSkill

Definition at line 131 of file SourceElement.cs.

◆ isSpell

bool SourceElement.Row.isSpell

Definition at line 134 of file SourceElement.cs.

◆ isTrait

bool SourceElement.Row.isTrait

Definition at line 137 of file SourceElement.cs.

Referenced by SourceElement.Row.IsMaterialEncAppliable().

◆ langAct

string [] SourceElement.Row.langAct

Definition at line 94 of file SourceElement.cs.

◆ levelBonus

string SourceElement.Row.levelBonus

Definition at line 90 of file SourceElement.cs.

◆ levelBonus_JP

string SourceElement.Row.levelBonus_JP

Definition at line 88 of file SourceElement.cs.

◆ levelBonus_L

string SourceElement.Row.levelBonus_L

Definition at line 163 of file SourceElement.cs.

◆ LV

int SourceElement.Row.LV

Definition at line 40 of file SourceElement.cs.

Referenced by SourceElement.AddRow().

◆ lvFactor

int SourceElement.Row.lvFactor

Definition at line 32 of file SourceElement.cs.

◆ max

int SourceElement.Row.max

Definition at line 78 of file SourceElement.cs.

Referenced by Chara.MutateRandom().

◆ mtp

int SourceElement.Row.mtp

Definition at line 38 of file SourceElement.cs.

◆ name

string SourceElement.Row.name

Definition at line 18 of file SourceElement.cs.

Referenced by Thing.MatchEncSearch().

◆ name_JP

string SourceElement.Row.name_JP

Definition at line 16 of file SourceElement.cs.

◆ name_L

string SourceElement.Row.name_L

Definition at line 142 of file SourceElement.cs.

◆ parentFactor

float SourceElement.Row.parentFactor

Definition at line 30 of file SourceElement.cs.

◆ partySkill

int SourceElement.Row.partySkill

Definition at line 84 of file SourceElement.cs.

◆ proc

string [] SourceElement.Row.proc

Definition at line 54 of file SourceElement.cs.

Referenced by GoalCombat.TryUseAbility().

◆ radius

float SourceElement.Row.radius

Definition at line 76 of file SourceElement.cs.

◆ req

string [] SourceElement.Row.req

Definition at line 80 of file SourceElement.cs.

◆ sort

int SourceElement.Row.sort

Definition at line 50 of file SourceElement.cs.

◆ tag

string [] SourceElement.Row.tag

◆ tagTrainer

string SourceElement.Row.tagTrainer

Definition at line 86 of file SourceElement.cs.

◆ target

string SourceElement.Row.target

Definition at line 52 of file SourceElement.cs.

Referenced by GoalCombat.TryUseAbility().

◆ textAlt

string [] SourceElement.Row.textAlt

Definition at line 118 of file SourceElement.cs.

◆ textAlt_JP

string [] SourceElement.Row.textAlt_JP

Definition at line 116 of file SourceElement.cs.

◆ textAlt_L

string [] SourceElement.Row.textAlt_L

Definition at line 166 of file SourceElement.cs.

◆ textDec

string SourceElement.Row.textDec

Definition at line 114 of file SourceElement.cs.

◆ textDec_JP

string SourceElement.Row.textDec_JP

Definition at line 112 of file SourceElement.cs.

◆ textDec_L

string SourceElement.Row.textDec_L

Definition at line 160 of file SourceElement.cs.

◆ textExtra

string SourceElement.Row.textExtra

Definition at line 106 of file SourceElement.cs.

◆ textExtra_JP

string SourceElement.Row.textExtra_JP

Definition at line 104 of file SourceElement.cs.

◆ textExtra_L

string SourceElement.Row.textExtra_L

Definition at line 154 of file SourceElement.cs.

◆ textInc

string SourceElement.Row.textInc

Definition at line 110 of file SourceElement.cs.

◆ textInc_JP

string SourceElement.Row.textInc_JP

Definition at line 108 of file SourceElement.cs.

◆ textInc_L

string SourceElement.Row.textInc_L

Definition at line 157 of file SourceElement.cs.

◆ textPhase

string SourceElement.Row.textPhase

Definition at line 102 of file SourceElement.cs.

◆ textPhase_JP

string SourceElement.Row.textPhase_JP

Definition at line 100 of file SourceElement.cs.

◆ textPhase_L

string SourceElement.Row.textPhase_L

Definition at line 151 of file SourceElement.cs.

◆ thing

string SourceElement.Row.thing

Definition at line 68 of file SourceElement.cs.

◆ type

string SourceElement.Row.type

◆ value

int SourceElement.Row.value

Definition at line 44 of file SourceElement.cs.

Property Documentation

◆ GetAlias

override string SourceElement.Row.GetAlias
get

Definition at line 173 of file SourceElement.cs.

Referenced by SourceElement.OnAfterImportData().

◆ IsWeaponEnc

bool SourceElement.Row.IsWeaponEnc
get

Definition at line 175 of file SourceElement.cs.

176 {
177 get
178 {
179 if (!tag.Contains("weaponEnc") && !(categorySub == "eleConvert") && !(categorySub == "eleAttack"))
180 {
181 return category == "ability";
182 }
183 return true;
184 }
185 }

Referenced by Card.AddRune(), SourceElement.Row.IsEncAppliable(), and SourceElement.Row.IsMaterialEncAppliable().

◆ UseAlias

override bool SourceElement.Row.UseAlias
get

Definition at line 171 of file SourceElement.cs.


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