Skip to content
Snippets Groups Projects
Commit ccfec040 authored by Perttu Ahola's avatar Perttu Ahola
Browse files

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

parent e109ed5c
No related branches found
No related tags found
No related merge requests found
......@@ -40,9 +40,9 @@ class GrowGrassABM : public ActiveBlockModifier
return s;
}
virtual float getTriggerInterval()
{ return 10.0; }
{ return 2.0; }
virtual u32 getTriggerChance()
{ return 20; }
{ return 200; }
virtual void trigger(ServerEnvironment *env, v3s16 p, MapNode n)
{
INodeDefManager *ndef = env->getGameDef()->ndef();
......@@ -70,9 +70,9 @@ class RemoveGrassABM : public ActiveBlockModifier
return s;
}
virtual float getTriggerInterval()
{ return 10.0; }
{ return 2.0; }
virtual u32 getTriggerChance()
{ return 1; }
{ return 20; }
virtual void trigger(ServerEnvironment *env, v3s16 p, MapNode n)
{
INodeDefManager *ndef = env->getGameDef()->ndef();
......@@ -152,9 +152,9 @@ class SpawnInCavesABM : public ActiveBlockModifier
return s;
}
virtual float getTriggerInterval()
{ return 10.0; }
{ return 2.0; }
virtual u32 getTriggerChance()
{ return 200; }
{ return 1000; }
virtual void trigger(ServerEnvironment *env, v3s16 p, MapNode n,
u32 active_object_count, u32 active_object_count_wider)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment