Modify builtin ABMs to have lower interval and higher trigger non-chance

master
Perttu Ahola 2011-11-29 23:22:44 +02:00
parent e109ed5cef
commit ccfec0400f
1 changed files with 6 additions and 6 deletions

View File

@ -40,9 +40,9 @@ public:
return s; return s;
} }
virtual float getTriggerInterval() virtual float getTriggerInterval()
{ return 10.0; } { return 2.0; }
virtual u32 getTriggerChance() virtual u32 getTriggerChance()
{ return 20; } { return 200; }
virtual void trigger(ServerEnvironment *env, v3s16 p, MapNode n) virtual void trigger(ServerEnvironment *env, v3s16 p, MapNode n)
{ {
INodeDefManager *ndef = env->getGameDef()->ndef(); INodeDefManager *ndef = env->getGameDef()->ndef();
@ -70,9 +70,9 @@ public:
return s; return s;
} }
virtual float getTriggerInterval() virtual float getTriggerInterval()
{ return 10.0; } { return 2.0; }
virtual u32 getTriggerChance() virtual u32 getTriggerChance()
{ return 1; } { return 20; }
virtual void trigger(ServerEnvironment *env, v3s16 p, MapNode n) virtual void trigger(ServerEnvironment *env, v3s16 p, MapNode n)
{ {
INodeDefManager *ndef = env->getGameDef()->ndef(); INodeDefManager *ndef = env->getGameDef()->ndef();
@ -152,9 +152,9 @@ public:
return s; return s;
} }
virtual float getTriggerInterval() virtual float getTriggerInterval()
{ return 10.0; } { return 2.0; }
virtual u32 getTriggerChance() virtual u32 getTriggerChance()
{ return 200; } { return 1000; }
virtual void trigger(ServerEnvironment *env, v3s16 p, MapNode n, virtual void trigger(ServerEnvironment *env, v3s16 p, MapNode n,
u32 active_object_count, u32 active_object_count_wider) u32 active_object_count, u32 active_object_count_wider)
{ {