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");
283 public Dictionary<string, string>
fuzzyAlias =
new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
285 public override string[]
ImportFields =>
new string[8] {
"altname",
"textPhase",
"textExtra",
"textInc",
"textDec",
"textAlt",
"adjective",
"levelBonus" };
358 foreach (
Row row
in rows)
360 if (row.
id >= 100 && row.
id < 400)
364 row.isAttribute = row.category ==
"attribute";
365 row.isPrimaryAttribute = row.isAttribute && row.
tag.Contains(
"primary");
366 row.isSkill = row.category ==
"skill";
367 row.isSpell = row.categorySub ==
"spell";
368 row.isTrait = row.
tag.Contains(
"trait");
371 foreach (
string key
in alias.Keys)
382 foreach (
Row row
in rows)
389 for (
int i = 910; i < 927; i++)
392 AddRow(ele, num + num2 + 100,
"ball_");
393 AddRow(ele, num + num2 + 200,
"breathe_");
394 AddRow(ele, num + num2 + 300,
"bolt_");
395 AddRow(ele, num + num2 + 400,
"hand_");
396 AddRow(ele, num + num2 + 500,
"arrow_");
397 AddRow(ele, num + num2 + 600,
"funnel_");
398 AddRow(ele, num + num2 + 700,
"miasma_");
399 AddRow(ele, num + num2 + 800,
"weapon_");
400 AddRow(ele, num + num2 + 900,
"puddle_");
401 AddRow(ele, num + num2 + 1000,
"sword_");
402 AddRow(ele, num + num2 + 1100,
"bit_");
403 AddRow(ele, num + num2 + 1200,
"flare_");
411 if (map.ContainsKey(
id))
416 Dictionary<string, System.Reflection.FieldInfo> rowFields = row.GetRowFields();
418 foreach (System.Reflection.FieldInfo value in rowFields.Values)
420 value.SetValue(row2, value.GetValue(row));
423 row2.idMold = row.
id;
424 row2.alias = row.alias + ele.
alias.Remove(0, 3);
425 row2.aliasRef = ele.
alias;
427 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)
Dictionary< string, string > fuzzyAlias
override string[] ImportFields
static Sprite Get(string id)