Skip to content

Commit 385b7ee

Browse files
authored
Apply requested fixes
1 parent c932ea3 commit 385b7ee

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

source/world/entity/Monster.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Monster::Monster(Level* pLevel) : PathfinderMob(pLevel)
44
{
55
m_health = 20;
6+
m_attackDamage = 2;
67
}
78

89
void Monster::aiStep()
@@ -82,4 +83,6 @@ bool Monster::canSpawn()
8283
{
8384
return PathfinderMob::canSpawn();
8485
}
86+
87+
return false;
8588
}

source/world/entity/Monster.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ class Monster : public PathfinderMob
1515
bool canSpawn() override;
1616

1717
protected:
18-
int m_attackDamage = 2;
18+
int m_attackDamage;
1919
};

0 commit comments

Comments
 (0)