Cuberite
A lightweight, fast and extensible game server for Minecraft
Giant.cpp
Go to the documentation of this file.
1 
2 #include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
3 
4 #include "Giant.h"
5 
6 
7 
8 
9 
11  Super("Giant", mtGiant, "entity.zombie.hurt", "entity.zombie.death", "entity.zombie.ambient", 3.6f, 12)
12 {
13 
14 }
15 
16 
17 
18 
19 
20 void cGiant::GetDrops(cItems & a_Drops, cEntity * a_Killer)
21 {
22  AddRandomDropItem(a_Drops, 10, 50, E_ITEM_ROTTEN_FLESH);
23 }
24 
25 
26 
27 
@ E_ITEM_ROTTEN_FLESH
Definition: BlockType.h:412
@ mtGiant
Definition: MonsterTypes.h:32
Definition: Entity.h:76
This class bridges a vector of cItem for safe access via Lua.
Definition: Item.h:215
cGiant(void)
Definition: Giant.cpp:10
virtual void GetDrops(cItems &a_Drops, cEntity *a_Killer=nullptr) override
Returns the list of drops for this pawn when it is killed.
Definition: Giant.cpp:20
void AddRandomDropItem(cItems &a_Drops, unsigned int a_Min, unsigned int a_Max, short a_Item, short a_ItemHealth=0)
Adds a random number of a_Item between a_Min and a_Max to itemdrops a_Drops.
Definition: Monster.cpp:1518