mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
remove debug prints
This commit is contained in:
parent
8917668475
commit
9f30a1c1b4
2 changed files with 1 additions and 4 deletions
|
@ -1079,7 +1079,6 @@ impl LocalDiffModel {
|
|||
&& let Some(damage) = entity_manager
|
||||
.try_get_first_component::<DamageModelComponent>(ComponentTag::None)
|
||||
{
|
||||
noita_api::print(format!("a {:?} {:?}", entity, damage.0));
|
||||
if entity_data.hp > damage.max_hp_cap()? as f32 {
|
||||
damage.set_max_hp_cap(entity_data.hp as f64)?;
|
||||
}
|
||||
|
@ -1785,7 +1784,6 @@ impl RemoteDiffModel {
|
|||
if let Some(damage) =
|
||||
entity_manager.try_get_first_component::<DamageModelComponent>(ComponentTag::None)
|
||||
{
|
||||
noita_api::print(format!("b {:?} {:?}", entity, damage.0));
|
||||
if entity_info.hp > damage.max_hp()? as f32 {
|
||||
damage.set_max_hp(entity_info.hp as f64)?
|
||||
}
|
||||
|
@ -2681,7 +2679,6 @@ fn mom(entity: &mut EntityManager, counter: u8, cost: Option<i32>) -> eyre::Resu
|
|||
ent.kill()
|
||||
} else if let Ok(damage) = ent.get_first_component::<DamageModelComponent>(None)
|
||||
{
|
||||
noita_api::print(format!("c {:?} {:?}", entity.entity(), damage.0));
|
||||
damage.set_wait_for_kill_flag_on_death(true)?;
|
||||
damage.set_hp(damage.max_hp()?)?;
|
||||
}
|
||||
|
|
|
@ -709,4 +709,4 @@ end
|
|||
function OnPlayerDied(player_entity)
|
||||
ctx.hook.on_player_died(player_entity)
|
||||
print("player died")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue