예제 #1
0
 public Treasure(DataRow data, Treasure parent = null)
 {
     Parent = parent;
     Name = data["treasureClass"].ToString();
     NoDrop = 100 - (float) data["noDrop"];
     PickType = (PickTypes) data["pickType"];
     SpawnCondition = (Bitmask01) data["spawnCondition"];
     Difficulty = (int) data["gameModeRestriction1"];
     for (var i = 0; i < 8; i++)
         Drops.Add(GetDropClass(data, i + 1));
 }
예제 #2
0
 public Treasure(DataRow data, Treasure parent = null)
 {
     Parent         = parent;
     Name           = data["treasureClass"].ToString();
     NoDrop         = 100 - (float)data["noDrop"];
     PickType       = (PickTypes)data["pickType"];
     SpawnCondition = (Bitmask01)data["spawnCondition"];
     Difficulty     = (int)data["gameModeRestriction1"];
     for (var i = 0; i < 8; i++)
     {
         Drops.Add(GetDropClass(data, i + 1));
     }
 }