The TribalHut method is implemented in a strange fashion.
It is implemented recursively to no real purpose.
The only call to the method that is non-recursive is to use the default parameter for a random result.
I suggest refactoring the method to remove the recursion. The switch (Common.Random.Next(0,4)) to go first and assign a local variable the desired result. The switch(result) to go second and use the local variable.
The
TribalHut
method is implemented in a strange fashion.It is implemented recursively to no real purpose.
The only call to the method that is non-recursive is to use the default parameter for a random result.
I suggest refactoring the method to remove the recursion. The
switch (Common.Random.Next(0,4))
to go first and assign a local variable the desired result. Theswitch(result)
to go second and use the local variable.