add souls and bones + tower cost and enemy drops
This commit is contained in:
parent
bc02db7b26
commit
138a524abd
18 changed files with 151 additions and 14 deletions
|
|
@ -64,7 +64,6 @@ fn explode(
|
|||
trigger_query: Query<&GlobalTransform>,
|
||||
mut other_query: Query<(&GlobalTransform, &mut LinearVelocity)>,
|
||||
) {
|
||||
info!("blasthing!");
|
||||
let Ok(gtf) = trigger_query.get(trigger.target()) else {
|
||||
return;
|
||||
};
|
||||
|
|
@ -78,7 +77,7 @@ fn explode(
|
|||
) {
|
||||
if let Ok((gtf, mut v)) = other_query.get_mut(e) {
|
||||
let delta = gtf.translation() - origin;
|
||||
v.0 += delta.normalize_or_zero() * 10.0;
|
||||
v.0 += delta.normalize_or_zero() * 2.0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue