remove Digger from dorf
This commit is contained in:
@@ -3,8 +3,6 @@ use crate::constants::TILE_SIZE;
|
||||
use crate::constants::*;
|
||||
use crate::entities::cargo::{CarryVisualState, HaulSlot};
|
||||
use crate::entities::shared_components::Ambulatory;
|
||||
use crate::entities::shared_systems::constants::DEFAULT_DIG_INTERVAL_SECS;
|
||||
use crate::entities::shared_systems::digging::Digger;
|
||||
use crate::game::SpawnDelay;
|
||||
use crate::world::VisibleGameEntity;
|
||||
use bevy::prelude::*;
|
||||
@@ -17,7 +15,6 @@ pub struct Dorf {
|
||||
sprite: Sprite,
|
||||
transform: Transform,
|
||||
visibility: Visibility,
|
||||
digger: Digger,
|
||||
haul_slot: HaulSlot,
|
||||
carry_visual: CarryVisualState,
|
||||
}
|
||||
@@ -48,7 +45,6 @@ impl Dorf {
|
||||
},
|
||||
transform: Transform::from_translation(position).with_scale(Vec3::splat(PIXEL_RATIO)),
|
||||
visibility: Visibility::Hidden,
|
||||
digger: Digger::new(DEFAULT_DIG_INTERVAL_SECS),
|
||||
haul_slot: HaulSlot::default(),
|
||||
carry_visual: CarryVisualState::new(normal_sprite, carry_sprite),
|
||||
}
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
//! Digger — debug-only tile removal timer.
|
||||
//!
|
||||
//! This module provides the `Digger` component for demonstrating tile removal.
|
||||
//! It is NOT used in production gameplay — `ChopTree` and `MineTile` tasks
|
||||
//! will call `fell_tree` / `dig_floor` directly when executed by the task system.
|
||||
//! `Digger` lives on `Rabbit` as a debug example only.
|
||||
|
||||
use crate::constants::ITILE_SIZE;
|
||||
use crate::entities::item::drop_table::dig_rng;
|
||||
use crate::entities::item::prefabs::misc::misc_prefabs::spawn_prefab;
|
||||
|
||||
Reference in New Issue
Block a user