2using System.Collections.Generic;
3using System.Reflection;
10 public class Row : BaseRow
195 return base.GetName();
212 image.color =
Color.white;
218 return GetText(
"altname").Split(
',').TryGet(i);
266 return cat.IsChildOf(
"weapon");
268 if (!cat.IsChildOf(
"shield"))
270 return cat.IsChildOf(
"martial");
282 public override string[]
ImportFields =>
new string[8] {
"altname",
"textPhase",
"textExtra",
"textInc",
"textDec",
"textAlt",
"adjective",
"levelBonus" };
354 foreach (
Row row
in rows)
356 if (row.
id >= 100 && row.
id < 400)
360 row.isAttribute = row.category ==
"attribute";
361 row.isPrimaryAttribute = row.isAttribute && row.
tag.Contains(
"primary");
362 row.isSkill = row.category ==
"skill";
363 row.isSpell = row.categorySub ==
"spell";
364 row.isTrait = row.
tag.Contains(
"trait");
371 foreach (
Row row
in rows)
378 for (
int i = 910; i < 927; i++)
381 AddRow(ele, num + num2 + 100,
"ball_");
382 AddRow(ele, num + num2 + 200,
"breathe_");
383 AddRow(ele, num + num2 + 300,
"bolt_");
384 AddRow(ele, num + num2 + 400,
"hand_");
385 AddRow(ele, num + num2 + 500,
"arrow_");
386 AddRow(ele, num + num2 + 600,
"funnel_");
387 AddRow(ele, num + num2 + 700,
"miasma_");
388 AddRow(ele, num + num2 + 800,
"weapon_");
389 AddRow(ele, num + num2 + 900,
"puddle_");
390 AddRow(ele, num + num2 + 1000,
"sword_");
397 if (Application.isEditor || !map.ContainsKey(
id))
400 System.Reflection.FieldInfo[] fields = row.GetType().GetFields();
402 System.Reflection.FieldInfo[] array = fields;
403 foreach (System.Reflection.FieldInfo fieldInfo in array)
405 row2.SetField(fieldInfo.Name, row.GetField<
object>(fieldInfo.Name));
408 row2.idMold = row.
id;
409 row2.alias = row.alias + ele.
alias.Remove(0, 3);
410 row2.aliasRef = ele.
alias;
412 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)