Added more logging
This commit is contained in:
@@ -1134,6 +1134,13 @@ function sepgp:addonComms(prefix,message,channel,sender)
|
||||
elseif what == "GP" then
|
||||
msg = string.format(L["You have gained %d GP."],amount)
|
||||
end
|
||||
elseif admin() and what == "GP" and who and amount then
|
||||
-- Log GP changes for OTHER players (so DLL can track corrections)
|
||||
local old_gp = (new_gp or 0) - amount
|
||||
msg = string.format(L["Awarding %d GP to %s. (Previous: %d, New: %d)"],amount,who,old_gp,math.max(sepgp.VARS.basegp,new_gp or 0))
|
||||
elseif admin() and what == "EP" and who and amount and amount < 0 then
|
||||
-- Log EP penalties for OTHER players
|
||||
msg = string.format(L["%s EP Penalty to %s."],amount,who)
|
||||
elseif who == "ALL" and what == "DECAY" then
|
||||
msg = string.format(L["%s%% decay to EP and GP."],amount)
|
||||
elseif who == "RAID" and what == "AWARD" then
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
## X-Website: https://github.com/cinecom/shootyepgp/
|
||||
## X-Category: Guild
|
||||
## X-Credits: shooty, Qcat(zhCN)
|
||||
## Version: 10.19.5 <ERROR>
|
||||
## Version: 10.19.6 <ERROR>
|
||||
## X-Alpha:
|
||||
## OptionalDeps: Ace2
|
||||
## SavedVariables: sepgp_saychannel, sepgp_groupbyclass, sepgp_groupbyarmor, sepgp_groupbyrole, sepgp_raidonly, sepgp_dbver, sepgp_debug, sepgp_fubar, sepgp_sound, RaidStrikeDB, RaidStrikeResetTime, BenchTrackerDB
|
||||
|
||||
Reference in New Issue
Block a user