From 65208cddba0fc0fbca1c47ef3b742e515b604fe9 Mon Sep 17 00:00:00 2001 From: jake Date: Fri, 18 Sep 2020 07:55:48 -0600 Subject: [PATCH] weapon shop --- data/shops/alt_grind.toml | 30 ++ data/shops/attribute1.toml | 99 +++++ data/shops/attribute2.toml | 99 +++++ data/shops/grind.toml | 30 ++ data/shops/hard/bluefull/weapon.toml | 107 ++++++ data/shops/hard/greenill/weapon.toml | 111 ++++++ data/shops/hard/oran/weapon.toml | 103 ++++++ data/shops/hard/pinkal/weapon.toml | 103 ++++++ data/shops/hard/purplenum/weapon.toml | 111 ++++++ data/shops/hard/redria/weapon.toml | 107 ++++++ data/shops/hard/skyly/weapon.toml | 103 ++++++ data/shops/hard/viridia/weapon.toml | 103 ++++++ data/shops/hard/whitill/weapon.toml | 107 ++++++ data/shops/hard/yellowboze/weapon.toml | 111 ++++++ data/shops/normal/bluefull/weapon.toml | 115 ++++++ data/shops/normal/greenill/weapon.toml | 111 ++++++ data/shops/normal/oran/weapon.toml | 115 ++++++ data/shops/normal/pinkal/weapon.toml | 107 ++++++ data/shops/normal/purplenum/weapon.toml | 115 ++++++ data/shops/normal/redria/weapon.toml | 107 ++++++ data/shops/normal/skyly/weapon.toml | 99 +++++ data/shops/normal/viridia/weapon.toml | 103 ++++++ data/shops/normal/whitill/weapon.toml | 103 ++++++ data/shops/normal/yellowboze/weapon.toml | 111 ++++++ data/shops/special.toml | 120 ++++++ data/shops/ultimate/bluefull/weapon.toml | 149 ++++++++ data/shops/ultimate/greenill/weapon.toml | 157 ++++++++ data/shops/ultimate/oran/weapon.toml | 145 ++++++++ data/shops/ultimate/pinkal/weapon.toml | 129 +++++++ data/shops/ultimate/purplenum/weapon.toml | 157 ++++++++ data/shops/ultimate/redria/weapon.toml | 153 ++++++++ data/shops/ultimate/skyly/weapon.toml | 125 +++++++ data/shops/ultimate/viridia/weapon.toml | 141 +++++++ data/shops/ultimate/whitill/weapon.toml | 157 ++++++++ data/shops/ultimate/yellowboze/weapon.toml | 129 +++++++ data/shops/veryhard/bluefull/weapon.toml | 111 ++++++ data/shops/veryhard/greenill/weapon.toml | 111 ++++++ data/shops/veryhard/oran/weapon.toml | 107 ++++++ data/shops/veryhard/pinkal/weapon.toml | 99 +++++ data/shops/veryhard/purplenum/weapon.toml | 111 ++++++ data/shops/veryhard/redria/weapon.toml | 107 ++++++ data/shops/veryhard/skyly/weapon.toml | 95 +++++ data/shops/veryhard/viridia/weapon.toml | 103 ++++++ data/shops/veryhard/whitill/weapon.toml | 111 ++++++ data/shops/veryhard/yellowboze/weapon.toml | 99 +++++ src/ship/mod.rs | 1 + src/ship/shops/mod.rs | 1 + src/ship/shops/weapon.rs | 405 +++++++++++++++++++++ 48 files changed, 5433 insertions(+) create mode 100644 data/shops/alt_grind.toml create mode 100644 data/shops/attribute1.toml create mode 100644 data/shops/attribute2.toml create mode 100644 data/shops/grind.toml create mode 100644 data/shops/hard/bluefull/weapon.toml create mode 100644 data/shops/hard/greenill/weapon.toml create mode 100644 data/shops/hard/oran/weapon.toml create mode 100644 data/shops/hard/pinkal/weapon.toml create mode 100644 data/shops/hard/purplenum/weapon.toml create mode 100644 data/shops/hard/redria/weapon.toml create mode 100644 data/shops/hard/skyly/weapon.toml create mode 100644 data/shops/hard/viridia/weapon.toml create mode 100644 data/shops/hard/whitill/weapon.toml create mode 100644 data/shops/hard/yellowboze/weapon.toml create mode 100644 data/shops/normal/bluefull/weapon.toml create mode 100644 data/shops/normal/greenill/weapon.toml create mode 100644 data/shops/normal/oran/weapon.toml create mode 100644 data/shops/normal/pinkal/weapon.toml create mode 100644 data/shops/normal/purplenum/weapon.toml create mode 100644 data/shops/normal/redria/weapon.toml create mode 100644 data/shops/normal/skyly/weapon.toml create mode 100644 data/shops/normal/viridia/weapon.toml create mode 100644 data/shops/normal/whitill/weapon.toml create mode 100644 data/shops/normal/yellowboze/weapon.toml create mode 100644 data/shops/special.toml create mode 100644 data/shops/ultimate/bluefull/weapon.toml create mode 100644 data/shops/ultimate/greenill/weapon.toml create mode 100644 data/shops/ultimate/oran/weapon.toml create mode 100644 data/shops/ultimate/pinkal/weapon.toml create mode 100644 data/shops/ultimate/purplenum/weapon.toml create mode 100644 data/shops/ultimate/redria/weapon.toml create mode 100644 data/shops/ultimate/skyly/weapon.toml create mode 100644 data/shops/ultimate/viridia/weapon.toml create mode 100644 data/shops/ultimate/whitill/weapon.toml create mode 100644 data/shops/ultimate/yellowboze/weapon.toml create mode 100644 data/shops/veryhard/bluefull/weapon.toml create mode 100644 data/shops/veryhard/greenill/weapon.toml create mode 100644 data/shops/veryhard/oran/weapon.toml create mode 100644 data/shops/veryhard/pinkal/weapon.toml create mode 100644 data/shops/veryhard/purplenum/weapon.toml create mode 100644 data/shops/veryhard/redria/weapon.toml create mode 100644 data/shops/veryhard/skyly/weapon.toml create mode 100644 data/shops/veryhard/viridia/weapon.toml create mode 100644 data/shops/veryhard/whitill/weapon.toml create mode 100644 data/shops/veryhard/yellowboze/weapon.toml create mode 100644 src/ship/shops/mod.rs create mode 100644 src/ship/shops/weapon.rs diff --git a/data/shops/alt_grind.toml b/data/shops/alt_grind.toml new file mode 100644 index 0000000..f787222 --- /dev/null +++ b/data/shops/alt_grind.toml @@ -0,0 +1,30 @@ +[[grind]] +level = 0 +min = 0 +max = 1 + +[[grind]] +level = 3 +min = 0 +max = 3 + +[[grind]] +level = 10 +min = 1 +max = 5 + +[[grind]] +level = 25 +min = 2 +max = 8 + +[[grind]] +level = 40 +min = 3 +max = 11 + +[[grind]] +level = 55 +min = 3 +max = 16 + diff --git a/data/shops/attribute1.toml b/data/shops/attribute1.toml new file mode 100644 index 0000000..9f567bd --- /dev/null +++ b/data/shops/attribute1.toml @@ -0,0 +1,99 @@ +[[attributes]] +level = 0 +percent_min = 5 +percent_max = 25 +none = 60 +native = 20 +abeast = 20 +machine = 0 +dark = 0 +hit = 0 + +[[attributes]] +level = 3 +percent_min = 5 +percent_max = 25 +none = 50 +native = 15 +abeast = 20 +machine = 15 +dark = 0 +hit = 0 + +[[attributes]] +level = 10 +percent_min = 5 +percent_max = 30 +none = 30 +native = 10 +abeast = 15 +machine = 25 +dark = 20 +hit = 0 + +[[attributes]] +level = 17 +percent_min = 5 +percent_max = 30 +none = 10 +native = 25 +abeast = 15 +machine = 20 +dark = 30 +hit = 0 + +[[attributes]] +level = 25 +percent_min = 5 +percent_max = 35 +none = 10 +native = 25 +abeast = 25 +machine = 20 +dark = 20 +hit = 0 + +[[attributes]] +level = 35 +percent_min = 5 +percent_max = 35 +none = 10 +native = 20 +abeast = 20 +machine = 30 +dark = 20 +hit = 0 + +[[attributes]] +level = 45 +percent_min = 5 +percent_max = 35 +none = 10 +native = 25 +abeast = 20 +machine = 20 +dark = 25 +hit = 0 + +[[attributes]] +level = 60 +percent_min = 5 +percent_max = 40 +none = 10 +native = 20 +abeast = 20 +machine = 20 +dark = 25 +hit = 5 + +[[attributes]] +level = 75 +percent_min = 5 +percent_max = 50 +none = 10 +native = 20 +abeast = 20 +machine = 20 +dark = 20 +hit = 10 + diff --git a/data/shops/attribute2.toml b/data/shops/attribute2.toml new file mode 100644 index 0000000..b9022ea --- /dev/null +++ b/data/shops/attribute2.toml @@ -0,0 +1,99 @@ +[[attributes]] +level = 0 +percent_min = 5 +percent_max = 20 +none = 100 +native = 0 +abeast = 0 +machine = 0 +dark = 0 +hit = 0 + +[[attributes]] +level = 5 +percent_min = 5 +percent_max = 25 +none = 100 +native = 0 +abeast = 0 +machine = 0 +dark = 0 +hit = 0 + +[[attributes]] +level = 10 +percent_min = 5 +percent_max = 25 +none = 65 +native = 5 +abeast = 10 +machine = 10 +dark = 10 +hit = 0 + +[[attributes]] +level = 17 +percent_min = 5 +percent_max = 25 +none = 45 +native = 10 +abeast = 10 +machine = 15 +dark = 20 +hit = 0 + +[[attributes]] +level = 25 +percent_min = 5 +percent_max = 30 +none = 30 +native = 25 +abeast = 20 +machine = 10 +dark = 10 +hit = 5 + +[[attributes]] +level = 35 +percent_min = 5 +percent_max = 30 +none = 15 +native = 15 +abeast = 20 +machine = 25 +dark = 20 +hit = 5 + +[[attributes]] +level = 45 +percent_min = 5 +percent_max = 35 +none = 15 +native = 15 +abeast = 20 +machine = 25 +dark = 15 +hit = 10 + +[[attributes]] +level = 60 +percent_min = 5 +percent_max = 35 +none = 10 +native = 15 +abeast = 20 +machine = 20 +dark = 20 +hit = 15 + +[[attributes]] +level = 75 +percent_min = 5 +percent_max = 50 +none = 10 +native = 20 +abeast = 15 +machine = 15 +dark = 20 +hit = 20 + diff --git a/data/shops/grind.toml b/data/shops/grind.toml new file mode 100644 index 0000000..158d122 --- /dev/null +++ b/data/shops/grind.toml @@ -0,0 +1,30 @@ +[[grind]] +level = 0 +min = 0 +max = 2 + +[[grind]] +level = 3 +min = 0 +max = 3 + +[[grind]] +level = 10 +min = 0 +max = 4 + +[[grind]] +level = 25 +min = 0 +max = 6 + +[[grind]] +level = 40 +min = 0 +max = 8 + +[[grind]] +level = 55 +min = 0 +max = 10 + diff --git a/data/shops/hard/bluefull/weapon.toml b/data/shops/hard/bluefull/weapon.toml new file mode 100644 index 0000000..8d8a846 --- /dev/null +++ b/data/shops/hard/bluefull/weapon.toml @@ -0,0 +1,107 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 20 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Mechgun" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 7 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Lockgun" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Assault" +probability = 3 + +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 6 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Halbert" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Lockgun" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Spread" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Repeater" +probability = 3 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Blade" +probability = 9 + +[[weapon_tier.weapons]] +weapon = "Spinner" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Halbert" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Lockgun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Spread" +probability = 7 + + diff --git a/data/shops/hard/greenill/weapon.toml b/data/shops/hard/greenill/weapon.toml new file mode 100644 index 0000000..042386c --- /dev/null +++ b/data/shops/hard/greenill/weapon.toml @@ -0,0 +1,111 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 20 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Mechgun" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 7 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 16 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 7 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 6 + +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Assault" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 5 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Lockgun" +probability = 9 + +[[weapon_tier.weapons]] +weapon = "Spread" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Repeater" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Blaster" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Mace" +probability = 11 + + diff --git a/data/shops/hard/oran/weapon.toml b/data/shops/hard/oran/weapon.toml new file mode 100644 index 0000000..97d2abb --- /dev/null +++ b/data/shops/hard/oran/weapon.toml @@ -0,0 +1,103 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 25 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Sword" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 16 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Sword" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 7 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Pallasch" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Blade" +probability = 5 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Mace" +probability = 11 + +[[weapon_tier.weapons]] +weapon = "Staff" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Pole" +probability = 11 + +[[weapon_tier.weapons]] +weapon = "Pallasch" +probability = 10 + + diff --git a/data/shops/hard/pinkal/weapon.toml b/data/shops/hard/pinkal/weapon.toml new file mode 100644 index 0000000..3e5af60 --- /dev/null +++ b/data/shops/hard/pinkal/weapon.toml @@ -0,0 +1,103 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 30 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Sword" +probability = 16 + +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 16 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 5 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 6 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 4 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Pallasch" +probability = 9 + +[[weapon_tier.weapons]] +weapon = "Breaker" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Blade" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Spinner" +probability = 7 + + diff --git a/data/shops/hard/purplenum/weapon.toml b/data/shops/hard/purplenum/weapon.toml new file mode 100644 index 0000000..32e03b7 --- /dev/null +++ b/data/shops/hard/purplenum/weapon.toml @@ -0,0 +1,111 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 25 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 16 + +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 10 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Mechgun" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 7 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Blaster" +probability = 3 + +[[weapon_tier.weapons]] +weapon = "Mace" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Staff" +probability = 3 + +[[weapon_tier.weapons]] +weapon = "Pole" +probability = 4 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Repeater" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Blaster" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Mace" +probability = 11 + +[[weapon_tier.weapons]] +weapon = "Staff" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Pole" +probability = 11 + + diff --git a/data/shops/hard/redria/weapon.toml b/data/shops/hard/redria/weapon.toml new file mode 100644 index 0000000..dd3ae00 --- /dev/null +++ b/data/shops/hard/redria/weapon.toml @@ -0,0 +1,107 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 25 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 7 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Blade" +probability = 6 + +[[weapon_tier.weapons]] +weapon = "Lockgun" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Assault" +probability = 3 + +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 5 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 6 + +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Assault" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 5 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Halbert" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Lockgun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Spread" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Blaster" +probability = 9 + + diff --git a/data/shops/hard/skyly/weapon.toml b/data/shops/hard/skyly/weapon.toml new file mode 100644 index 0000000..438d1c7 --- /dev/null +++ b/data/shops/hard/skyly/weapon.toml @@ -0,0 +1,103 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 20 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 16 + +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 7 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Gigush" +probability = 3 + +[[weapon_tier.weapons]] +weapon = "Blade" +probability = 3 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Pallasch" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Breaker" +probability = 3 + +[[weapon_tier.weapons]] +weapon = "Blade" +probability = 3 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Staff" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Pole" +probability = 11 + +[[weapon_tier.weapons]] +weapon = "Pallasch" +probability = 10 + + diff --git a/data/shops/hard/viridia/weapon.toml b/data/shops/hard/viridia/weapon.toml new file mode 100644 index 0000000..e16e61e --- /dev/null +++ b/data/shops/hard/viridia/weapon.toml @@ -0,0 +1,103 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 20 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Sword" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Sword" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Mechgun" +probability = 4 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 6 + +[[weapon_tier.weapons]] +weapon = "Gigush" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 5 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Pallasch" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Breaker" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Blade" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Halbert" +probability = 9 + + diff --git a/data/shops/hard/whitill/weapon.toml b/data/shops/hard/whitill/weapon.toml new file mode 100644 index 0000000..cc6b59f --- /dev/null +++ b/data/shops/hard/whitill/weapon.toml @@ -0,0 +1,107 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 20 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Sword" +probability = 3 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Gigush" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Blade" +probability = 3 + +[[weapon_tier.weapons]] +weapon = "Lockgun" +probability = 5 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Blaster" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Mace" +probability = 6 + +[[weapon_tier.weapons]] +weapon = "Staff" +probability = 3 + +[[weapon_tier.weapons]] +weapon = "Pole" +probability = 3 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Spread" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Repeater" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Blaster" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Mace" +probability = 10 + + diff --git a/data/shops/hard/yellowboze/weapon.toml b/data/shops/hard/yellowboze/weapon.toml new file mode 100644 index 0000000..4610eb8 --- /dev/null +++ b/data/shops/hard/yellowboze/weapon.toml @@ -0,0 +1,111 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 20 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Mechgun" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 12 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Spinner" +probability = 3 + +[[weapon_tier.weapons]] +weapon = "Halbert" +probability = 3 + +[[weapon_tier.weapons]] +weapon = "Lockgun" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Spread" +probability = 3 + +[[weapon_tier.weapons]] +weapon = "Repeater" +probability = 3 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Breaker" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Blade" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Spinner" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Halbert" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Lockgun" +probability = 10 + + diff --git a/data/shops/normal/bluefull/weapon.toml b/data/shops/normal/bluefull/weapon.toml new file mode 100644 index 0000000..0752835 --- /dev/null +++ b/data/shops/normal/bluefull/weapon.toml @@ -0,0 +1,115 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 20 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Mechgun" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Mechgun" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 7 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Assault" +probability = 7 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Assault" +probability = 7 + + diff --git a/data/shops/normal/greenill/weapon.toml b/data/shops/normal/greenill/weapon.toml new file mode 100644 index 0000000..c78f5e1 --- /dev/null +++ b/data/shops/normal/greenill/weapon.toml @@ -0,0 +1,111 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 20 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 16 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Mechgun" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 8 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 16 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 7 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 16 + +[[weapon_tier.weapons]] +weapon = "Assault" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 16 + +[[weapon_tier.weapons]] +weapon = "Assault" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + + diff --git a/data/shops/normal/oran/weapon.toml b/data/shops/normal/oran/weapon.toml new file mode 100644 index 0000000..252fa5e --- /dev/null +++ b/data/shops/normal/oran/weapon.toml @@ -0,0 +1,115 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 25 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Sword" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 18 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Sword" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Gigush" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 7 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Gigush" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 7 + + diff --git a/data/shops/normal/pinkal/weapon.toml b/data/shops/normal/pinkal/weapon.toml new file mode 100644 index 0000000..ac7c32f --- /dev/null +++ b/data/shops/normal/pinkal/weapon.toml @@ -0,0 +1,107 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 30 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Sword" +probability = 18 + +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Sword" +probability = 16 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 7 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Gigush" +probability = 16 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Gigush" +probability = 16 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + + diff --git a/data/shops/normal/purplenum/weapon.toml b/data/shops/normal/purplenum/weapon.toml new file mode 100644 index 0000000..383b645 --- /dev/null +++ b/data/shops/normal/purplenum/weapon.toml @@ -0,0 +1,115 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 25 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 10 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 16 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 10 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 16 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 10 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 16 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 10 + + diff --git a/data/shops/normal/redria/weapon.toml b/data/shops/normal/redria/weapon.toml new file mode 100644 index 0000000..f6b6ae9 --- /dev/null +++ b/data/shops/normal/redria/weapon.toml @@ -0,0 +1,107 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 25 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 8 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + + diff --git a/data/shops/normal/skyly/weapon.toml b/data/shops/normal/skyly/weapon.toml new file mode 100644 index 0000000..a44ee4f --- /dev/null +++ b/data/shops/normal/skyly/weapon.toml @@ -0,0 +1,99 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 20 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 18 + +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 10 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 12 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 12 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 12 + + diff --git a/data/shops/normal/viridia/weapon.toml b/data/shops/normal/viridia/weapon.toml new file mode 100644 index 0000000..02f8f89 --- /dev/null +++ b/data/shops/normal/viridia/weapon.toml @@ -0,0 +1,103 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 20 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Sword" +probability = 8 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Sword" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Mechgun" +probability = 7 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Gigush" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 12 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Gigush" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 12 + + diff --git a/data/shops/normal/whitill/weapon.toml b/data/shops/normal/whitill/weapon.toml new file mode 100644 index 0000000..7aba633 --- /dev/null +++ b/data/shops/normal/whitill/weapon.toml @@ -0,0 +1,103 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 20 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Sword" +probability = 3 + +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 3 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Sword" +probability = 3 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Gigush" +probability = 3 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Gigush" +probability = 3 + + diff --git a/data/shops/normal/yellowboze/weapon.toml b/data/shops/normal/yellowboze/weapon.toml new file mode 100644 index 0000000..c810437 --- /dev/null +++ b/data/shops/normal/yellowboze/weapon.toml @@ -0,0 +1,111 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 20 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Mechgun" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 13 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Mechgun" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 16 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 16 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Assault" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 7 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 16 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Assault" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 7 + + diff --git a/data/shops/special.toml b/data/shops/special.toml new file mode 100644 index 0000000..c49f0a4 --- /dev/null +++ b/data/shops/special.toml @@ -0,0 +1,120 @@ +[[specials]] +level = 0 +[[specials.special]] +tier = 0 +probability = 85 + +[[specials.special]] +tier = 1 +probability = 15 + +[[specials.special]] +tier = 2 +probability = 0 + + +[[specials]] +level = 10 +[[specials.special]] +tier = 0 +probability = 70 + +[[specials.special]] +tier = 1 +probability = 30 + +[[specials.special]] +tier = 2 +probability = 0 + + +[[specials]] +level = 17 +[[specials.special]] +tier = 0 +probability = 50 + +[[specials.special]] +tier = 1 +probability = 50 + +[[specials.special]] +tier = 2 +probability = 0 + + +[[specials]] +level = 25 +[[specials.special]] +tier = 0 +probability = 20 + +[[specials.special]] +tier = 1 +probability = 80 + +[[specials.special]] +tier = 2 +probability = 0 + + +[[specials]] +level = 35 +[[specials.special]] +tier = 0 +probability = 20 + +[[specials.special]] +tier = 1 +probability = 60 + +[[specials.special]] +tier = 2 +probability = 20 + + +[[specials]] +level = 45 +[[specials.special]] +tier = 0 +probability = 20 + +[[specials.special]] +tier = 1 +probability = 40 + +[[specials.special]] +tier = 2 +probability = 40 + + +[[specials]] +level = 60 +[[specials.special]] +tier = 0 +probability = 10 + +[[specials.special]] +tier = 1 +probability = 30 + +[[specials.special]] +tier = 2 +probability = 60 + + +[[specials]] +level = 75 +[[specials.special]] +tier = 0 +probability = 10 + +[[specials.special]] +tier = 1 +probability = 10 + +[[specials.special]] +tier = 2 +probability = 80 + + diff --git a/data/shops/ultimate/bluefull/weapon.toml b/data/shops/ultimate/bluefull/weapon.toml new file mode 100644 index 0000000..003648d --- /dev/null +++ b/data/shops/ultimate/bluefull/weapon.toml @@ -0,0 +1,149 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 20 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Mechgun" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 7 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Lockgun" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Assault" +probability = 3 + +[[weapon_tier.weapons]] +weapon = "Pole" +probability = 3 + +[[weapon_tier.weapons]] +weapon = "Spread" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 5 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Blade" +probability = 9 + +[[weapon_tier.weapons]] +weapon = "Spinner" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Halbert" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Lockgun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Spread" +probability = 7 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Edge" +probability = 11 + +[[weapon_tier.weapons]] +weapon = "Cutter" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Glaive" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Railgun" +probability = 10 + + +[[weapon_tier]] +level = 99 +[[weapon_tier.weapons]] +weapon = "Edge" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Sawcer" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Berdys" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Railgun" +probability = 10 + + +[[weapon_tier]] +level = 150 +[[weapon_tier.weapons]] +weapon = "Ripper" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Diska" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Gungnir" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Raygun" +probability = 10 + + diff --git a/data/shops/ultimate/greenill/weapon.toml b/data/shops/ultimate/greenill/weapon.toml new file mode 100644 index 0000000..12878a6 --- /dev/null +++ b/data/shops/ultimate/greenill/weapon.toml @@ -0,0 +1,157 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 20 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Mechgun" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 7 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Blaster" +probability = 7 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Lockgun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Spread" +probability = 18 + +[[weapon_tier.weapons]] +weapon = "Repeater" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Blaster" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Mace" +probability = 10 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Railgun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Cannon" +probability = 17 + +[[weapon_tier.weapons]] +weapon = "Repeater" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Blaster" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Mace" +probability = 10 + + +[[weapon_tier]] +level = 99 +[[weapon_tier.weapons]] +weapon = "Railgun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Launcher" +probability = 18 + +[[weapon_tier.weapons]] +weapon = "Gatling" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Beam" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Club" +probability = 10 + + +[[weapon_tier]] +level = 150 +[[weapon_tier.weapons]] +weapon = "Raygun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Arms" +probability = 18 + +[[weapon_tier.weapons]] +weapon = "Vulcan" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Laser" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Club" +probability = 10 + + diff --git a/data/shops/ultimate/oran/weapon.toml b/data/shops/ultimate/oran/weapon.toml new file mode 100644 index 0000000..4d920ed --- /dev/null +++ b/data/shops/ultimate/oran/weapon.toml @@ -0,0 +1,145 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 25 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Sword" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 16 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Assault" +probability = 3 + +[[weapon_tier.weapons]] +weapon = "Pole" +probability = 3 + +[[weapon_tier.weapons]] +weapon = "Spread" +probability = 3 + +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Sword" +probability = 8 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Mace" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Staff" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Pole" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 9 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Blaster" +probability = 11 + +[[weapon_tier.weapons]] +weapon = "Mace" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Staff" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Pole" +probability = 7 + + +[[weapon_tier]] +level = 99 +[[weapon_tier.weapons]] +weapon = "Beam" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Club" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Baton" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Pillar" +probability = 7 + + +[[weapon_tier]] +level = 150 +[[weapon_tier.weapons]] +weapon = "Laser" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Club" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Scepter" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Striker" +probability = 7 + + diff --git a/data/shops/ultimate/pinkal/weapon.toml b/data/shops/ultimate/pinkal/weapon.toml new file mode 100644 index 0000000..03aaa6b --- /dev/null +++ b/data/shops/ultimate/pinkal/weapon.toml @@ -0,0 +1,129 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 30 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Sword" +probability = 16 + +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Blaster" +probability = 16 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 9 + +[[weapon_tier.weapons]] +weapon = "Breaker" +probability = 18 + +[[weapon_tier.weapons]] +weapon = "Blade" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Spinner" +probability = 7 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Pole" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Pallasch" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Breaker" +probability = 17 + + +[[weapon_tier]] +level = 99 +[[weapon_tier.weapons]] +weapon = "Pillar" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Gladius" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Claymore" +probability = 18 + + +[[weapon_tier]] +level = 150 +[[weapon_tier.weapons]] +weapon = "Striker" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Gladius" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Calibur" +probability = 18 + + diff --git a/data/shops/ultimate/purplenum/weapon.toml b/data/shops/ultimate/purplenum/weapon.toml new file mode 100644 index 0000000..b422652 --- /dev/null +++ b/data/shops/ultimate/purplenum/weapon.toml @@ -0,0 +1,157 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 25 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 16 + +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 10 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 6 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Mechgun" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 4 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Repeater" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Blaster" +probability = 18 + +[[weapon_tier.weapons]] +weapon = "Mace" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Staff" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Pole" +probability = 8 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Cannon" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Repeater" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Blaster" +probability = 17 + +[[weapon_tier.weapons]] +weapon = "Mace" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Staff" +probability = 7 + + +[[weapon_tier]] +level = 99 +[[weapon_tier.weapons]] +weapon = "Launcher" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Gatling" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Beam" +probability = 18 + +[[weapon_tier.weapons]] +weapon = "Club" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Baton" +probability = 7 + + +[[weapon_tier]] +level = 150 +[[weapon_tier.weapons]] +weapon = "Arms" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Vulcan" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Laser" +probability = 18 + +[[weapon_tier.weapons]] +weapon = "Club" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Scepter" +probability = 7 + + diff --git a/data/shops/ultimate/redria/weapon.toml b/data/shops/ultimate/redria/weapon.toml new file mode 100644 index 0000000..b949558 --- /dev/null +++ b/data/shops/ultimate/redria/weapon.toml @@ -0,0 +1,153 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 25 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 7 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Blade" +probability = 6 + +[[weapon_tier.weapons]] +weapon = "Lockgun" +probability = 5 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Halbert" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Lockgun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Spread" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Blaster" +probability = 9 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Edge" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Cutter" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Glaive" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Railgun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Cannon" +probability = 7 + + +[[weapon_tier]] +level = 99 +[[weapon_tier.weapons]] +weapon = "Edge" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Sawcer" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Berdys" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Railgun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Launcher" +probability = 7 + + +[[weapon_tier]] +level = 150 +[[weapon_tier.weapons]] +weapon = "Ripper" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Diska" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Gungnir" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Raygun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Arms" +probability = 7 + + diff --git a/data/shops/ultimate/skyly/weapon.toml b/data/shops/ultimate/skyly/weapon.toml new file mode 100644 index 0000000..b5a7370 --- /dev/null +++ b/data/shops/ultimate/skyly/weapon.toml @@ -0,0 +1,125 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 20 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 16 + +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 7 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Gigush" +probability = 3 + +[[weapon_tier.weapons]] +weapon = "Blade" +probability = 3 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Staff" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Pole" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 9 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Staff" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Pole" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Pallasch" +probability = 10 + + +[[weapon_tier]] +level = 99 +[[weapon_tier.weapons]] +weapon = "Baton" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Pillar" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Gladius" +probability = 10 + + +[[weapon_tier]] +level = 150 +[[weapon_tier.weapons]] +weapon = "Scepter" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Striker" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Gladius" +probability = 10 + + diff --git a/data/shops/ultimate/viridia/weapon.toml b/data/shops/ultimate/viridia/weapon.toml new file mode 100644 index 0000000..676d3be --- /dev/null +++ b/data/shops/ultimate/viridia/weapon.toml @@ -0,0 +1,141 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 20 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Sword" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Sword" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Mechgun" +probability = 4 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 9 + +[[weapon_tier.weapons]] +weapon = "Breaker" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Blade" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Halbert" +probability = 9 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Pallasch" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Breaker" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Edge" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Glaive" +probability = 11 + + +[[weapon_tier]] +level = 99 +[[weapon_tier.weapons]] +weapon = "Gladius" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Claymore" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Edge" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Berdys" +probability = 10 + + +[[weapon_tier]] +level = 150 +[[weapon_tier.weapons]] +weapon = "Gladius" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Calibur" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Ripper" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Gungnir" +probability = 10 + + diff --git a/data/shops/ultimate/whitill/weapon.toml b/data/shops/ultimate/whitill/weapon.toml new file mode 100644 index 0000000..49281fb --- /dev/null +++ b/data/shops/ultimate/whitill/weapon.toml @@ -0,0 +1,157 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 20 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Sword" +probability = 3 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Blaster" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Spread" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Repeater" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Blaster" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Mace" +probability = 10 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Cutter" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Glaive" +probability = 17 + +[[weapon_tier.weapons]] +weapon = "Railgun" +probability = 11 + +[[weapon_tier.weapons]] +weapon = "Cannon" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Repeater" +probability = 7 + + +[[weapon_tier]] +level = 99 +[[weapon_tier.weapons]] +weapon = "Sawcer" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Berdys" +probability = 18 + +[[weapon_tier.weapons]] +weapon = "Railgun" +probability = 11 + +[[weapon_tier.weapons]] +weapon = "Launcher" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Gatling" +probability = 7 + + +[[weapon_tier]] +level = 150 +[[weapon_tier.weapons]] +weapon = "Diska" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Gungnir" +probability = 18 + +[[weapon_tier.weapons]] +weapon = "Raygun" +probability = 11 + +[[weapon_tier.weapons]] +weapon = "Arms" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Vulcan" +probability = 7 + + diff --git a/data/shops/ultimate/yellowboze/weapon.toml b/data/shops/ultimate/yellowboze/weapon.toml new file mode 100644 index 0000000..e00ce77 --- /dev/null +++ b/data/shops/ultimate/yellowboze/weapon.toml @@ -0,0 +1,129 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 20 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Mechgun" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 12 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 4 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Breaker" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Blade" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Spinner" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Halbert" +probability = 18 + +[[weapon_tier.weapons]] +weapon = "Lockgun" +probability = 10 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Pallasch" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Breaker" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Edge" +probability = 7 + + +[[weapon_tier]] +level = 99 +[[weapon_tier.weapons]] +weapon = "Gladius" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Claymore" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Edge" +probability = 7 + + +[[weapon_tier]] +level = 150 +[[weapon_tier.weapons]] +weapon = "Gladius" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Calibur" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Ripper" +probability = 7 + + diff --git a/data/shops/veryhard/bluefull/weapon.toml b/data/shops/veryhard/bluefull/weapon.toml new file mode 100644 index 0000000..c87d54a --- /dev/null +++ b/data/shops/veryhard/bluefull/weapon.toml @@ -0,0 +1,111 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 20 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Mechgun" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 7 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Lockgun" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Assault" +probability = 3 + +[[weapon_tier.weapons]] +weapon = "Pole" +probability = 3 + +[[weapon_tier.weapons]] +weapon = "Spread" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 5 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Blade" +probability = 9 + +[[weapon_tier.weapons]] +weapon = "Spinner" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Halbert" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Lockgun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Spread" +probability = 7 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Edge" +probability = 11 + +[[weapon_tier.weapons]] +weapon = "Cutter" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Glaive" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Railgun" +probability = 10 + + diff --git a/data/shops/veryhard/greenill/weapon.toml b/data/shops/veryhard/greenill/weapon.toml new file mode 100644 index 0000000..9735738 --- /dev/null +++ b/data/shops/veryhard/greenill/weapon.toml @@ -0,0 +1,111 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 20 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Mechgun" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 7 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Blaster" +probability = 7 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Lockgun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Spread" +probability = 18 + +[[weapon_tier.weapons]] +weapon = "Repeater" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Blaster" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Mace" +probability = 10 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Railgun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Cannon" +probability = 17 + +[[weapon_tier.weapons]] +weapon = "Repeater" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Blaster" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Mace" +probability = 10 + + diff --git a/data/shops/veryhard/oran/weapon.toml b/data/shops/veryhard/oran/weapon.toml new file mode 100644 index 0000000..5062747 --- /dev/null +++ b/data/shops/veryhard/oran/weapon.toml @@ -0,0 +1,107 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 25 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Sword" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 16 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Assault" +probability = 3 + +[[weapon_tier.weapons]] +weapon = "Pole" +probability = 3 + +[[weapon_tier.weapons]] +weapon = "Spread" +probability = 3 + +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Sword" +probability = 8 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Mace" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Staff" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Pole" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 9 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Blaster" +probability = 11 + +[[weapon_tier.weapons]] +weapon = "Mace" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Staff" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Pole" +probability = 7 + + diff --git a/data/shops/veryhard/pinkal/weapon.toml b/data/shops/veryhard/pinkal/weapon.toml new file mode 100644 index 0000000..3d73553 --- /dev/null +++ b/data/shops/veryhard/pinkal/weapon.toml @@ -0,0 +1,99 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 30 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Sword" +probability = 16 + +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Blaster" +probability = 16 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 9 + +[[weapon_tier.weapons]] +weapon = "Breaker" +probability = 18 + +[[weapon_tier.weapons]] +weapon = "Blade" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Spinner" +probability = 7 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Pole" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Pallasch" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Breaker" +probability = 17 + + diff --git a/data/shops/veryhard/purplenum/weapon.toml b/data/shops/veryhard/purplenum/weapon.toml new file mode 100644 index 0000000..714fd98 --- /dev/null +++ b/data/shops/veryhard/purplenum/weapon.toml @@ -0,0 +1,111 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 25 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 16 + +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 10 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 6 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Mechgun" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 4 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Repeater" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Blaster" +probability = 18 + +[[weapon_tier.weapons]] +weapon = "Mace" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Staff" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Pole" +probability = 8 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Cannon" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Repeater" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Blaster" +probability = 17 + +[[weapon_tier.weapons]] +weapon = "Mace" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Staff" +probability = 7 + + diff --git a/data/shops/veryhard/redria/weapon.toml b/data/shops/veryhard/redria/weapon.toml new file mode 100644 index 0000000..f8db04a --- /dev/null +++ b/data/shops/veryhard/redria/weapon.toml @@ -0,0 +1,107 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 25 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 7 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Blade" +probability = 6 + +[[weapon_tier.weapons]] +weapon = "Lockgun" +probability = 5 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Halbert" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Lockgun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Spread" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Blaster" +probability = 9 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Edge" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Cutter" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Glaive" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Railgun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Cannon" +probability = 7 + + diff --git a/data/shops/veryhard/skyly/weapon.toml b/data/shops/veryhard/skyly/weapon.toml new file mode 100644 index 0000000..883137c --- /dev/null +++ b/data/shops/veryhard/skyly/weapon.toml @@ -0,0 +1,95 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 20 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 16 + +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 7 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Gigush" +probability = 3 + +[[weapon_tier.weapons]] +weapon = "Blade" +probability = 3 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Staff" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Pole" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 9 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Staff" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Pole" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Pallasch" +probability = 10 + + diff --git a/data/shops/veryhard/viridia/weapon.toml b/data/shops/veryhard/viridia/weapon.toml new file mode 100644 index 0000000..5a5e586 --- /dev/null +++ b/data/shops/veryhard/viridia/weapon.toml @@ -0,0 +1,103 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 20 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Sword" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Sword" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Mechgun" +probability = 4 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Buster" +probability = 9 + +[[weapon_tier.weapons]] +weapon = "Breaker" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Blade" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Halbert" +probability = 9 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Pallasch" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Breaker" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Edge" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Glaive" +probability = 11 + + diff --git a/data/shops/veryhard/whitill/weapon.toml b/data/shops/veryhard/whitill/weapon.toml new file mode 100644 index 0000000..0dc8975 --- /dev/null +++ b/data/shops/veryhard/whitill/weapon.toml @@ -0,0 +1,111 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 25 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 15 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 20 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Sniper" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Brand" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Sword" +probability = 3 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Slicer" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Partisan" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Blaster" +probability = 12 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Wand" +probability = 7 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Spread" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Repeater" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Blaster" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Mace" +probability = 10 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Cutter" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Glaive" +probability = 17 + +[[weapon_tier.weapons]] +weapon = "Railgun" +probability = 11 + +[[weapon_tier.weapons]] +weapon = "Cannon" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Repeater" +probability = 7 + + diff --git a/data/shops/veryhard/yellowboze/weapon.toml b/data/shops/veryhard/yellowboze/weapon.toml new file mode 100644 index 0000000..7049d90 --- /dev/null +++ b/data/shops/veryhard/yellowboze/weapon.toml @@ -0,0 +1,99 @@ +[[weapon_tier]] +level = 0 +[[weapon_tier.weapons]] +weapon = "Saber" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Dagger" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Handgun" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Rifle" +probability = 20 + +[[weapon_tier.weapons]] +weapon = "Cane" +probability = 20 + + +[[weapon_tier]] +level = 10 +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Mechgun" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Stick" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 12 + + +[[weapon_tier]] +level = 25 +[[weapon_tier.weapons]] +weapon = "Knife" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Autogun" +probability = 5 + +[[weapon_tier.weapons]] +weapon = "Rod" +probability = 4 + +[[weapon_tier.weapons]] +weapon = "Shot" +probability = 4 + + +[[weapon_tier]] +level = 42 +[[weapon_tier.weapons]] +weapon = "Breaker" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Blade" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Spinner" +probability = 8 + +[[weapon_tier.weapons]] +weapon = "Halbert" +probability = 18 + +[[weapon_tier.weapons]] +weapon = "Lockgun" +probability = 10 + + +[[weapon_tier]] +level = 60 +[[weapon_tier.weapons]] +weapon = "Pallasch" +probability = 10 + +[[weapon_tier.weapons]] +weapon = "Breaker" +probability = 7 + +[[weapon_tier.weapons]] +weapon = "Edge" +probability = 7 + + diff --git a/src/ship/mod.rs b/src/ship/mod.rs index 4a9aa5a..b9b9268 100644 --- a/src/ship/mod.rs +++ b/src/ship/mod.rs @@ -9,3 +9,4 @@ pub mod monster; pub mod drops; pub mod packet; pub mod quests; +pub mod shops; diff --git a/src/ship/shops/mod.rs b/src/ship/shops/mod.rs new file mode 100644 index 0000000..e22b3b2 --- /dev/null +++ b/src/ship/shops/mod.rs @@ -0,0 +1 @@ +pub mod weapon; diff --git a/src/ship/shops/weapon.rs b/src/ship/shops/weapon.rs new file mode 100644 index 0000000..c3a3267 --- /dev/null +++ b/src/ship/shops/weapon.rs @@ -0,0 +1,405 @@ + +use std::collections::HashMap; +use std::fs::File; +use std::io::Read; +use std::path::PathBuf; +use serde::Deserialize; +use rand::{Rng, SeedableRng}; +use rand::distributions::{WeightedIndex, Distribution}; +use rand::seq::{SliceRandom, IteratorRandom}; +use crate::entity::character::SectionID; +use crate::ship::room::Difficulty; +use crate::entity::item::weapon::{WeaponType, WeaponSpecial, Attribute, WeaponAttribute}; + + +const TIER1_SPECIAL: [WeaponSpecial; 8] = [WeaponSpecial::Draw, WeaponSpecial::Heart, WeaponSpecial::Ice, WeaponSpecial::Bind, + WeaponSpecial::Heat, WeaponSpecial::Shock, WeaponSpecial::Dim, WeaponSpecial::Panic]; + +const TIER2_SPECIAL: [WeaponSpecial; 10] = [WeaponSpecial::Drain, WeaponSpecial::Mind, WeaponSpecial::Masters, WeaponSpecial::Charge, WeaponSpecial::Frost, + WeaponSpecial::Hold, WeaponSpecial::Fire, WeaponSpecial::Thunder, WeaponSpecial::Shadow, WeaponSpecial::Riot]; + +#[derive(Debug)] +pub struct ShopWeapon { + weapon: WeaponType, + special: Option, + grind: usize, + attributes: [Option; 2], +} + + +#[derive(Debug, Deserialize)] +struct WeaponTableTierEntry { + weapon: WeaponType, + probability: usize, +} + +#[derive(Debug, Deserialize)] +struct WeaponTableTier { + level: usize, + weapons: Vec, +} + +#[derive(Debug)] +struct WeaponTable(Vec); + +#[derive(Debug, Deserialize)] +struct GrindTier { + level: usize, + min: usize, + max: usize, +} + +#[derive(Debug)] +struct GrindTable(Vec); + +#[derive(Debug, Deserialize)] +struct AttributeTier { + level: usize, + percent_min: isize, + percent_max: isize, + none: usize, + native: usize, + abeast: usize, + machine: usize, + dark: usize, + hit: usize, +} + +#[derive(Debug)] +struct AttributeTable(Vec); + +#[derive(Debug, Deserialize)] +struct SpecialTierEntry { + tier: usize, + probability: usize, +} + +#[derive(Debug, Deserialize)] +struct SpecialTier { + level: usize, + special: Vec, +} + +#[derive(Debug)] +struct SpecialTable(Vec); + + + + + + + +/* +trait WeaponTableLoader { + fn load(difficulty: Difficulty, section_id: SectionID) -> WeaponTable where Self::Sized; +} + +struct WeaponTableLoaderImpl; +impl WeaponTableLoader for WeaponTableLoaderImpl { + fn load(difficulty: Difficulty, section_id: SectionID) -> WeaponTable { + let mut path = PathBuf::from("data/shops/"); + path.push(difficulty.to_string().to_lowercase()); + path.push(section_id.to_string().to_lowercase()); + path.push("weapon.toml"); + let mut f = File::open(path).unwrap(); + let mut s = String::new(); + f.read_to_string(&mut s); + + let table: Vec = toml::from_str(s.as_str()).unwrap(); + println!("table {:?}", table); + + WeaponTable { + + } + } +} +*/ + +fn load_weapon_table(difficulty: Difficulty, section_id: SectionID) -> WeaponTable { + let mut path = PathBuf::from("data/shops/"); + path.push(difficulty.to_string().to_lowercase()); + path.push(section_id.to_string().to_lowercase()); + path.push("weapon.toml"); + let mut f = File::open(path).unwrap(); + let mut s = String::new(); + f.read_to_string(&mut s).unwrap(); + + let mut table: HashMap> = toml::from_str(s.as_str()).unwrap(); + + WeaponTable(table.remove("weapon_tier".into()).unwrap()) +} + +fn load_special_table() -> SpecialTable { + let mut path = PathBuf::from("data/shops/special.toml"); + let mut f = File::open(path).unwrap(); + let mut s = String::new(); + f.read_to_string(&mut s).unwrap(); + + let mut table: HashMap> = toml::from_str(s.as_str()).unwrap(); + + SpecialTable(table.remove("specials".into()).unwrap()) +} + +fn load_grind_table() -> GrindTable { + let mut path = PathBuf::from("data/shops/grind.toml"); + let mut f = File::open(path).unwrap(); + let mut s = String::new(); + f.read_to_string(&mut s).unwrap(); + + let mut table: HashMap> = toml::from_str(s.as_str()).unwrap(); + + GrindTable(table.remove("grind".into()).unwrap()) +} + +fn load_alt_grind_table() -> GrindTable { + let mut path = PathBuf::from("data/shops/alt_grind.toml"); + let mut f = File::open(path).unwrap(); + let mut s = String::new(); + f.read_to_string(&mut s).unwrap(); + + let mut table: HashMap> = toml::from_str(s.as_str()).unwrap(); + + GrindTable(table.remove("grind".into()).unwrap()) +} + +fn load_attribute1_table() -> AttributeTable { + let mut path = PathBuf::from("data/shops/attribute1.toml"); + let mut f = File::open(path).unwrap(); + let mut s = String::new(); + f.read_to_string(&mut s).unwrap(); + + let mut table: HashMap> = toml::from_str(s.as_str()).unwrap(); + + AttributeTable(table.remove("attributes".into()).unwrap()) +} + +fn load_attribute2_table() -> AttributeTable { + let mut path = PathBuf::from("data/shops/attribute2.toml"); + let mut f = File::open(path).unwrap(); + let mut s = String::new(); + f.read_to_string(&mut s).unwrap(); + + let mut table: HashMap> = toml::from_str(s.as_str()).unwrap(); + + AttributeTable(table.remove("attributes".into()).unwrap()) +} + +#[derive(Debug)] +struct WeaponShop { + difficulty: Difficulty, + section_id: SectionID, + weapon: WeaponTable, + special: SpecialTable, + grind: GrindTable, + alt_grind: GrindTable, + attr1: AttributeTable, + attr2: AttributeTable, + rng: R, +} + +impl WeaponShop { + pub fn new(difficulty: Difficulty, section_id: SectionID) -> WeaponShop { + WeaponShop { + difficulty: difficulty, + section_id: section_id, + weapon: load_weapon_table(difficulty, section_id), + special: load_special_table(), + grind: load_grind_table(), + alt_grind: load_alt_grind_table(), + attr1: load_attribute1_table(), + attr2: load_attribute1_table(), + rng: R::from_entropy(), + } + } + + + fn generate_type(&mut self, level: usize) -> WeaponType { + let tier = self.weapon.0.iter() + .filter(|t| t.level < level) + .last() + .unwrap(); + + let weapon_choice = WeightedIndex::new(tier.weapons.iter().map(|t| t.probability)).unwrap(); + tier.weapons.get(weapon_choice.sample(&mut self.rng)).unwrap().weapon + } + + fn generate_special(&mut self, level: usize) -> Option { + let tier = self.special.0.iter() + .filter(|t| t.level < level) + .last() + .unwrap(); + + let special_tier = WeightedIndex::new(tier.special.iter().map(|t| t.probability)).unwrap(); + match special_tier.sample(&mut self.rng) { + 1 => TIER1_SPECIAL.choose(&mut self.rng).cloned(), + 2 => TIER2_SPECIAL.choose(&mut self.rng).cloned(), + _ => None + } + } + + fn generate_grind(&mut self, level: usize) -> usize { + let tier = self.grind.0.iter() + .filter(|t| t.level < level) + .last() + .unwrap(); + + self.rng.gen_range(tier.min, tier.max+1) + } + + fn generate_alt_grind(&mut self, level: usize) -> usize { + let tier = self.alt_grind.0.iter() + .filter(|t| t.level < level) + .nth(0) + .unwrap(); + + self.rng.gen_range(tier.min, tier.max+1) + } + + fn generate_attribute1(&mut self, level: usize) -> Option { + let tier = self.attr1.0.iter() + .filter(|t| t.level < level) + .last() + .unwrap(); + + let attr_choice = WeightedIndex::new(&[tier.none, tier.native, tier.abeast, tier.machine, tier.dark, tier.hit]).unwrap(); + let attr = match attr_choice.sample(&mut self.rng) { + 0 => return None, + 1 => Attribute::Native, + 2 => Attribute::ABeast, + 3 => Attribute::Machine, + 4 => Attribute::Dark, + 5 => Attribute::Hit, + _ => panic!() + }; + + let percent = (tier.percent_min..tier.percent_max+1) + .filter(|p| p % 5 == 0) + .choose(&mut self.rng)?; + + Some(WeaponAttribute { + attr: attr, + value: percent as i8, + }) + } + + fn generate_attribute2(&mut self, level: usize) -> Option { + let tier = self.attr2.0.iter() + .filter(|t| t.level < level) + .last() + .unwrap(); + + let attr_choice = WeightedIndex::new(&[tier.none, tier.native, tier.abeast, tier.machine, tier.dark, tier.hit]).unwrap(); + let attr = match attr_choice.sample(&mut self.rng) { + 0 => return None, + 1 => Attribute::Native, + 2 => Attribute::ABeast, + 3 => Attribute::Machine, + 4 => Attribute::Dark, + 5 => Attribute::Hit, + _ => panic!() + }; + + let percent = (tier.percent_min..tier.percent_max+1) + .filter(|p| p % 5 == 0) + .choose(&mut self.rng)?; + + Some(WeaponAttribute { + attr: attr, + value: percent as i8, + }) + } + + fn is_alt_grind(&self, weapon: &WeaponType) -> bool { + match (self.section_id, weapon) { + (SectionID::Viridia, WeaponType::Shot) => true, + (SectionID::Viridia, WeaponType::Spread) => true, + (SectionID::Viridia, WeaponType::Cannon) => true, + (SectionID::Viridia, WeaponType::Launcher) => true, + (SectionID::Viridia, WeaponType::Arms) => true, + (SectionID::Greenill, WeaponType::Rifle) => true, + (SectionID::Greenill, WeaponType::Sniper) => true, + (SectionID::Greenill, WeaponType::Blaster) => true, + (SectionID::Greenill, WeaponType::Beam) => true, + (SectionID::Greenill, WeaponType::Laser) => true, + (SectionID::Skyly, WeaponType::Sword) => true, + (SectionID::Skyly, WeaponType::Gigush) => true, + (SectionID::Skyly, WeaponType::Breaker) => true, + (SectionID::Skyly, WeaponType::Claymore) => true, + (SectionID::Skyly, WeaponType::Calibur) => true, + (SectionID::Bluefull, WeaponType::Partisan) => true, + (SectionID::Bluefull, WeaponType::Halbert) => true, + (SectionID::Bluefull, WeaponType::Glaive) => true, + (SectionID::Bluefull, WeaponType::Berdys) => true, + (SectionID::Bluefull, WeaponType::Gungnir) => true, + (SectionID::Purplenum, WeaponType::Mechgun) => true, + (SectionID::Purplenum, WeaponType::Assault) => true, + (SectionID::Purplenum, WeaponType::Repeater) => true, + (SectionID::Purplenum, WeaponType::Gatling) => true, + (SectionID::Purplenum, WeaponType::Vulcan) => true, + (SectionID::Pinkal, WeaponType::Cane) => true, + (SectionID::Pinkal, WeaponType::Stick) => true, + (SectionID::Pinkal, WeaponType::Mace) => true, + (SectionID::Pinkal, WeaponType::Club) => true, + (SectionID::Oran, WeaponType::Dagger) => true, + (SectionID::Oran, WeaponType::Knife) => true, + (SectionID::Oran, WeaponType::Blade) => true, + (SectionID::Oran, WeaponType::Edge) => true, + (SectionID::Oran, WeaponType::Ripper) => true, + (SectionID::Whitill, WeaponType::Slicer) => true, + (SectionID::Whitill, WeaponType::Spinner) => true, + (SectionID::Whitill, WeaponType::Cutter) => true, + (SectionID::Whitill, WeaponType::Sawcer) => true, + (SectionID::Whitill, WeaponType::Diska) => true, + _ => false, + } + } + + pub fn generate_weapon(&mut self, level: usize) -> ShopWeapon { + let weapon = self.generate_type(level); + let grind = if self.is_alt_grind(&weapon) { + self.generate_alt_grind(level) + } else { + self.generate_grind(level) + }; + let special = self.generate_special(level); + let (attr1, attr2) = { + match self.generate_attribute1(level) { + Some(a1) => { + let a2 = loop { + let attr = self.generate_attribute2(level); + match attr { + Some(a2) => { + if a2.attr != a1.attr { + break Some(a2); + } + }, + None => break None, + } + }; + (Some(a1), a2) + }, + None => { + let a2 = self.generate_attribute2(level); + (a2, None) + } + } + }; + + ShopWeapon { + weapon: weapon, + grind: grind, + special: special, + attributes: [attr1, attr2], + } + } +} + +#[cfg(test)] +mod test { + use super::*; + + #[test] + fn test_loading_weapons() { + WeaponShop::::new(Difficulty::Ultimate, SectionID::Pinkal); + } +}