@@ -26,7 +26,7 @@ pub fn player(gs: &mut State, position: Position) -> Entity {
2626 glyph : bracket_lib:: prelude:: to_cp437 ( '@' ) ,
2727 fg : RGB :: named ( bracket_lib:: prelude:: YELLOW ) ,
2828 bg : RGB :: named ( bracket_lib:: prelude:: BLACK ) ,
29- render_order : 0 ,
29+ render_order : 2 ,
3030 } )
3131 . with ( Player { } )
3232 . with ( Viewshed {
@@ -53,7 +53,7 @@ pub fn health_potion(ecs: &mut World, position: Position) -> Entity {
5353 glyph : bracket_lib:: prelude:: to_cp437 ( '¡' ) ,
5454 fg : RGB :: named ( bracket_lib:: prelude:: RED ) ,
5555 bg : RGB :: named ( bracket_lib:: prelude:: BLACK ) ,
56- render_order : 2 ,
56+ render_order : 0 ,
5757 } )
5858 . with ( Name {
5959 name : "Health Potion" . to_string ( ) ,
@@ -71,7 +71,7 @@ pub fn fireball_scroll(ecs: &mut World, position: Position) -> Entity {
7171 glyph : bracket_lib:: prelude:: to_cp437 ( ')' ) ,
7272 fg : RGB :: named ( ORANGE ) ,
7373 bg : RGB :: named ( BLACK ) ,
74- render_order : 2 ,
74+ render_order : 0 ,
7575 } )
7676 . with ( Name {
7777 name : "Fireball Scroll" . to_string ( ) ,
@@ -91,15 +91,15 @@ pub fn magic_missile_scroll(ecs: &mut World, position: Position) -> Entity {
9191 glyph : bracket_lib:: prelude:: to_cp437 ( ')' ) ,
9292 fg : RGB :: named ( CYAN ) ,
9393 bg : RGB :: named ( BLACK ) ,
94- render_order : 2 ,
94+ render_order : 0 ,
9595 } )
9696 . with ( Name {
9797 name : "Magic Missile Scroll" . to_string ( ) ,
9898 } )
9999 . with ( Item { } )
100100 . with ( Consumable { } )
101101 . with ( Ranged { range : 6 } )
102- . with ( InflictsDamage { damage : 16 } ) // TODO: should be 8
102+ . with ( InflictsDamage { damage : 8 } )
103103 . build ( )
104104}
105105
@@ -110,7 +110,7 @@ pub fn random_item(ecs: &mut World, position: Position) -> Entity {
110110 } ;
111111 match roll {
112112 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) ,
114114 _ => magic_missile_scroll ( ecs, position) ,
115115 }
116116}
0 commit comments