2using System.Collections.Generic;
3using System.Reflection;
10 public class Row : BaseRow
193 return base.GetName();
210 image.color =
Color.white;
216 return GetText(
"altname").Split(
',').TryGet(i);
260 if (!(text ==
"all"))
262 if (text ==
"weapon")
264 return cat.IsChildOf(
"weapon");
275 public override string[]
ImportFields =>
new string[8] {
"altname",
"textPhase",
"textExtra",
"textInc",
"textDec",
"textAlt",
"adjective",
"levelBonus" };
347 foreach (
Row row
in rows)
349 if (row.
id >= 100 && row.
id < 400)
353 row.isAttribute = row.category ==
"attribute";
354 row.isPrimaryAttribute = row.isAttribute && row.
tag.Contains(
"primary");
355 row.isSkill = row.category ==
"skill";
356 row.isSpell = row.categorySub ==
"spell";
357 row.isTrait = row.
tag.Contains(
"trait");
364 foreach (
Row row
in rows)
371 for (
int i = 910; i < 927; i++)
374 AddRow(ele, num + num2 + 100,
"ball_");
375 AddRow(ele, num + num2 + 200,
"breathe_");
376 AddRow(ele, num + num2 + 300,
"bolt_");
377 AddRow(ele, num + num2 + 400,
"hand_");
378 AddRow(ele, num + num2 + 500,
"arrow_");
379 AddRow(ele, num + num2 + 600,
"funnel_");
380 AddRow(ele, num + num2 + 700,
"miasma_");
381 AddRow(ele, num + num2 + 800,
"weapon_");
382 AddRow(ele, num + num2 + 900,
"puddle_");
390 System.Reflection.FieldInfo[] fields = row.GetType().GetFields();
392 System.Reflection.FieldInfo[] array = fields;
393 foreach (System.Reflection.FieldInfo fieldInfo in array)
395 row2.SetField(fieldInfo.Name, row.GetField<
object>(fieldInfo.Name));
398 row2.idMold = row.
id;
399 row2.alias = row.alias + ele.
alias.Remove(0, 3);
400 row2.aliasRef = ele.
alias;
402 row2.chance = row.chance * ele.chance / 100;
bool IsEquipmentOrRangedOrAmmo
static Core SetCurrent(Core _current=null)
static SourceManager sources
static GameSetting setting
UD_String_ElementRef elements
static float GetFloat(int id)
static string[] GetStringArray(int id)
static string GetString(int id)
static int GetInt(int id)
static int[] GetIntArray(int id)
bool IsEncAppliable(SourceCategory.Row cat)
override string GetName()
void SetImage(Image image)
bool IsMaterialEncAppliable(Thing t)
override void OnAfterImportData()
void AddRow(Row ele, int id, string idOrg)
override void SetRow(Row r)
override string[] ImportFields
static Sprite Get(string id)