Skip to content

Commit 91b1250

Browse files
committed
Battle Rage prompt update
Allows for battlerage prompt to be compatable with other hunting systems. Players have commented that they wish to use their own hunting or not use any hunting systems at all. So this fix should address their need for a battlerage prompt without needing a hunting system.
1 parent a0c73dc commit 91b1250

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

TReX_serverside.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,6 +1125,18 @@ function TReX.serverside.myShin()
11251125
end
11261126
end
11271127

1128+
1129+
function TReX.serverside.myRage()
1130+
if gmcp.Char.Vitals then
1131+
for k, v in pairs(gmcp.Char.Vitals.charstats) do
1132+
if string.starts(v, "Rage") then
1133+
trex_rage = tonumber(string.match(v,"Rage: (%d+)"))
1134+
return trex_rage
1135+
end
1136+
end
1137+
end
1138+
end
1139+
11281140
-- affliction table list echo
11291141
t.serverside.gmcpAffShow=function() -- this is your aff display
11301142

TReX_stats.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ TReX.stats.prompt_options={
1717
willpower = function () return TReX.stats.willpower_color_percentage(math.floor(TReX.stats.w*100/TReX.stats.maxw))..tostring(TReX.stats.w) end,
1818
endurance = function () return TReX.stats.endurance_color_percentage(math.floor(TReX.stats.e*100/TReX.stats.maxe))..tostring(TReX.stats.e) end,
1919
timestamp = function () timestamp = tostring(getTime(true,"hh:mm:ss:zzz")) return("<dim_grey>"..timestamp) end,
20-
rage = function () if not TReX.hunting.rage then TReX.hunting.rage = 0 end return("<dim_grey>(<red>R<white>: "..TReX.hunting.rage.."<dim_grey>)<white>") end,
20+
--rage = function () if not TReX.hunting.rage then TReX.hunting.rage = 0 end return("<dim_grey>(<red>R<white>: "..TReX.hunting.rage.."<dim_grey>)<white>") end,
21+
rage = function () return("<dim_grey>(<red>R<white>: "..TReX.serverside.myRage() .."<dim_grey>)<white>") end,
2122
karma = function () if TReX.s.class=="Occultist" then return "<white>("..TReX.serverside.karma_check()..")%<green> " else return "" end end,
2223
sunlight = function () if table.index_of({"Druid","Sylvan"}, TReX.s.class) then if TReX.stats.sunlight >= 1 then return "<white>("..TReX.stats.sunlight..")%<green> " else return "" end else return "" end end,
2324
afftracker = function ()

0 commit comments

Comments
 (0)