6 public static Thing _Create(
string id,
int idMat = -1,
int lv = -1)
12 Debug.LogError(
"exception: Item not found:" +
id);
24 thing.
Create(
id, idMat, lv);
45 foreach (
Thing c
in things)
49 thing.c_idRefName = idLang.lang();
53 public static Thing Create(
string id,
int idMat = -1,
int lv = -1)
91 EClass.player.stats.taxBills += thing.
c_bill;
96 EClass.player.unpaidBill += thing.
c_bill;
111 Thing thing =
Create(platform ?
"platform" :
"floor", idMat);
126 if (idSource.IsEmpty())
187 thing.
SetStr(53, idLetter);
193 Thing thing =
Create(
"cardboard_box",
new string[5] {
"pine",
"wood_birch",
"wood_acacia",
"oak",
"cedar" }.RandomItem());
198 thing.c_idRefName =
"sender_header".lang(
"sender_post".lang(spatial.
Name));
212 int miracleChance = lv;
216 int guaranteedMythical = ((type ==
TreasureType.BossQuest) ? 1 : 0);
235 t.
Add(
"rp_random", 1, lv);
246 t.
Add(
"book_skill", 1, lv);
253 if (miracleChance > 50)
263 t.
Add(
"money2", 1 +
EClass.
rnd(Mathf.Min(2 + num / 25, 5)));
267 t.
Add(
"plat", 1 +
EClass.
rnd(Mathf.Min(2 + num / 25, 5)));
294 t.
Add(
"rp_random", 1, lv);
310 t.
Add(
"book_ancient", 1, lv);
314 miracleChance += 20 + (int)Mathf.Sqrt(t.
c_lockLv * 5);
327 static void ChangeSeed()
332 void SetRarity(
int mtp)
336 if (guaranteedMythical > 0)
338 guaranteedMythical--;
356 chara.
Say(
"lick", chara, chest);
357 chest.PlaySound(
"offering");
358 chest.PlayEffect(
"mutation");
void SetStr(int id, string value=null)
static void Set(CardBlueprint _bp)
bool HasElement(int ele, int req=1)
Card ChangeMaterial(int idNew, bool ignoreFixedMaterial=false)
void AddEditorTag(EditorTag tag)
Thing Add(string id, int num=1, int lv=1)
void Create(string _id, int _idMat=-1, int genLv=-1)
void Say(string lang, string ref1=null, string ref2=null)
static int curve(int a, int start, int step, int rate=75)
static SourceManager sources
static int rndHalf(int a)
static void SetSeed(int a=-1)
SourceZone.Row GetRandomSiteSource()
Dictionary< string, CardRow > map
SourceCategory categories
static SpawnList Get(string id, Func< SourceThing.Row, bool > func)
static SpawnList Get(string id, string parent=null, CardFilter filter=null)
CardRow Select(int lv=-1, int levelRange=-1)
void DestroyAll(Func< Thing, bool > funcExclude=null)
static Thing _Create(string id, int idMat=-1, int lv=-1)
static Thing CreateRawMaterial(SourceMaterial.Row m)
static void TryLickChest(Thing chest)
static Thing CreateTreasure(string id, int lv, TreasureType type=TreasureType.Map)
static Thing CreatePotion(int ele, int num=1)
static Thing CreateFromFilter(string id, int lv=-1)
static Thing CreateMap(string idSource=null, int lv=-1)
static Thing CreatePerfume(int ele, int num=1)
static Thing CreateBlock(int id, int idMat)
static Thing Create(string id, string idMat)
static Thing CreateObj(int id, int idMat)
static Thing TestCreate()
static Thing CreateParcel(string idLang=null, params Thing[] things)
static void CreateTreasureContent(Thing t, int lv, TreasureType type, bool clearContent)
static Thing CreateSpellbook(string alias, int num=1)
static Thing CreatePlan(int ele)
static Thing CreateFromTag(string idTag, int lv=-1)
static Thing CreateFloor(int id, int idMat, bool platform=false)
static Thing CreateRecipe(string id)
static Thing CreateSpellbook(int ele, int num=1)
static Thing CreateFromCategory(string idCat, int lv=-1)
static Thing CreateLetter(string idLetter)
static Thing CreateScroll(int ele, int num=1)
static Thing CreateBill(int pay, bool tax)
static Thing CreateCardboardBox(int uidZone=-1)
static Thing CreateCurrency(int a, string id="money")
static Thing Create(string id, int idMat=-1, int lv=-1)
void TryLickEnchant(Chara c, bool msg=true, Chara tg=null, BodySlot slot=null)