Skip to content
Snippets Groups Projects
Commit c1e12394 authored by dg's avatar dg
Browse files

tmp

git-svn-id: http://svn.net-core.org/repos/t-engine4@5728 51575b47-30f0-44d4-a5cc-537603b46e54
parent 7192a535
No related branches found
No related tags found
No related merge requests found
......@@ -268,6 +268,7 @@ function _M:listAddons(mod, ignore_compat)
add.teaa = teaa
add.natural_compatible = engine.version_string(add.version) == engine.version_string(mod.version)
add.version_txt = ("%d.%d.%d"):format(add.version[1], add.version[2], add.version[3])
if add.dlc and not profile:isDonator(add.dlc) then add.dlc = "no" end FIX ME
adds[#adds+1] = add
end
end
......
......@@ -735,3 +735,8 @@ function _M:newProfile(Login, Name, Password, Email)
print("[ONLINE PROFILE] profile id ", id)
self:performlogin(Login, Password)
end
function _M:isDonator(s)
s = s or 1
if not self.auth or not tonumber(self.auth.donated) or tonumber(self.auth.donated) <= s then return false else return true end
end
......@@ -1961,6 +1961,8 @@ function _M:countBirthUnlocks()
psionic_solipsist = true,
warrior_brawler = true,
adventurer = true,
}
for name, _ in pairs(list) do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment