5public class SourceRace : SourceDataString<SourceRace.Row>
12 id = SourceData.GetString(0),
13 name_JP = SourceData.GetString(1),
14 name = SourceData.GetString(2),
15 playable = SourceData.GetInt(3),
16 tag = SourceData.GetStringArray(4),
17 life = SourceData.GetInt(5),
18 mana = SourceData.GetInt(6),
19 vigor = SourceData.GetInt(7),
20 DV = SourceData.GetInt(8),
21 PV = SourceData.GetInt(9),
22 PDR = SourceData.GetInt(10),
23 EDR = SourceData.GetInt(11),
24 EP = SourceData.GetInt(12),
25 STR = SourceData.GetInt(13),
26 END = SourceData.GetInt(14),
27 DEX = SourceData.GetInt(15),
28 PER = SourceData.GetInt(16),
29 LER = SourceData.GetInt(17),
30 WIL = SourceData.GetInt(18),
31 MAG = SourceData.GetInt(19),
32 CHA = SourceData.GetInt(20),
33 SPD = SourceData.GetInt(21),
34 INT = SourceData.GetInt(23),
35 martial = SourceData.GetInt(24),
36 pen = SourceData.GetInt(25),
37 elements = Core.ParseElements(SourceData.GetStr(26,
false)),
38 skill = SourceData.GetString(27),
39 figure = SourceData.GetString(28),
40 material = SourceData.GetString(29),
41 corpse = SourceData.GetStringArray(30),
42 loot = SourceData.GetStringArray(31),
43 blood = SourceData.GetInt(32),
44 meleeStyle = SourceData.GetString(33),
45 castStyle = SourceData.GetString(34),
46 EQ = SourceData.GetStringArray(35),
47 sex = SourceData.GetInt(36),
48 age = SourceData.GetIntArray(37),
49 height = SourceData.GetInt(38),
50 breeder = SourceData.GetInt(39),
51 food = SourceData.GetStringArray(40),
52 fur = SourceData.GetString(41),
53 detail_JP = SourceData.GetString(42),
54 detail = SourceData.GetString(43)
65 public override void OnInit()
69 Dictionary<int, int> dictionary =
new Dictionary<int, int>();
70 dictionary[70] = row.STR;
71 dictionary[71] = row.END;
72 dictionary[72] = row.DEX;
73 dictionary[73] = row.PER;
74 dictionary[74] = row.LER;
75 dictionary[75] = row.WIL;
76 dictionary[76] = row.MAG;
77 dictionary[77] = row.CHA;
78 dictionary[79] = row.SPD;
79 dictionary[80] = row.INT;
80 dictionary[100] = row.martial;
81 dictionary[60] = row.life;
82 dictionary[61] = row.mana;
83 dictionary[62] = row.vigor;
84 dictionary[65] = row.PV;
85 dictionary[64] = row.DV;
86 dictionary[55] = row.PDR;
87 dictionary[56] = row.EDR;
88 dictionary[57] = row.EP;
110 row.elementMap =
Element.GetElementMap(row.elements, dictionary);
111 row.visibleWithTelepathy = (!row.IsUndead && !row.IsMachine && !row.IsHorror);
117 public class Row : SourceData.BaseRow
121 public override bool UseAlias
131 public override string GetAlias
145 return this.tag.Contains(
"animal");
155 return this.tag.Contains(
"human");
165 return this.tag.Contains(
"undead");
171 public bool IsMachine
175 return this.tag.Contains(
"machine");
185 return this.tag.Contains(
"horror");
195 return this.tag.Contains(
"fish");
205 return this.tag.Contains(
"fairy");
215 return this.tag.Contains(
"god");
225 return this.tag.Contains(
"dragon");
235 return this.tag.Contains(
"plant");
243 public string name_JP;
315 public int[] elements;
321 public string figure;
324 public string material;
327 public string[] corpse;
330 public string[] loot;
336 public string meleeStyle;
339 public string castStyle;
357 public string[] food;
363 public string detail_JP;
366 public string detail;
369 public bool visibleWithTelepathy;
372 public Dictionary<int, int> elementMap;
375 public string name_L;
378 public string detail_L;
117 public class Row : SourceData.BaseRow {
…};