feature/effects #37

Manually merged
neckrat merged 64 commits from feature/effects into main 2026-05-06 10:19:49 +03:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 77f5a2abdc - Show all commits

View File

@ -168,7 +168,7 @@ local function new(data)
--- @param other Effect
--- @return boolean
function newEffect:__eq(other)
return utils.deepComprasion(self, other)
return utils.deepComparison(self, other)
end
return newEffect

View File

@ -78,10 +78,10 @@ end
--- @param t1 table
--- @param t2 table
--- @return boolean
function P.deepComprasion(t1, t2)
function P.deepComparison(t1, t2)
for k, v in pairs(t1) do
if type(v) == "table" and type(t2[k]) == "table" then
return P.deepComprasion(v, t2[k])
return P.deepComparison(v, t2[k])
end
if t2[k] ~= v then
return false