From 6470743e5147da6f9a9323d210dd6be5172c2860 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 16 Oct 2011 19:39:20 +0300 Subject: Make dungeon masters not shoot the walls with no reason --- src/environment.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/environment.cpp') 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++) -- cgit v1.2.3