feat: Implement crop withering mechanics (#28)
This commit is contained in:
@@ -86,6 +86,8 @@ fn test_crop_growth_logic() {
|
||||
seed: seed_type.clone(),
|
||||
watered: true,
|
||||
growth_stage: 0,
|
||||
withered: false,
|
||||
dry_counter: 0,
|
||||
},
|
||||
),
|
||||
(
|
||||
@@ -95,6 +97,8 @@ fn test_crop_growth_logic() {
|
||||
seed: seed_type.clone(),
|
||||
watered: false,
|
||||
growth_stage: 0,
|
||||
withered: false,
|
||||
dry_counter: 0,
|
||||
},
|
||||
),
|
||||
(
|
||||
@@ -104,6 +108,8 @@ fn test_crop_growth_logic() {
|
||||
seed: seed_type.clone(),
|
||||
watered: true,
|
||||
growth_stage: 2, // Max
|
||||
withered: false,
|
||||
dry_counter: 0,
|
||||
},
|
||||
),
|
||||
];
|
||||
|
||||
@@ -180,6 +180,8 @@ fn test_water_crop() {
|
||||
seed: seed_type.clone(),
|
||||
watered: false,
|
||||
growth_stage: 0,
|
||||
withered: false,
|
||||
dry_counter: 0,
|
||||
},
|
||||
)],
|
||||
vec![],
|
||||
|
||||
@@ -95,6 +95,8 @@ fn test_find_path_around_obstacle() {
|
||||
},
|
||||
watered: false,
|
||||
growth_stage: 0,
|
||||
withered: false,
|
||||
dry_counter: 0,
|
||||
};
|
||||
let obstacles = vec![
|
||||
(2, 2, obstacle.clone()),
|
||||
@@ -148,6 +150,8 @@ fn test_find_path_no_path() {
|
||||
},
|
||||
watered: false,
|
||||
growth_stage: 0,
|
||||
withered: false,
|
||||
dry_counter: 0,
|
||||
};
|
||||
let obstacles = vec![
|
||||
(2, 0, obstacle.clone()),
|
||||
|
||||
Reference in New Issue
Block a user