disable resource collection outside of core range, disable purchase buttons if too much money
This commit is contained in:
parent
6a4978041c
commit
e6b04bbdd1
8 changed files with 97 additions and 56 deletions
|
|
@ -121,7 +121,7 @@ pub fn valid_placement(
|
|||
core_position_range: Option<(Vec3, f32)>,
|
||||
) -> bool {
|
||||
if let Some((core_position, core_range)) = core_position_range
|
||||
&& position.distance_squared(core_position) > core_range * core_range
|
||||
&& !Range(core_range).within(position, core_position)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue