diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-10-16 19:39:20 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-10-16 19:39:20 +0300 |
commit | 6470743e5147da6f9a9323d210dd6be5172c2860 (patch) | |
tree | 9f21883342279091e0a73bda604a9fd359696cb0 /src/environment.cpp | |
parent | 143dce6672972a864a427f34f6513e5faeeaeb48 (diff) | |
download | minetest-6470743e5147da6f9a9323d210dd6be5172c2860.tar.gz minetest-6470743e5147da6f9a9323d210dd6be5172c2860.tar.bz2 minetest-6470743e5147da6f9a9323d210dd6be5172c2860.zip |
Make dungeon masters not shoot the walls with no reason
Diffstat (limited to 'src/environment.cpp')
-rw-r--r-- | src/environment.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/environment.cpp b/src/environment.cpp index 1d684129d..267dd66af 100644 --- a/src/environment.cpp +++ b/src/environment.cpp @@ -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++) |