disable resource collection outside of core range, disable purchase buttons if too much money

This commit is contained in:
Jim 2025-09-01 21:09:37 -04:00
parent 6a4978041c
commit e6b04bbdd1
Signed by: jim
GPG key ID: 3D7D94BA53088BF4
8 changed files with 97 additions and 56 deletions

View file

@ -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;
}