Slime sizes are 1, 2 or 4 and not 1, 2 or 3.
This commit is contained in:
parent
fba93aac2a
commit
509d3d3b62
@ -867,7 +867,7 @@ cMonster * cMonster::NewMonsterFromType(cMonster::eType a_MobType)
|
||||
}
|
||||
case mtSlime:
|
||||
{
|
||||
toReturn = new cSlime(Random.NextInt(2) + 1);
|
||||
toReturn = new cSlime(1 << Random.NextInt(3));
|
||||
break;
|
||||
}
|
||||
case mtSkeleton:
|
||||
|
@ -9,7 +9,6 @@
|
||||
|
||||
|
||||
|
||||
/// Creates a slime of the specified size; size is 1 .. 3, with 1 being the smallest
|
||||
cSlime::cSlime(int a_Size) :
|
||||
super("Slime",
|
||||
mtSlime,
|
||||
@ -36,7 +35,8 @@ void cSlime::GetDrops(cItems & a_Drops, cEntity * a_Killer)
|
||||
LootingLevel = a_Killer->GetEquippedWeapon().m_Enchantments.GetLevel(cEnchantments::enchLooting);
|
||||
}
|
||||
|
||||
if (GetSize() == 1)
|
||||
// Only slimes with the size 1 can drop slimeballs.
|
||||
if (m_Size == 1)
|
||||
{
|
||||
AddRandomDropItem(a_Drops, 0, 2 + LootingLevel, E_ITEM_SLIMEBALL);
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ class cSlime :
|
||||
typedef cAggressiveMonster super;
|
||||
|
||||
public:
|
||||
/** Creates a slime of the specified size; size is 1 .. 3, with 1 being the smallest */
|
||||
/** Creates a slime of the specified size; size can be 1, 2 or 4, with 1 is the smallest and 4 is the tallest. */
|
||||
cSlime(int a_Size);
|
||||
|
||||
CLASS_PROTODEF(cSlime);
|
||||
|
Loading…
Reference in New Issue
Block a user