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)); }
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)); } }