add difficulty settings, increase drops
This commit is contained in:
parent
d35344f910
commit
dccd6d319e
9 changed files with 57 additions and 17 deletions
|
|
@ -8,6 +8,7 @@ use building::Building;
|
|||
use combat::{GaveDamage, Health, Team};
|
||||
use combat_damagers::ContactDamage;
|
||||
use inhabitant::Inhabitant;
|
||||
use resources::{Drops, Quantity};
|
||||
use state::{BasePhaseState, GameSystemSet};
|
||||
|
||||
pub struct InhabitantSimbertPlugin;
|
||||
|
|
@ -68,12 +69,13 @@ fn spawn(
|
|||
res: Res<SimbertResources>,
|
||||
) {
|
||||
for SpawnSimbert { transform, mega } in reader.read() {
|
||||
let (health, damage, transform, material) = if *mega {
|
||||
let (health, damage, transform, material, drops) = if *mega {
|
||||
(
|
||||
Health::new(5.0 + 1.5 * phase.get().phase_count() as f32),
|
||||
ContactDamage::new(6.0),
|
||||
transform.with_scale(transform.scale * res.mega_scale),
|
||||
res.mega_material.clone(),
|
||||
Drops(Quantity { souls: 3, bones: 0 }),
|
||||
)
|
||||
} else {
|
||||
(
|
||||
|
|
@ -81,6 +83,7 @@ fn spawn(
|
|||
ContactDamage::new(3.0),
|
||||
transform.clone(),
|
||||
res.material.clone(),
|
||||
Drops::default(),
|
||||
)
|
||||
};
|
||||
commands
|
||||
|
|
@ -91,6 +94,7 @@ fn spawn(
|
|||
MeshMaterial3d(material),
|
||||
MaxLinearSpeed(25.),
|
||||
Simbert,
|
||||
drops,
|
||||
transform,
|
||||
health,
|
||||
damage,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue