Add more decimals to spotter coordinates
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
## Interface: 70300
|
||||
## Title: Heimdall
|
||||
## Version: 2.14.0
|
||||
## Version: 2.14.1
|
||||
## Notes: Watches over areas and alerts when hostiles spotted
|
||||
## Author: Cyka
|
||||
## SavedVariables: Heimdall_Data
|
||||
|
||||
BIN
Heimdall.zip
(Stored with Git LFS)
BIN
Heimdall.zip
(Stored with Git LFS)
Binary file not shown.
@@ -24,10 +24,10 @@ function shared.CombatAlerter.Init()
|
||||
local msg = {
|
||||
channel = "CHANNEL",
|
||||
data = Heimdall_Data.config.combatAlerter.masterChannel,
|
||||
message = string.format("%s is attacking me in %s(%s) at %.2f,%.2f ",
|
||||
message = string.format("%s is attacking me in %s(%s) at %2.2f,%2.2f ",
|
||||
source,
|
||||
GetZoneText(), GetSubZoneText(),
|
||||
x, y
|
||||
x * 100, y * 100
|
||||
),
|
||||
}
|
||||
table.insert(shared.messenger.queue, msg)
|
||||
|
||||
@@ -84,7 +84,7 @@ function shared.Spotter.Init()
|
||||
|
||||
local x, y = GetPlayerMapPosition("player")
|
||||
local stinky = Heimdall_Data.config.stinkies[name] or false
|
||||
local text = string.format("I see (%s) %s/%s %s of race %s (%s) with health %s/%s at %s (%.2f, %.2f)",
|
||||
local text = string.format("I see (%s) %s/%s %s of race %s (%s) with health %s/%s at %s (%2.2f, %2.2f)",
|
||||
hostile and "Hostile" or "Friendly",
|
||||
name,
|
||||
class,
|
||||
@@ -94,7 +94,7 @@ function shared.Spotter.Init()
|
||||
FormatHP(hp),
|
||||
FormatHP(maxHp),
|
||||
location,
|
||||
x, y)
|
||||
x * 100, y * 100)
|
||||
|
||||
---@type Message
|
||||
local msg = {
|
||||
|
||||
Reference in New Issue
Block a user