@@ -22,7 +22,7 @@ pub const MAIN_SLOT: u16 = 0;
22
22
pub const PICKAXE_SLOT : u16 = 1 ;
23
23
pub const BLOCK_SLOT : u16 = 2 ;
24
24
pub const UPGRADE_START_SLOT : u16 = 3 ;
25
- pub const GUI_SLOT : u16 = 7 ;
25
+ pub const UPGRADE_CLASS_SLOT : u16 = 7 ;
26
26
pub const HELP_SLOT : u16 = 8 ;
27
27
28
28
impl Class {
@@ -84,10 +84,10 @@ impl Class {
84
84
} ) ;
85
85
86
86
let upgrade_available = [
87
- ItemKind :: BlueDye , // Speed
88
- ItemKind :: RedDye , // Health
89
- ItemKind :: YellowDye , // Armor
90
- ItemKind :: GreenDye , // Damage
87
+ ItemKind :: Feather , // Speed
88
+ ItemKind :: Apple , // Health
89
+ ItemKind :: Shield , // Armor
90
+ ItemKind :: Cactus , // Damage
91
91
] ;
92
92
93
93
world. get :: < & Handles > ( |handles| {
@@ -197,10 +197,13 @@ impl Class {
197
197
}
198
198
}
199
199
200
- let upgrade_item = ItemBuilder :: new ( ItemKind :: FireworkStar )
201
- . name ( "Upgrades" )
202
- . build ( ) ;
200
+ let mut upgrade_item = ItemBuilder :: new ( ItemKind :: FireworkStar ) . name ( "Upgrades" ) ;
201
+
202
+ if extra_levels > 0 {
203
+ upgrade_item = upgrade_item. kind ( ItemKind :: NetherStar ) . glowing ( ) ;
204
+ }
203
205
204
- inventory. set_hotbar ( GUI_SLOT , upgrade_item) ;
206
+ let upgrade_item = upgrade_item. build ( ) ;
207
+ inventory. set_hotbar ( UPGRADE_CLASS_SLOT , upgrade_item) ;
205
208
}
206
209
}
0 commit comments