15 if ((result = this._model) ==
null)
17 result = (this._model = (this.isChara ?
CharaGen.Create(this.
id, -1) :
ThingGen.Create(
this.id, -1, -1)));
25 public override string idRenderData
29 return this._idRenderData.IsEmpty((this.isChara ?
"Chara/" :
"Thing/") + this.
id);
35 public override string idSprite
45 public override string idString
55 public override string pathSprite
59 return this.pathRenderData + (this.isChara ?
"Chara/" :
"Thing/");
66 if (this.origin !=
null && !this.pref.UsePref)
68 return this.origin.pref;
74 public override void OnImportData(SourceData data)
76 base.OnImportData(data);
77 if (this.size ==
null || this.size.Length == 0)
79 this.W = (this.H = 1);
80 this.multisize =
false;
83 this.W = this.size[0];
84 this.H = this.size[1];
85 this.multisize =
true;
89 public virtual string GetName(
int i)
91 return this.GetName() +
" x " + i.ToString();
97 return "_of2".lang(mat.GetName(),
this.GetName(),
null,
null,
null) +
" (" + sum.ToString() +
")";
101 public override string GetEditorListName()
103 return this.GetField(
"id") +
"-" + this.GetField(
"name_JP");
107 public override string GetName()
109 return this.GetName(
null,
false);
113 public string GetName(
Card c,
bool full =
false)
115 string text = base.GetName();
117 if (c !=
null && c.isChara)
119 source = c.Chara.MainElement.source;
121 if (source !=
Element.Void.source)
123 text = text.Replace(
"#ele4", source.GetAltname(2)).Replace(
"#ele3", source.GetAltname(1)).Replace(
"#ele2", source.GetAltname(0)).Replace(
"#ele", source.GetName().ToLower());
127 text = text.Replace(
"#ele4",
"").Replace(
"#ele3",
"").Replace(
"#ele2",
"").Replace(
"#ele",
"");
129 string text2 = base.GetText(
"aka",
false);
134 if (full && !text2.IsEmpty())
136 text = text2.ToTitleCase(
true) + Lang.space + text.Bracket(2);
145 public string idExtra;
148 public string tierGroup;
151 public string lightData;
154 public string _origin;
163 public int[] elements;
175 public string[] loot;
178 public string[] filter;
181 public string[] trait;
184 public string[] idActor;
187 public string[] vals;
190 public string[] name2;
193 public string[] name2_JP;
196 public Dictionary<int, int> elementMap;
200 public Sprite sprite;
208 public bool isOrigin;