the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2#include "BossMobPart.h"
3#include "BossMob.h"
4
5
6
7BossMob::BossMob(Level *level) : Mob( level )
8{
9
10 maxHealth = 100;
11
12 // 4J Stu - This function call had to be moved here from the Entity ctor to ensure that the derived version of the function is called
13 health = getMaxHealth();
14}
15
16int BossMob::getMaxHealth()
17{
18 return maxHealth;
19}
20
21bool BossMob::hurt(shared_ptr<BossMobPart> bossMobPart, DamageSource *source, int damage)
22{
23 return hurt(source, damage);
24}
25
26bool BossMob::hurt(DamageSource *source, int damage)
27{
28 return false;
29}
30
31bool BossMob::reallyHurt(DamageSource *source, int damage)
32{
33
34 return Mob::hurt(source, damage);
35
36}