From 904a03733d7bfa5996531b815a637ce0ae7e00e3 Mon Sep 17 00:00:00 2001 From: Wynd Date: Wed, 25 Jun 2025 14:44:55 +0300 Subject: [PATCH] Added drop files for KH1 --- input/kh1/drops/blaze.toml | 29 +++++++++++++++++++++++++ input/kh1/drops/bright.toml | 23 ++++++++++++++++++++ input/kh1/drops/energy.toml | 5 +++++ input/kh1/drops/frost.toml | 28 ++++++++++++++++++++++++ input/kh1/drops/mythril.toml | 23 ++++++++++++++++++++ input/kh1/drops/power.toml | 40 +++++++++++++++++++++++++++++++++++ input/kh1/drops/serenity.toml | 21 ++++++++++++++++++ input/kh1/drops/shiny.toml | 11 ++++++++++ input/kh1/drops/stormy.toml | 14 ++++++++++++ input/kh1/drops/thunder.toml | 29 +++++++++++++++++++++++++ src/main.rs | 2 +- 11 files changed, 224 insertions(+), 1 deletion(-) create mode 100644 input/kh1/drops/blaze.toml create mode 100644 input/kh1/drops/bright.toml create mode 100644 input/kh1/drops/energy.toml create mode 100644 input/kh1/drops/frost.toml create mode 100644 input/kh1/drops/mythril.toml create mode 100644 input/kh1/drops/power.toml create mode 100644 input/kh1/drops/serenity.toml create mode 100644 input/kh1/drops/shiny.toml create mode 100644 input/kh1/drops/stormy.toml create mode 100644 input/kh1/drops/thunder.toml diff --git a/input/kh1/drops/blaze.toml b/input/kh1/drops/blaze.toml new file mode 100644 index 0000000..5b35df2 --- /dev/null +++ b/input/kh1/drops/blaze.toml @@ -0,0 +1,29 @@ +kind = "blaze" +aliases = ["blazing"] + +[[shard]] +from = "Red Nocturne" +chance = 6 + +[[shard]] +from = "White Mushroom" +chance = 100 +info = "When Fire is the last spell used" + +[[gem]] +from = "Bandit" +chance = 4 + +[[gem]] +from = "Fat Bandit" +chance = 8 + +[[gem]] +from = "White Mushroom" +chance = 10 +info = "When Fire is used three times" + +[[stone]] +from = "Chimera" +chance = 35 +info = "Additional drops based on how many heads are reflected without getting hit" diff --git a/input/kh1/drops/bright.toml b/input/kh1/drops/bright.toml new file mode 100644 index 0000000..efe518e --- /dev/null +++ b/input/kh1/drops/bright.toml @@ -0,0 +1,23 @@ +kind = "bright" + +[[shard]] +from = "Green Requiem" +chance = 10 + +[[shard]] +from = "White Mushroom" +chance = 100 +info = "When Cure is the last spell used" + +[[gem]] +from = "Search Ghost" +chance = 4 + +[[gem]] +from = "White Mushroom" +chance = 10 +info = "When Cure is used three times" + +[[crystal]] +from = "Defender" +chance = 2 diff --git a/input/kh1/drops/energy.toml b/input/kh1/drops/energy.toml new file mode 100644 index 0000000..0f86dc3 --- /dev/null +++ b/input/kh1/drops/energy.toml @@ -0,0 +1,5 @@ +kind = "energy" + +[[stone]] +from = "Stealth Soldier" +chance = 35 diff --git a/input/kh1/drops/frost.toml b/input/kh1/drops/frost.toml new file mode 100644 index 0000000..e8d792e --- /dev/null +++ b/input/kh1/drops/frost.toml @@ -0,0 +1,28 @@ +kind = "frost" + +[[shard]] +from = "Blue Rhapsody" +chance = 12 + +[[shard]] +from = "White Mushroom" +chance = 100 +info = "When Blizzard is the last spell used" + +[[gem]] +from = "Sea Neon" +chance = 2 + +[[gem]] +from = "Sheltering Zone" +chance = 8 + +[[gem]] +from = "White Mushroom" +chance = 10 +info = "When Blizzard is used three times" + +[[stone]] +from = "Grand Ghost" +chance = 100 +info = "Additional drops based on what items are used to defeat it with Megalixirs having an additional 100% drop" diff --git a/input/kh1/drops/mythril.toml b/input/kh1/drops/mythril.toml new file mode 100644 index 0000000..f985ed1 --- /dev/null +++ b/input/kh1/drops/mythril.toml @@ -0,0 +1,23 @@ +kind = "mythril" + +[[shard]] +from = "Pot Spider" +chance = 1 + +[[shard]] +from = "Barrel Spider" +chance = 1 + +[[shard]] +from = "Pot Scorpion" +chance = 20 +info = "Only if all 11 pots are broken before engaging" + +[[shard]] +from = "Arch Behemoth" +chance = 20 + +[[stone]] +from = "Pot Scorpion" +chance = "10-35" +info = "20% when less than 11 pots got destroyed\n35% when all 11 pots were destroyed\nadditional 10% chance when breaking the 11th pot" diff --git a/input/kh1/drops/power.toml b/input/kh1/drops/power.toml new file mode 100644 index 0000000..3a19672 --- /dev/null +++ b/input/kh1/drops/power.toml @@ -0,0 +1,40 @@ +kind = "power" + +[[shard]] +from = "Powerwild" +chance = 4 + +[[shard]] +from = "Bouncywild" +chance = 8 + +[[shard]] +from = "White Mushroom" +chance = 100 +info = "When Stop is the last spell used" + +[[gem]] +from = "Pirate" +chance = 4 + +[[gem]] +from = "Air Pirate" +chance = 4 + +[[gem]] +from = "Battleeship" +chance = 4 + +[[gem]] +from = "White Mushroom" +chance = 10 +info = "When Stop is used three times" + +[[stone]] +from = "Sniperwild" +chance = "?" +info = "% based on how many sets of 6 are defeated" + +[[crystal]] +from = "Wyvern" +chance = 2 diff --git a/input/kh1/drops/serenity.toml b/input/kh1/drops/serenity.toml new file mode 100644 index 0000000..a33c66c --- /dev/null +++ b/input/kh1/drops/serenity.toml @@ -0,0 +1,21 @@ +kind = "serenity" +aliases = ["hungry", "mystery"] + +[[crystal]] +from = "White Mushroom" +chance = "10-20" +info = "10% when defeated and 20% when the same spell is used three times" + +[[crystal]] +from = "Black Fungus" +chance = 6 + +[[crystal]] +from = "Rare Truffle" +chance = "20-100" +info = "% depends on how many times it got juggles ranging from 10 to 100" + +[[stone]] +from = "Pink Agaricus" +chance = "10-100" +info = "% depends on how many times it got hit ranging from 40 to 100" diff --git a/input/kh1/drops/shiny.toml b/input/kh1/drops/shiny.toml new file mode 100644 index 0000000..2dff916 --- /dev/null +++ b/input/kh1/drops/shiny.toml @@ -0,0 +1,11 @@ +kind = "shiny" +aliases = ["shimmering"] + +[[crystal]] +from = "Wizard" +chance = 2 + +[[stone]] +from = "Jet Balloon" +chance = 100 +info = "Additional 20% drop chance" diff --git a/input/kh1/drops/stormy.toml b/input/kh1/drops/stormy.toml new file mode 100644 index 0000000..c769526 --- /dev/null +++ b/input/kh1/drops/stormy.toml @@ -0,0 +1,14 @@ +kind = "stormy" +aliases = ["gale"] + +[[crystal]] +from = "Angel Star" +chance = 4 + +[[crystal]] +from = "Invisible" +chance = 4 + +[[stone]] +from = "Neoshadow" +chance = 35 diff --git a/input/kh1/drops/thunder.toml b/input/kh1/drops/thunder.toml new file mode 100644 index 0000000..61d5094 --- /dev/null +++ b/input/kh1/drops/thunder.toml @@ -0,0 +1,29 @@ +kind = "thunder" +aliases = ["lightning"] + +[[shard]] +from = "Yellow Opera" +chance = 8 + +[[shard]] +from = "White Mushroom" +chance = 100 +info = "When Thunder is the last spell used" + +[[gem]] +from = "Aquatank" +chance = 8 + +[[gem]] +from = "Screwdiver" +chance = 4 + +[[gem]] +from = "White Mushroom" +chance = 10 +info = "When Thunder is used three times" + +[[stone]] +from = "Black Ballade" +chance = 100 +info = "With additional 10% drops each time the correct target is hit" diff --git a/src/main.rs b/src/main.rs index 9afecb6..391e8d0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -72,7 +72,7 @@ fn start_module() { } fn create_hashes(module: &str) -> Hash { - let mut hasher = blake3::Hasher::new(); + let mut hasher = Hasher::new(); hash_file(format!("./public/scripts/{module}.js").into(), &mut hasher); hash_files_in_dir("./public/scripts/modules/common".into(), &mut hasher); hash_files_in_dir(