mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Make dungeon masters not shoot the walls with no reason
This commit is contained in:
parent
143dce6672
commit
6470743e51
2 changed files with 24 additions and 17 deletions
|
@ -657,6 +657,7 @@ static void getMob_dungeon_master(Settings &properties)
|
|||
properties.set("player_hit_damage", "1");
|
||||
properties.set("player_hit_distance", "1.0");
|
||||
properties.set("player_hit_interval", "0.5");
|
||||
properties.setBool("mindless_rage", myrand_range(0,100)==0);
|
||||
}
|
||||
|
||||
void ServerEnvironment::step(float dtime)
|
||||
|
@ -866,7 +867,7 @@ void ServerEnvironment::step(float dtime)
|
|||
// TODO: Implement usage of ActiveBlockModifier
|
||||
|
||||
// Find out how many objects the block contains
|
||||
u32 active_object_count = block->m_static_objects.m_active.size();
|
||||
//u32 active_object_count = block->m_static_objects.m_active.size();
|
||||
// Find out how many objects this and all the neighbors contain
|
||||
u32 active_object_count_wider = 0;
|
||||
for(s16 x=-1; x<=1; x++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue