Big Magma Cube can now spawn
Following the same method as the Slime, Magma Cube can now spawn with the size of 1, 2 or 4.
This commit is contained in:
parent
63af47832d
commit
9f6192687f
@ -26,7 +26,7 @@ public:
|
||||
|
||||
protected:
|
||||
|
||||
/// Size of the MagmaCube, 1 .. 3, with 1 being the smallest
|
||||
/// Size of the MagmaCube, 1, 2 and 4, with 1 being the smallest
|
||||
int m_Size;
|
||||
} ;
|
||||
|
||||
|
@ -886,7 +886,7 @@ cMonster * cMonster::NewMonsterFromType(eMonsterType a_MobType)
|
||||
{
|
||||
case mtMagmaCube:
|
||||
{
|
||||
toReturn = new cMagmaCube(Random.NextInt(2) + 1);
|
||||
toReturn = new cMagmaCube(1 << Random.NextInt(3)); // Size 1, 2 or 4
|
||||
break;
|
||||
}
|
||||
case mtSlime:
|
||||
|
Loading…
Reference in New Issue
Block a user