Add more decimals to spotter coordinates

This commit is contained in:
2025-01-06 11:56:38 +01:00
parent bd8b3fa00f
commit 5e0f81ce53
4 changed files with 7 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
## Interface: 70300 ## Interface: 70300
## Title: Heimdall ## Title: Heimdall
## Version: 2.14.0 ## Version: 2.14.1
## Notes: Watches over areas and alerts when hostiles spotted ## Notes: Watches over areas and alerts when hostiles spotted
## Author: Cyka ## Author: Cyka
## SavedVariables: Heimdall_Data ## SavedVariables: Heimdall_Data

BIN
Heimdall.zip (Stored with Git LFS)

Binary file not shown.

View File

@@ -24,10 +24,10 @@ function shared.CombatAlerter.Init()
local msg = { local msg = {
channel = "CHANNEL", channel = "CHANNEL",
data = Heimdall_Data.config.combatAlerter.masterChannel, 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, source,
GetZoneText(), GetSubZoneText(), GetZoneText(), GetSubZoneText(),
x, y x * 100, y * 100
), ),
} }
table.insert(shared.messenger.queue, msg) table.insert(shared.messenger.queue, msg)

View File

@@ -84,7 +84,7 @@ function shared.Spotter.Init()
local x, y = GetPlayerMapPosition("player") local x, y = GetPlayerMapPosition("player")
local stinky = Heimdall_Data.config.stinkies[name] or false 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", hostile and "Hostile" or "Friendly",
name, name,
class, class,
@@ -94,7 +94,7 @@ function shared.Spotter.Init()
FormatHP(hp), FormatHP(hp),
FormatHP(maxHp), FormatHP(maxHp),
location, location,
x, y) x * 100, y * 100)
---@type Message ---@type Message
local msg = { local msg = {