mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-04 06:16:38 +00:00
Fixed an issue that would cause traps to not function correctly if skill is 0 in the database.
Added undetectable column, to allow content developers to make a trap undetectable and not able to be disarmed. Pets will no longer try to aggro traps its owner triggers. Traps will now use the radius column to determine disarm range, instead of using a hardcoded value which may not be appropriate in all cases. Decreased the scan range for traps to disarm. Fixed some typos, and removed some unused code.
This commit is contained in:
+1
-1
@@ -50,7 +50,6 @@ public:
|
||||
void SetHiddenTrigger(NPC* n) { hiddenTrigger = n; }
|
||||
void CreateHiddenTrigger();
|
||||
void DestroyHiddenTrigger() { hiddenTrigger = nullptr; }
|
||||
void SetTrapData();
|
||||
void UpdateTrap(bool respawn = true, bool repopnow = false);
|
||||
//Trap data, leave this unprotected
|
||||
Timer respawn_timer; //Respawn Time when Trap's been disarmed
|
||||
@@ -76,6 +75,7 @@ public:
|
||||
uint8 group;
|
||||
bool despawn_when_triggered;
|
||||
uint32 charid; //ID of character that triggered trap. This is cleared when the trap despawns are resets.
|
||||
bool undetectable;
|
||||
|
||||
std::string message;
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user