public CmdRollDropLootTable(LootTable dropLootTable, Player player, Vector3 worldPos, GameLogic.CharacterType killedCharacterType, [Optional, DefaultParameterValue(null)] string predefinedDropRollId)
 {
     this.m_dropLootTable        = dropLootTable;
     this.m_player               = player;
     this.m_worldPos             = worldPos;
     this.m_killedCharacterType  = killedCharacterType;
     this.m_predefinedDropRollId = predefinedDropRollId;
 }
Example #2
0
 public LootTable(LootTable another)
 {
     this.Items = new List <LootTableItem>();
     this.Type  = another.Type;
     for (int i = 0; i < another.Items.Count; i++)
     {
         this.Items.Add(new LootTableItem(another.Items[i]));
     }
     this.initializeOriginalWeights();
 }
Example #3
0
 public LootTableItem(LootTableItem another)
 {
     this.Id     = string.Empty;
     this.Id     = another.Id;
     this.Weight = another.Weight;
     if (another.SubTable != null)
     {
         this.SubTable = new LootTable(another.SubTable);
     }
 }
 public void onDropLootTableRolled(LootTable lootTable, Vector3 worldPos, Reward drop)
 {
     if (drop.ChestType != ChestType.NONE)
     {
         string item = drop.ChestType.ToString();
         for (int i = 0; i < this.m_heroStats.Count; i++)
         {
             if (!this.m_heroStats[i].EncounteredChestTypes.Contains(item))
             {
                 this.m_heroStats[i].EncounteredChestTypes.Add(item);
             }
         }
     }
 }
Example #5
0
 public CmdRollPetBundleLootTable(LootTable lootTable, Player player)
 {
     this.m_lootTable = lootTable;
     this.m_player    = player;
 }
 public CmdRollDungeonBoostResourceBoxLootTable(LootTable lootTable, Player player)
 {
     this.m_lootTable = lootTable;
     this.m_player    = player;
 }