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

@ -5,7 +5,7 @@
use bevy::prelude::*;
use building::{BuildingInfo, BuildingPreview, Core, PREVIEW_ALPHA, PopulatePlacedBuilding};
use combat::{Defense, Health, Range};
use ui_range_indicator::{CustomRangeIndicator, DisplayCustomRangeIndicator};
use ui_range_indicator::CustomRangeIndicator;
pub struct BuildingCorePlugin;
@ -80,7 +80,7 @@ fn populate(
Core,
Health::new(100.0),
Defense::new(5.0),
Range(20.0),
Range(25.0),
Mesh3d(res.mesh.clone()),
MeshMaterial3d(res.material.clone()),
CustomRangeIndicator::new(materials.add(StandardMaterial {