1using System.Collections.Generic;
9 public const byte oak = 1;
13 public const byte mud = 4;
15 public const byte sand = 8;
17 public const byte soil = 45;
19 public const byte snow = 48;
25 public const byte ice = 61;
27 public const byte gold = 12;
51 group = ((
EClass.
rnd(2) == 0) ?
"metal" :
"leather");
53 if (!(group ==
"metal"))
55 if (group ==
"leather" &&
EClass.
rnd(15) == 0)
68 num = Mathf.Clamp(lv / 15, 0, tierList.
tiers.Length - 1);
73 int min = ((lv >= 60) ? 2 : ((lv >= 25) ? 1 : 0));
78 if (obj.
list.Count == 0)
80 Debug.Log(lv +
"/" + group +
"/" + num +
"/");
92 int min = ((lv >= 60) ? 2 : ((lv >= 25) ? 1 : 0));
98 return list.RandomItemWeighted((
SourceMaterial.
Row a) => a.chance * ((a.tier != idTier) ? 1 : 5));
static SourceManager sources
static SourceMaterial.Row GetRandomMaterial(int lv, string group=null, bool tryLevelMatTier=false)
static SourceMaterial.Row sourceOak
static SourceMaterial.Row GetRandomMaterialFromCategory(int lv, string cat, SourceMaterial.Row fallback)
static SourceMaterial.Row GetRandomMaterialFromCategory(int lv, string[] cat, SourceMaterial.Row fallback)
static SourceMaterial.Row sourceSnow
static SourceMaterial.Row sourceIce
static SourceMaterial.Row sourceGold
static SourceMaterial.Row sourceWaterSea
static Dictionary< string, TierList > tierMap