@@ -468,11 +468,11 @@ mod tests {
468468 let player_entity = get_player_unwrap ( & gs. ecs , PLAYER_NAME ) ;
469469 let player_posn = get_player_pos_unwrap ( & gs. ecs , PLAYER_NAME ) ;
470470
471- spawner:: iron_dagger ( & mut gs. ecs , player_posn) ;
471+ spawner:: dagger_at_level ( 5 , & mut gs. ecs , player_posn) ;
472472 get_item ( & mut gs. ecs ) ; // pickup an item
473473 gs. run_systems ( ) ;
474474
475- spawner:: iron_shield ( & mut gs. ecs , player_posn) ;
475+ spawner:: dagger_at_level ( 5 , & mut gs. ecs , player_posn) ;
476476 get_item ( & mut gs. ecs ) ; // pickup an item
477477 gs. run_systems ( ) ;
478478
@@ -493,17 +493,17 @@ mod tests {
493493 let player_entity = get_player_unwrap ( & gs. ecs , PLAYER_NAME ) ;
494494 let player_posn = get_player_pos_unwrap ( & gs. ecs , PLAYER_NAME ) ;
495495
496- let _dagger1 = spawner:: iron_dagger ( & mut gs. ecs , player_posn) ;
496+ let _dagger1 = spawner:: dagger_at_level ( 1 , & mut gs. ecs , player_posn) ;
497497 get_item ( & mut gs. ecs ) ; // pickup an item
498498 gs. run_systems ( ) ;
499499 use_first_backpack_item ( & mut gs, player_entity) ;
500500
501- let shield = spawner:: iron_shield ( & mut gs. ecs , player_posn) ;
501+ let shield = spawner:: shield_at_level ( 1 , & mut gs. ecs , player_posn) ;
502502 get_item ( & mut gs. ecs ) ; // pickup an item
503503 gs. run_systems ( ) ;
504504 use_first_backpack_item ( & mut gs, player_entity) ;
505505
506- let dagger2 = spawner:: iron_dagger ( & mut gs. ecs , player_posn) ;
506+ let dagger2 = spawner:: dagger_at_level ( 1 , & mut gs. ecs , player_posn) ;
507507 get_item ( & mut gs. ecs ) ; // pickup an item
508508 gs. run_systems ( ) ;
509509
0 commit comments