move inline Lottery to standalone pyrotechnics tatable, include coral chests, scale drop chances across tiers

This commit is contained in:
horblegorble 2024-04-04 19:37:40 +10:00
parent addba2cfda
commit f0e6031eee
7 changed files with 28 additions and 54 deletions

View File

@ -0,0 +1,9 @@
[
(0.4, Item("common.items.utility.bomb")),
(0.1, MultiDrop(Item("common.items.utility.firework_yellow"), 1, 3)),
(0.1, MultiDrop(Item("common.items.utility.firework_red"), 1, 3)),
(0.1, MultiDrop(Item("common.items.utility.firework_green"), 1, 3)),
(0.1, MultiDrop(Item("common.items.utility.firework_blue"), 1, 3)),
(0.1, MultiDrop(Item("common.items.utility.firework_purple"), 1, 3)),
(0.1, MultiDrop(Item("common.items.utility.firework_white"), 1, 3)),
]

View File

@ -14,15 +14,7 @@
]),
Lottery([
(0.6, Nothing),
(0.1, MultiDrop(Item("common.items.utility.bomb"), 2, 3)),
(0.3, Lottery([
(1.0, MultiDrop(Item("common.items.utility.firework_yellow"), 3, 5)),
(1.0, MultiDrop(Item("common.items.utility.firework_red"), 3, 5)),
(1.0, MultiDrop(Item("common.items.utility.firework_green"), 3, 5)),
(1.0, MultiDrop(Item("common.items.utility.firework_blue"), 3, 5)),
(1.0, MultiDrop(Item("common.items.utility.firework_purple"), 3, 5)),
(1.0, MultiDrop(Item("common.items.utility.firework_white"), 3, 5)),
]))
(0.4, LootTable("common.loot_tables.consumables.pyrotechnics")),
])
])),
]

View File

@ -13,16 +13,8 @@
(1.0, MultiDrop(LootTable("common.loot_tables.food.prepared"), 2, 4)),
]),
Lottery([
(0.6, Nothing),
(0.1, MultiDrop(Item("common.items.utility.bomb"), 1, 2)),
(0.3, Lottery([
(1.0, MultiDrop(Item("common.items.utility.firework_yellow"), 2, 4)),
(1.0, MultiDrop(Item("common.items.utility.firework_red"), 2, 4)),
(1.0, MultiDrop(Item("common.items.utility.firework_green"), 2, 4)),
(1.0, MultiDrop(Item("common.items.utility.firework_blue"), 2, 4)),
(1.0, MultiDrop(Item("common.items.utility.firework_purple"), 2, 4)),
(1.0, MultiDrop(Item("common.items.utility.firework_white"), 2, 4)),
]))
(0.7, Nothing),
(0.3, LootTable("common.loot_tables.consumables.pyrotechnics")),
])
])),
]

View File

@ -15,15 +15,7 @@
]),
Lottery([
(0.6, Nothing),
(0.1, MultiDrop(Item("common.items.utility.bomb"), 2, 3)),
(0.3, Lottery([
(1.0, MultiDrop(Item("common.items.utility.firework_yellow"), 3, 5)),
(1.0, MultiDrop(Item("common.items.utility.firework_red"), 3, 5)),
(1.0, MultiDrop(Item("common.items.utility.firework_green"), 3, 5)),
(1.0, MultiDrop(Item("common.items.utility.firework_blue"), 3, 5)),
(1.0, MultiDrop(Item("common.items.utility.firework_purple"), 3, 5)),
(1.0, MultiDrop(Item("common.items.utility.firework_white"), 3, 5)),
]))
(0.4, LootTable("common.loot_tables.consumables.pyrotechnics")),
])
])),
]

View File

@ -13,16 +13,8 @@
(1.0, MultiDrop(LootTable("common.loot_tables.food.prepared"), 1, 4)),
]),
Lottery([
(0.6, Nothing),
(0.1, Item("common.items.utility.bomb")),
(0.3, Lottery([
(1.0, MultiDrop(Item("common.items.utility.firework_yellow"), 1, 3)),
(1.0, MultiDrop(Item("common.items.utility.firework_red"), 1, 3)),
(1.0, MultiDrop(Item("common.items.utility.firework_green"), 1, 3)),
(1.0, MultiDrop(Item("common.items.utility.firework_blue"), 1, 3)),
(1.0, MultiDrop(Item("common.items.utility.firework_purple"), 1, 3)),
(1.0, MultiDrop(Item("common.items.utility.firework_white"), 1, 3)),
]))
(0.8, Nothing),
(0.2, LootTable("common.loot_tables.consumables.pyrotechnics")),
])
])),
]

View File

@ -1,5 +1,13 @@
[
// Ingredients
(2.0, Item("common.items.crafting_ing.coral_branch")),
(0.5, Item("common.items.crafting_ing.pearl")),
]
(1.0, All([
Lottery([
// Ingredients
(2.0, Item("common.items.crafting_ing.coral_branch")),
(0.5, Item("common.items.crafting_ing.pearl")),
]),
Lottery([
(0.6, Nothing),
(0.4, LootTable("common.loot_tables.consumables.pyrotechnics")),
])
])),
]

View File

@ -2,17 +2,6 @@
(1.0, All([
// Key
Item("common.items.keys.terracotta_key_door"),
Lottery([
(0.3, Nothing),
(0.4, MultiDrop(Item("common.items.utility.bomb"), 3, 5)),
(0.3, Lottery([
(1.0, MultiDrop(Item("common.items.utility.firework_red"), 4, 6)),
(1.0, MultiDrop(Item("common.items.utility.firework_green"), 4, 6)),
(1.0, MultiDrop(Item("common.items.utility.firework_blue"), 4, 6)),
(1.0, MultiDrop(Item("common.items.utility.firework_purple"), 4, 6)),
(1.0, MultiDrop(Item("common.items.utility.firework_yellow"), 4, 6)),
(1.0, MultiDrop(Item("common.items.utility.firework_white"), 4, 6)),
])),
])
MultiDrop(LootTable("common.loot_tables.consumables.pyrotechnics"), 2, 2),
])),
]