mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-11-17 02:58:33 +00:00
feat: locales
This commit is contained in:
1 parent
0bd76ed79f
commit
a431a49d8c
9 files changed
+425
-285
No files matched your search
+2
-2
@@ -66,7 +66,7 @@ local function createCharacterTable(info)
|
||||
function self.depositMoney(amount)
|
||||
local amount = tonumber(amount)
|
||||
if not amount or self.cash < amount or amount <= 0 then return end
|
||||
return self.deductMoney("cash", amount, "Deposit") and self.addMoney("bank", amount, "Deposit")
|
||||
return self.deductMoney("cash", amount, locale("deposit")) and self.addMoney("bank", amount, locale("deposit"))
|
||||
end
|
||||
|
||||
---@param amount number
|
||||
@@ -74,7 +74,7 @@ local function createCharacterTable(info)
|
||||
function self.withdrawMoney(amount)
|
||||
local amount = tonumber(amount)
|
||||
if not amount or self.bank < amount or amount <= 0 then return end
|
||||
return self.deductMoney("bank", amount, "Withdraw") and self.addMoney("cash", amount, "Withdraw")
|
||||
return self.deductMoney("bank", amount, locale("withdraw")) and self.addMoney("cash", amount, locale("withdraw"))
|
||||
end
|
||||
|
||||
---@param data string
|
||||
|
||||
Reference in new issue
Block a user