翻译成中文,保留源代码
-- new rewards will be generated automatically each season
Config.randomizedDailyRewards = {
enabled = false, -- use randomized rewards, the rewards table above will be ignored
rewards = {
{
chance = 30, -- chance to get this reward (1-100) --
label = "50.000$",
sort = "cash",
name = "",
amount = 50000,
img = "cash",
},
{
chance = 1,
label = "Combat Pistol",
sort = "weapon",
name = "weapon_combatpistol",
amount = 100, -- amount of ammo in this case --
img = "pistol",
},
{
chance = 40,
label = "5 Coins",
sort = "coins",
name = "",
amount = 5,
img = "coins",
},
{
chance = 20,
label = "Ferrari F8 Spider",
sort = "vehicle",
name = "t20",
amount = 1,
img = "car",
},
{
chance = 9,
label = "Bulletproof Vest",
description = "A bulletproof vest",
sort = "item",
name = "bulletproof",
amount = 1,
img = "box",
},
}
}
以下是代码的中文翻译,保留了源代码:
-- 每个赛季将自动生成新的奖励
Config.randomizedDailyRewards = {
enabled = false, -- 使用随机奖励,将忽略上面的奖励表
rewards = {
{
chance = 30, -- 获得此奖励的机会 (1-100) --
label = "50.000$",
sort = "cash",
name = "",
amount = 50000,
img = "cash",
},
{
chance = 1,
label = "战斗手枪",
sort = "weapon",
name = "weapon_combatpistol",
amount = 100, -- 在这种情况下的弹药数量 --
img = "pistol",
},
{
chance = 40,
label = "5 个金币",
sort = "coins",
name = "",
amount = 5,
img = "coins",
},
{
chance = 20,
label = "法拉利 F8 Spider",
sort = "vehicle",
name = "t20",
amount = 1,
img = "car",
},
{
chance = 9,
label = "防弹背心",
description = "一件防弹背心",
sort = "item",
name = "bulletproof",
amount = 1,
img = "box",
},
}
}
这段代码应该放在 `Config.lua` 或者相关的配置文件中,而不是 `server.lua` 或 `client.lua` 中。
页:
[1]