@@ -26,7 +26,7 @@ pub fn player(gs: &mut State, position: Position) -> Entity {
26
26
glyph : bracket_lib:: prelude:: to_cp437 ( '@' ) ,
27
27
fg : RGB :: named ( bracket_lib:: prelude:: YELLOW ) ,
28
28
bg : RGB :: named ( bracket_lib:: prelude:: BLACK ) ,
29
- render_order : 0 ,
29
+ render_order : 2 ,
30
30
} )
31
31
. with ( Player { } )
32
32
. with ( Viewshed {
@@ -53,7 +53,7 @@ pub fn health_potion(ecs: &mut World, position: Position) -> Entity {
53
53
glyph : bracket_lib:: prelude:: to_cp437 ( '¡' ) ,
54
54
fg : RGB :: named ( bracket_lib:: prelude:: RED ) ,
55
55
bg : RGB :: named ( bracket_lib:: prelude:: BLACK ) ,
56
- render_order : 2 ,
56
+ render_order : 0 ,
57
57
} )
58
58
. with ( Name {
59
59
name : "Health Potion" . to_string ( ) ,
@@ -71,7 +71,7 @@ pub fn fireball_scroll(ecs: &mut World, position: Position) -> Entity {
71
71
glyph : bracket_lib:: prelude:: to_cp437 ( ')' ) ,
72
72
fg : RGB :: named ( ORANGE ) ,
73
73
bg : RGB :: named ( BLACK ) ,
74
- render_order : 2 ,
74
+ render_order : 0 ,
75
75
} )
76
76
. with ( Name {
77
77
name : "Fireball Scroll" . to_string ( ) ,
@@ -91,15 +91,15 @@ pub fn magic_missile_scroll(ecs: &mut World, position: Position) -> Entity {
91
91
glyph : bracket_lib:: prelude:: to_cp437 ( ')' ) ,
92
92
fg : RGB :: named ( CYAN ) ,
93
93
bg : RGB :: named ( BLACK ) ,
94
- render_order : 2 ,
94
+ render_order : 0 ,
95
95
} )
96
96
. with ( Name {
97
97
name : "Magic Missile Scroll" . to_string ( ) ,
98
98
} )
99
99
. with ( Item { } )
100
100
. with ( Consumable { } )
101
101
. with ( Ranged { range : 6 } )
102
- . with ( InflictsDamage { damage : 16 } ) // TODO: should be 8
102
+ . with ( InflictsDamage { damage : 8 } )
103
103
. build ( )
104
104
}
105
105
@@ -110,7 +110,7 @@ pub fn random_item(ecs: &mut World, position: Position) -> Entity {
110
110
} ;
111
111
match roll {
112
112
x if x < 30 => health_potion ( ecs, position) ,
113
- x if x < 70 => fireball_scroll ( ecs, position) ,
113
+ x if x < 60 => fireball_scroll ( ecs, position) ,
114
114
_ => magic_missile_scroll ( ecs, position) ,
115
115
}
116
116
}
0 commit comments