More info for drops in KH3, enemy images and game specific overwrites
|
|
@ -2,6 +2,7 @@ name = "Anchor Raider"
|
||||||
|
|
||||||
[[world]]
|
[[world]]
|
||||||
name = "The Caribbean"
|
name = "The Caribbean"
|
||||||
|
rooms = ["Huddled Isles: Battlegate 10", "Luck Island"]
|
||||||
|
|
||||||
[[drops]]
|
[[drops]]
|
||||||
name = "Wellspring Gem"
|
name = "Wellspring Gem"
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ name = "Chief Puff"
|
||||||
|
|
||||||
[[world]]
|
[[world]]
|
||||||
name = "Kingdom of Corona"
|
name = "Kingdom of Corona"
|
||||||
|
rooms = ["The Forest | Hills"]
|
||||||
|
|
||||||
[[drops]]
|
[[drops]]
|
||||||
name = "Lucid Stone"
|
name = "Lucid Stone"
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ name = "Kingdom of Corona"
|
||||||
|
|
||||||
[[world]]
|
[[world]]
|
||||||
name = "The Caribbean"
|
name = "The Caribbean"
|
||||||
|
rooms = ["Huddled Isles: Battlegate 10"]
|
||||||
|
|
||||||
[[drops]]
|
[[drops]]
|
||||||
name = "Pulsing Shard"
|
name = "Pulsing Shard"
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ name = "Flame Core"
|
||||||
|
|
||||||
[[world]]
|
[[world]]
|
||||||
name = "Olympus"
|
name = "Olympus"
|
||||||
|
rooms = ["Realm of Gods: Battlegate 1"]
|
||||||
|
|
||||||
[[world]]
|
[[world]]
|
||||||
name = "Monstropolis"
|
name = "Monstropolis"
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ name = "High Soldier"
|
||||||
|
|
||||||
[[world]]
|
[[world]]
|
||||||
name = "San Fransokyo"
|
name = "San Fransokyo"
|
||||||
rooms = ["Battlegate 12", "North District (Night)"]
|
rooms = ["Battlegate 12", "North District"]
|
||||||
|
|
||||||
[[drops]]
|
[[drops]]
|
||||||
name = "Wellspring Gem"
|
name = "Wellspring Gem"
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ name = "Malachite Bolero"
|
||||||
|
|
||||||
[[world]]
|
[[world]]
|
||||||
name = "Kingdom of Corona"
|
name = "Kingdom of Corona"
|
||||||
|
rooms = ["The Forest | Tower", "The Forest | Hills"]
|
||||||
|
|
||||||
[[world]]
|
[[world]]
|
||||||
name = "The Caribbean"
|
name = "The Caribbean"
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ name = "Kingdom of Corona"
|
||||||
|
|
||||||
[[world]]
|
[[world]]
|
||||||
name = "The Caribbean"
|
name = "The Caribbean"
|
||||||
|
rooms = ["Huddled Isles: Battlegate 10"]
|
||||||
|
|
||||||
[[drops]]
|
[[drops]]
|
||||||
name = "Soothing Stone"
|
name = "Soothing Stone"
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@ name = "Pogo Shovel"
|
||||||
|
|
||||||
[[world]]
|
[[world]]
|
||||||
name = "San Fransokyo"
|
name = "San Fransokyo"
|
||||||
|
rooms = ["North District"]
|
||||||
|
note = "Straight from spawn until the end of the road and to the left on the grass"
|
||||||
|
|
||||||
[[world]]
|
[[world]]
|
||||||
name = "Monstropolis"
|
name = "Monstropolis"
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ name = "Powerwild"
|
||||||
|
|
||||||
[[world]]
|
[[world]]
|
||||||
name = "The Caribbean"
|
name = "The Caribbean"
|
||||||
|
rooms = ["Isla Verdemontana"]
|
||||||
|
|
||||||
[[drops]]
|
[[drops]]
|
||||||
name = "Pulsing Shard"
|
name = "Pulsing Shard"
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ name = "Puffball"
|
||||||
|
|
||||||
[[world]]
|
[[world]]
|
||||||
name = "Kingdom of Corona"
|
name = "Kingdom of Corona"
|
||||||
|
rooms = ["The Forest | Tower", "The Forest | Hills"]
|
||||||
|
|
||||||
[[drops]]
|
[[drops]]
|
||||||
name = "Lucid Shard"
|
name = "Lucid Shard"
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ name = "Satyr"
|
||||||
|
|
||||||
[[world]]
|
[[world]]
|
||||||
name = "Olympus"
|
name = "Olympus"
|
||||||
|
rooms = ["Realm of Gods: Battlegate 1"]
|
||||||
|
|
||||||
[[world]]
|
[[world]]
|
||||||
name = "Arendelle"
|
name = "Arendelle"
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ name = "Spear Lizard"
|
||||||
|
|
||||||
[[world]]
|
[[world]]
|
||||||
name = "The Caribbean"
|
name = "The Caribbean"
|
||||||
rooms = ["Battlegate 10", "Isla de los Mastiles"]
|
rooms = ["Huddled Isles: Battlegate 10", "Isla de los Mastiles"]
|
||||||
|
|
||||||
[[drops]]
|
[[drops]]
|
||||||
name = "Soothing Stone"
|
name = "Soothing Stone"
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ name = "Tireblade"
|
||||||
|
|
||||||
[[world]]
|
[[world]]
|
||||||
name = "San Fransokyo"
|
name = "San Fransokyo"
|
||||||
|
rooms = ["Battlegate 12"]
|
||||||
|
|
||||||
[[drops]]
|
[[drops]]
|
||||||
name = "Lightning Stone"
|
name = "Lightning Stone"
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
name = "Toy Trooper"
|
||||||
|
|
||||||
|
[[world]]
|
||||||
|
name = "Toy Box"
|
||||||
|
|
||||||
|
[[drops]]
|
||||||
|
name = "Wellspring Gem"
|
||||||
|
kind = "material"
|
||||||
|
chance = 20
|
||||||
|
|
||||||
|
[drops.material]
|
||||||
|
category = "wellspring"
|
||||||
|
kind = "gem"
|
||||||
|
|
||||||
|
[[drops]]
|
||||||
|
name = "Soothing Shard"
|
||||||
|
kind = "material"
|
||||||
|
chance = 12
|
||||||
|
|
||||||
|
[drops.material]
|
||||||
|
category = "soothing"
|
||||||
|
kind = "shard"
|
||||||
|
|
||||||
|
[[drops]]
|
||||||
|
name = "Wellspring Shard"
|
||||||
|
kind = "material"
|
||||||
|
chance = 8
|
||||||
|
|
||||||
|
[drops.material]
|
||||||
|
category = "wellspring"
|
||||||
|
kind = "shard"
|
||||||
|
|
@ -2,6 +2,7 @@ name = "Vaporfly"
|
||||||
|
|
||||||
[[world]]
|
[[world]]
|
||||||
name = "The Caribbean"
|
name = "The Caribbean"
|
||||||
|
rooms = ["Huddled Isles: Battlegate 10"]
|
||||||
|
|
||||||
[[drops]]
|
[[drops]]
|
||||||
name = "Lucid Stone"
|
name = "Lucid Stone"
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,15 @@ name = "Water Core"
|
||||||
|
|
||||||
[[world]]
|
[[world]]
|
||||||
name = "Olympus"
|
name = "Olympus"
|
||||||
|
rooms = ["Realm of Gods: Battlegate 1"]
|
||||||
|
|
||||||
[[world]]
|
[[world]]
|
||||||
name = "Kingdom of Corona"
|
name = "Kingdom of Corona"
|
||||||
|
rooms = ["The Forest | Hills"]
|
||||||
|
|
||||||
[[world]]
|
[[world]]
|
||||||
name = "The Caribbean"
|
name = "The Caribbean"
|
||||||
|
rooms = ["Huddled Isles: Battlegate 10"]
|
||||||
|
|
||||||
[[drops]]
|
[[drops]]
|
||||||
name = "Soothing Shard"
|
name = "Soothing Shard"
|
||||||
|
|
|
||||||
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 43 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 8.0 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 8.5 KiB |
|
After Width: | Height: | Size: 97 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 53 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 5.8 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 47 KiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 8.2 KiB |
|
After Width: | Height: | Size: 9.4 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
|
@ -128,8 +128,7 @@ table.board {
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 1;
|
z-index: 12;
|
||||||
bottom: 125%;
|
|
||||||
left: -50%;
|
left: -50%;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transition: opacity 0.3s;
|
transition: opacity 0.3s;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,12 @@
|
||||||
use std::{fmt::Display, path::PathBuf};
|
use std::{
|
||||||
|
fmt::Display,
|
||||||
|
path::{self, PathBuf},
|
||||||
|
};
|
||||||
|
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
|
|
||||||
|
use crate::ASSETS_FOLDER_PATH;
|
||||||
|
|
||||||
use super::{Game, materials::MaterialDetails};
|
use super::{Game, materials::MaterialDetails};
|
||||||
|
|
||||||
#[derive(Default, Debug, Deserialize, PartialEq, Eq, PartialOrd, Ord, Clone)]
|
#[derive(Default, Debug, Deserialize, PartialEq, Eq, PartialOrd, Ord, Clone)]
|
||||||
|
|
@ -57,8 +62,16 @@ pub struct EnemyDrop {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl EnemyDrop {
|
impl EnemyDrop {
|
||||||
pub fn texture(&self) -> String {
|
pub fn texture(&self, game: &Game) -> String {
|
||||||
self.from.replace(" ", "_").to_lowercase()
|
let filename = self.from.replace(" ", "_").to_lowercase();
|
||||||
|
let path = format!("{}/enemies/{}/{}.webp", ASSETS_FOLDER_PATH, game, filename);
|
||||||
|
let path = path::Path::new(&path);
|
||||||
|
|
||||||
|
if path.exists() {
|
||||||
|
return format!("{game}/{filename}");
|
||||||
|
} else {
|
||||||
|
return filename;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
<div class="enemy">
|
<div class="enemy">
|
||||||
<div class="drop">
|
<div class="drop">
|
||||||
<div
|
<div
|
||||||
style="background-image: url('../public/assets/enemies/{{ drop.texture() }}.webp');"
|
style="background-image: url('../public/assets/enemies/{{ drop.texture(data.game) }}.webp');"
|
||||||
></div>
|
></div>
|
||||||
<span>{{ drop.from +}}</span>
|
<span>{{ drop.from +}}</span>
|
||||||
<span>{{+ drop.chance }}</span>
|
<span>{{+ drop.chance }}</span>
|
||||||
|
|
|
||||||