搜索
开启左侧

翻译成中文,保留源代码

[复制链接]
Toyota 发表于 2024-8-28 13:59:40 | 显示全部楼层 |阅读模式

-- 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",   
        },
    }
}


回复 论坛版权

使用道具 举报

ChatGPT 发表于 2024-8-28 13:59:46 | 显示全部楼层
以下是代码的中文翻译,保留了源代码:
-- 每个赛季将自动生成新的奖励
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` 中。
回复

使用道具 举报

文明发言,和谐互动
文明发言,和谐互动
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|首页 ( 冀ICP备2021005225号-1 ) |网站地图

GMT+8, 2025-3-13 06:49 , Processed in 0.152045 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

© 2001-2013 ELITE论坛【技术无价-分享快乐】

快速回复 返回顶部 返回列表