diff options
author | TheJumper <maximilian.springer@web.de> | 2014-02-23 18:13:49 +0100 |
---|---|---|
committer | TheJumper <maximilian.springer@web.de> | 2014-02-23 18:13:49 +0100 |
commit | 1afcc255bfe7153dc397970e0ece41d6d48e63be (patch) | |
tree | a6c3ea18af891781c4a7e48528e635def25ba98e /src/Mobs/Monster.h | |
parent | Finally corrected the Enchantment constants. (diff) | |
download | cuberite-1afcc255bfe7153dc397970e0ece41d6d48e63be.tar cuberite-1afcc255bfe7153dc397970e0ece41d6d48e63be.tar.gz cuberite-1afcc255bfe7153dc397970e0ece41d6d48e63be.tar.bz2 cuberite-1afcc255bfe7153dc397970e0ece41d6d48e63be.tar.lz cuberite-1afcc255bfe7153dc397970e0ece41d6d48e63be.tar.xz cuberite-1afcc255bfe7153dc397970e0ece41d6d48e63be.tar.zst cuberite-1afcc255bfe7153dc397970e0ece41d6d48e63be.zip |
Diffstat (limited to 'src/Mobs/Monster.h')
-rw-r--r-- | src/Mobs/Monster.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Mobs/Monster.h b/src/Mobs/Monster.h index 6f7352b52..b75ac444f 100644 --- a/src/Mobs/Monster.h +++ b/src/Mobs/Monster.h @@ -119,6 +119,17 @@ public: void SetAttackDamage(int a_AttackDamage) { m_AttackDamage = a_AttackDamage; } void SetSightDistance(int a_SightDistance) { m_SightDistance = a_SightDistance; } + float GetDropChanceWeapon() { return m_DropChanceWeapon; }; + float GetDropChanceHelmet() { return m_DropChanceHelmet; }; + float GetDropChanceChestplate() { return m_DropChanceChestplate; }; + float GetDropChanceLeggings() { return m_DropChanceLeggings; }; + float GetDropChanceBoots() { return m_DropChanceBoots; }; + void SetDropChanceWeapon(float a_DropChanceWeapon) { m_DropChanceWeapon = a_DropChanceWeapon; }; + void SetDropChanceHelmet(float a_DropChanceHelmet) { m_DropChanceHelmet = a_DropChanceHelmet; }; + void SetDropChanceChestplate(float a_DropChanceChestplate) { m_DropChanceChestplate = a_DropChanceChestplate; }; + void SetDropChanceLeggings(float a_DropChanceLeggings) { m_DropChanceLeggings = a_DropChanceLeggings; }; + void SetDropChanceBoots(float a_DropChanceBoots) { m_DropChanceBoots = a_DropChanceBoots; }; + /// Sets whether the mob burns in daylight. Only evaluated at next burn-decision tick void SetBurnsInDaylight(bool a_BurnsInDaylight) { m_BurnsInDaylight = a_BurnsInDaylight; } @@ -221,6 +232,12 @@ protected: float m_AttackInterval; int m_SightDistance; + float m_DropChanceWeapon; + float m_DropChanceHelmet; + float m_DropChanceChestplate; + float m_DropChanceLeggings; + float m_DropChanceBoots; + void HandleDaylightBurning(cChunk & a_Chunk); bool m_BurnsInDaylight; @@ -236,6 +253,9 @@ protected: /** Adds armor that is equipped with the chance of 8,5% (Looting 3: 11,5%) to the drop*/ void AddRandomArmorDropItem(cItems & a_Drops, short a_LootingLevel); + /** Adds weapon that is equipped with the chance of 8,5% (Looting 3: 11,5%) to the drop*/ + void AddRandomWeaponDropItem(cItems & a_Drops, short a_LootingLevel); + } ; // tolua_export |