Consume proper currency amount when idolizing
This commit is contained in:
26
src/router/databases/json/card_evolve.json
Normal file
26
src/router/databases/json/card_evolve.json
Normal 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
|
||||
}
|
||||
]
|
@ -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
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user