Consume proper currency amount when idolizing

This commit is contained in:
Ethan O'Brien
2024-05-29 21:46:19 -05:00
parent bc1a8f051c
commit 9399b7825d
3 changed files with 37 additions and 2 deletions

View File

@ -0,0 +1,26 @@
[
{
"rarity": 1,
"evolveCount": 1,
"maxLevel": 60,
"price": 30000,
"hpAddValue": 1,
"masterReleaseLabelId": 1
},
{
"rarity": 2,
"evolveCount": 1,
"maxLevel": 80,
"price": 70000,
"hpAddValue": 1,
"masterReleaseLabelId": 1
},
{
"rarity": 3,
"evolveCount": 1,
"maxLevel": 100,
"price": 100000,
"hpAddValue": 1,
"masterReleaseLabelId": 1
}
]

View File

@ -196,4 +196,12 @@ lazy_static! {
pub static ref RANKS: JsonValue = {
json::parse(&include_file!("src/router/databases/json/user_rank.json")).unwrap()
};
pub static ref EVOLVE_COST: JsonValue = {
let mut info = object!{};
let items = json::parse(&include_file!("src/router/databases/json/card_evolve.json")).unwrap();
for data in items.members() {
info[data["rarity"].to_string()] = data["price"].clone();
}
info
};
}