More info for drops in KH3, enemy images and game specific overwrites
|
|
@ -2,6 +2,7 @@ name = "Anchor Raider"
|
|||
|
||||
[[world]]
|
||||
name = "The Caribbean"
|
||||
rooms = ["Huddled Isles: Battlegate 10", "Luck Island"]
|
||||
|
||||
[[drops]]
|
||||
name = "Wellspring Gem"
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ name = "Chief Puff"
|
|||
|
||||
[[world]]
|
||||
name = "Kingdom of Corona"
|
||||
rooms = ["The Forest | Hills"]
|
||||
|
||||
[[drops]]
|
||||
name = "Lucid Stone"
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ name = "Kingdom of Corona"
|
|||
|
||||
[[world]]
|
||||
name = "The Caribbean"
|
||||
rooms = ["Huddled Isles: Battlegate 10"]
|
||||
|
||||
[[drops]]
|
||||
name = "Pulsing Shard"
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ name = "Flame Core"
|
|||
|
||||
[[world]]
|
||||
name = "Olympus"
|
||||
rooms = ["Realm of Gods: Battlegate 1"]
|
||||
|
||||
[[world]]
|
||||
name = "Monstropolis"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ name = "High Soldier"
|
|||
|
||||
[[world]]
|
||||
name = "San Fransokyo"
|
||||
rooms = ["Battlegate 12", "North District (Night)"]
|
||||
rooms = ["Battlegate 12", "North District"]
|
||||
|
||||
[[drops]]
|
||||
name = "Wellspring Gem"
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ name = "Malachite Bolero"
|
|||
|
||||
[[world]]
|
||||
name = "Kingdom of Corona"
|
||||
rooms = ["The Forest | Tower", "The Forest | Hills"]
|
||||
|
||||
[[world]]
|
||||
name = "The Caribbean"
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ name = "Kingdom of Corona"
|
|||
|
||||
[[world]]
|
||||
name = "The Caribbean"
|
||||
rooms = ["Huddled Isles: Battlegate 10"]
|
||||
|
||||
[[drops]]
|
||||
name = "Soothing Stone"
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@ name = "Pogo Shovel"
|
|||
|
||||
[[world]]
|
||||
name = "San Fransokyo"
|
||||
rooms = ["North District"]
|
||||
note = "Straight from spawn until the end of the road and to the left on the grass"
|
||||
|
||||
[[world]]
|
||||
name = "Monstropolis"
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ name = "Powerwild"
|
|||
|
||||
[[world]]
|
||||
name = "The Caribbean"
|
||||
rooms = ["Isla Verdemontana"]
|
||||
|
||||
[[drops]]
|
||||
name = "Pulsing Shard"
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ name = "Puffball"
|
|||
|
||||
[[world]]
|
||||
name = "Kingdom of Corona"
|
||||
rooms = ["The Forest | Tower", "The Forest | Hills"]
|
||||
|
||||
[[drops]]
|
||||
name = "Lucid Shard"
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ name = "Satyr"
|
|||
|
||||
[[world]]
|
||||
name = "Olympus"
|
||||
rooms = ["Realm of Gods: Battlegate 1"]
|
||||
|
||||
[[world]]
|
||||
name = "Arendelle"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ name = "Spear Lizard"
|
|||
|
||||
[[world]]
|
||||
name = "The Caribbean"
|
||||
rooms = ["Battlegate 10", "Isla de los Mastiles"]
|
||||
rooms = ["Huddled Isles: Battlegate 10", "Isla de los Mastiles"]
|
||||
|
||||
[[drops]]
|
||||
name = "Soothing Stone"
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ name = "Tireblade"
|
|||
|
||||
[[world]]
|
||||
name = "San Fransokyo"
|
||||
rooms = ["Battlegate 12"]
|
||||
|
||||
[[drops]]
|
||||
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]]
|
||||
name = "The Caribbean"
|
||||
rooms = ["Huddled Isles: Battlegate 10"]
|
||||
|
||||
[[drops]]
|
||||
name = "Lucid Stone"
|
||||
|
|
|
|||
|
|
@ -2,12 +2,15 @@ name = "Water Core"
|
|||
|
||||
[[world]]
|
||||
name = "Olympus"
|
||||
rooms = ["Realm of Gods: Battlegate 1"]
|
||||
|
||||
[[world]]
|
||||
name = "Kingdom of Corona"
|
||||
rooms = ["The Forest | Hills"]
|
||||
|
||||
[[world]]
|
||||
name = "The Caribbean"
|
||||
rooms = ["Huddled Isles: Battlegate 10"]
|
||||
|
||||
[[drops]]
|
||||
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;
|
||||
padding: 8px;
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
bottom: 125%;
|
||||
z-index: 12;
|
||||
left: -50%;
|
||||
opacity: 0;
|
||||
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 crate::ASSETS_FOLDER_PATH;
|
||||
|
||||
use super::{Game, materials::MaterialDetails};
|
||||
|
||||
#[derive(Default, Debug, Deserialize, PartialEq, Eq, PartialOrd, Ord, Clone)]
|
||||
|
|
@ -57,8 +62,16 @@ pub struct EnemyDrop {
|
|||
}
|
||||
|
||||
impl EnemyDrop {
|
||||
pub fn texture(&self) -> String {
|
||||
self.from.replace(" ", "_").to_lowercase()
|
||||
pub fn texture(&self, game: &Game) -> String {
|
||||
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="drop">
|
||||
<div
|
||||
style="background-image: url('../public/assets/enemies/{{ drop.texture() }}.webp');"
|
||||
style="background-image: url('../public/assets/enemies/{{ drop.texture(data.game) }}.webp');"
|
||||
></div>
|
||||
<span>{{ drop.from +}}</span>
|
||||
<span>{{+ drop.chance }}</span>
|
||||
|
|
|
|||