Warn when some officer has broken a GP note
This commit is contained in:
+11
-5
@@ -352,11 +352,17 @@ function sepgp:decay_epgp() -- decays entire roster's ep and gp
|
||||
ep = tonumber(ep)
|
||||
gp = tonumber(gp)
|
||||
if ep == nil then
|
||||
else
|
||||
ep = math.max(0,sepgp:num_round(ep*sepgp_decay))
|
||||
GuildRosterSetPublicNote(i,ep)
|
||||
gp = math.max(shooty_basegp,sepgp:num_round(gp*sepgp_decay))
|
||||
GuildRosterSetOfficerNote(i,gp)
|
||||
else
|
||||
if gp == nil then
|
||||
local msg = string.format("%s\'s officernote is broken:%q",name,tostring(gp))
|
||||
self:debugPrint(msg)
|
||||
self:adminSay(msg)
|
||||
else
|
||||
ep = math.max(0,sepgp:num_round(ep*sepgp_decay))
|
||||
GuildRosterSetPublicNote(i,ep)
|
||||
gp = math.max(shooty_basegp,sepgp:num_round(gp*sepgp_decay))
|
||||
GuildRosterSetOfficerNote(i,gp)
|
||||
end
|
||||
end
|
||||
end
|
||||
local msg = string.format("All EP and GP decayed by %d%%",(1-sepgp_decay)*100)
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
## Notes: Effort Points/Gear Points Loot System
|
||||
## Author: Roadblock
|
||||
## X-Credits: shooty for original version
|
||||
## Version: 2.31
|
||||
## Version: 2.32
|
||||
## OptionalDeps: Ace2
|
||||
## SavedVariables: sepgp_saychannel,sepgp_groupbyclass,sepgp_raidonly,sepgp_decay,sepgp_reservechannel,sepgp_main,sepgp_progress,sepgp_discount
|
||||
## SavedVariablesPerCharacter: sepgp_log
|
||||
|
||||
Reference in New Issue
Block a user