Skip to content

Commit 5fb4d60

Browse files
m00nyONENeBioNik
m00nyONE
authored andcommitted
remove test code
1 parent 604ecc3 commit 5fb4d60

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

modules/share/main.lua

-34
Original file line numberDiff line numberDiff line change
@@ -233,40 +233,6 @@ local function decodeData(rawData)
233233
return false, nil, nil, nil, nil, nil
234234
end
235235

236-
--local function encodeData_old(dmgType, ultType, ult, dmg, dps) -- 0-2 , 0-2, 0-500 , 0-9999 , 0-999
237-
-- local dmgTypeZone = 27*110+110 -- 3080
238-
-- local ultReduced = zo_ceil(ult / 5)
239-
-- local rawData = DATA_PREFIX
240-
-- local head = dmgType * dmgTypeZone -- 0-3080, 3080 - 6160, 6160-9240
241-
-- local head2 = ultType * 110 + ultReduced
242-
-- local compressedUlt = (head + head2) * 10000000
243-
-- rawData = rawData + zo_min(dps, 999) -- add DPS
244-
-- rawData = rawData + zo_min(dmg, 9999) * 1000-- add DMG
245-
-- rawData = rawData + compressedUlt -- add compressed ulti & ultiType & dmgType
246-
-- return rawData
247-
--end
248-
--
249-
--local function decodeData_old(rawData)
250-
-- local dmgTypeZone = 27*110+110 -- 3080
251-
-- local head = zo_floor(rawData / 10000000 % 10000)
252-
-- local dmgType = zo_floor(head / dmgTypeZone)
253-
-- local ultType = zo_floor((head % dmgTypeZone) / 110)
254-
-- if dmgType >= 0 and dmgType <= 2 and ultType >= 0 and ultType <= 27 then -- extra check to avoid conflicts
255-
-- local ult = zo_ceil(((head % dmgTypeZone) - ultType * 110) * 5)
256-
-- local dmg = zo_floor(rawData % 10000000 / 1000)
257-
-- local dps = zo_floor(rawData % 1000)
258-
-- return true, dmgType, ultType, ult, dmg, dps
259-
-- end
260-
--
261-
-- return false, nil, nil, nil, nil, nil
262-
--end
263-
264-
function HodorReflexes.test()
265-
local raw = encodeData(1, 2, 200, 9999, 999)
266-
local b, dmgType, ultType, ult, dmg, dps = decodeData(raw)
267-
d(b, dmgType, ultType, ult, dmg, dps)
268-
end
269-
270236
-- Check player ultimates for horn/colossus to share them only when they are slotted
271237
local function CheckSlottedUlts()
272238
colosSlotted = false

0 commit comments

Comments
 (0)