steel_core/entity/mob_effect/bad_omen.rs
1//! `BadOmenMobEffect` behavior.
2
3use super::MobEffectBehavior;
4use crate::entity::LivingEntity;
5use crate::world::World;
6
7/// Bad omen mob effect behavior.
8// TODO: `applyEffectTick` checks the mob is a non-spectator `ServerPlayer`
9// standing in a village (`ServerLevel.isVillage`) with no raid already at its
10// max omen level, then starts/extends a `Raid`
11pub struct BadOmenBehavior;
12
13impl MobEffectBehavior for BadOmenBehavior {
14 fn should_apply_effect_tick_this_tick(&self, _tick_count: i32, _amplifier: i32) -> bool {
15 true
16 }
17
18 fn apply_effect_tick(&self, _world: &World, _user: &dyn LivingEntity, _amplifier: i32) -> bool {
19 true
20 }
21}