1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-31 15:35:21 +01:00

Add peaceful / not peaceful distinction in mobs and the only_peaceful_mobs setting

This commit is contained in:
Perttu Ahola
2011-10-16 11:52:33 +03:00
parent a17abae128
commit 414c614893
6 changed files with 18 additions and 0 deletions

View File

@@ -97,6 +97,7 @@ public:
std::string getStaticData();
InventoryItem* createPickedUpItem(){return NULL;}
u16 punch(const std::string &toolname, v3f dir);
bool isPeaceful(){return false;}
private:
void doDamage(u16 d);
@@ -157,6 +158,7 @@ public:
InventoryItem* createPickedUpItem(){return NULL;}
u16 punch(const std::string &toolname, v3f dir,
const std::string &playername);
bool isPeaceful();
private:
void sendPosition();
void setPropertyDefaults();