Skip to content

Commit 40ccd8c

Browse files
committed
fix item registry schema
1 parent cbe3f16 commit 40ccd8c

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

pets-gd/assets/itemregistries/weapons.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
"trusty_rusty_pistol": {
33
"attributes": [
44
"Cheap",
5-
"Ranged",
6-
"Firearm"
5+
"Ranged"
76
],
87
"category": {
98
"Equipment": {
@@ -19,7 +18,10 @@
1918
"epsilon": 0,
2019
"lambda": 0,
2120
"max_mana": 0
22-
}
21+
},
22+
"equippable_by": [
23+
"Terra"
24+
]
2325
}
2426
}
2527
}

pets-lib/src/stats/autoload.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ impl IObject for StatsInterface {
6262
fn init(base: Base<Object>) -> Self {
6363
// start an empty save file, but load other if the player
6464
// picks a save file instead of "new"
65-
print_debug_crap();
6665
let save = SaveFile::fresh();
6766

6867
load_item_registry();
@@ -71,6 +70,8 @@ impl IObject for StatsInterface {
7170
// randomize seed for godot
7271
randomize();
7372

73+
print_debug_crap();
74+
7475
Self { base, save }
7576
}
7677
}
@@ -79,7 +80,7 @@ impl IObject for StatsInterface {
7980
/// it'll run when the game starts
8081
fn print_debug_crap() {
8182
// let ser = crate::stats::charmap::default_charmap();
82-
let ser = CharMap::_debugging_charmap();
83-
let ser = serde_json::to_string(&ser).unwrap();
84-
godot_print!("{}", ser);
83+
// let ser = CharMap::_debugging_charmap();
84+
// let ser = serde_json::to_string(&ser).unwrap();
85+
// godot_print!("{}", ser);
8586
}

0 commit comments

Comments
 (0)