mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-12-25 18:37:11 +01:00
introduce changes from streamside fork
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* Tibia GIMUD Server - a free and open-source MMORPG server emulator
|
||||
* Copyright (C) 2017 Alejandro Mujica <alejandrodemujica@gmail.com>
|
||||
* Copyright (C) 2019 Sabrehaven and Mark Samman <mark.samman@gmail.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -220,12 +220,6 @@ class Creature : virtual public Thing
|
||||
virtual int32_t getMaxHealth() const {
|
||||
return healthMax;
|
||||
}
|
||||
uint32_t getMana() const {
|
||||
return mana;
|
||||
}
|
||||
virtual uint32_t getMaxMana() const {
|
||||
return 0;
|
||||
}
|
||||
|
||||
const Outfit_t getCurrentOutfit() const {
|
||||
return currentOutfit;
|
||||
@@ -320,11 +314,9 @@ class Creature : virtual public Thing
|
||||
}
|
||||
|
||||
virtual void changeHealth(int32_t healthChange, bool sendHealthChange = true);
|
||||
virtual void changeMana(int32_t manaChange);
|
||||
|
||||
void gainHealth(Creature* attacker, int32_t healthGain);
|
||||
virtual void drainHealth(Creature* attacker, int32_t damage);
|
||||
virtual void drainMana(Creature* attacker, int32_t manaLoss);
|
||||
|
||||
virtual bool challengeCreature(Creature*) {
|
||||
return false;
|
||||
@@ -494,7 +486,6 @@ class Creature : virtual public Thing
|
||||
uint32_t blockTicks = 0;
|
||||
uint32_t lastStepCost = 1;
|
||||
uint32_t baseSpeed = 70;
|
||||
uint32_t mana = 0;
|
||||
uint32_t latestKillEvent = 0;
|
||||
int32_t varSpeed = 0;
|
||||
int32_t health = 1000;
|
||||
|
||||
Reference in New Issue
Block a user