diff --git a/LuaRules/Configs/award_names.lua b/LuaRules/Configs/award_names.lua index 0b6cd8eecf..ce89fbe0d6 100644 --- a/LuaRules/Configs/award_names.lua +++ b/LuaRules/Configs/award_names.lua @@ -1,28 +1,35 @@ return { - pwn = 'Complete Annihilation', - navy = 'Fleet Admiral', - air = 'Airforce General', - nux = 'Apocalyptic Achievement Award', - shell = 'Turtle Shell', - fire = 'Master Grill-Chef', - emp = 'EMP Wizard', - slow = 'Traffic Cop', - disarm = 'Peacemaker', - t3 = 'Experimental Engineer', - cap = 'Master of Puppets', - share = 'Share Bear', - terra = 'Legendary Landscaper', - reclaim = 'Spoils of War', - rezz = 'Vile Necromancer', - vet = 'Decorated Veteran', - ouch = 'Big Purple Heart', - kam = 'Blaze of Glory', - comm = 'Master and Commander', - mex = 'Mineral Prospector', - mexkill = 'Loot & Pillage', - rage = 'Rage Inducer', - head = 'Head Hunter', - dragon = 'Dragon Slayer', - heart = 'Queen Heart Breaker', - sweeper = 'Land Sweeper', + pwn = 'Complete Annihilation', + navy = 'Fleet Admiral', + air = 'Airforce General', + nux = 'Apocalyptic Achievement Award', + shell = 'Turtle Shell', + fire = 'Master Grill-Chef', + emp = 'EMP Wizard', + slow = 'Traffic Cop', + disarm = 'Peacemaker', + t3 = 'Experimental Engineer', + cap = 'Master of Puppets', + share = 'Share Bear', + terra = 'Legendary Landscaper', + reclaim = 'Spoils of War', + rezz = 'Vile Necromancer', + vet = 'Decorated Veteran', + ouch = 'Big Purple Heart', + kam = 'Blaze of Glory', + comm = 'Master and Commander', + mex = 'Mineral Prospector', + mexkill = 'Loot & Pillage', + rage = 'Rage Inducer', + head = 'Head Hunter', + dragon = 'Dragon Slayer', + heart = 'Queen Heart Breaker', + sweeper = 'Land Sweeper', + repair = 'Friendly Mechanic', + assistant = 'Subsidization Strategy', + economist = 'Economic Powerhouse', + shield = 'Shieldbearer', + drone = 'Drone Director', + missile = 'Missile Marauder', + attrition = 'Attrition Ace', } diff --git a/LuaRules/Gadgets/awards.lua b/LuaRules/Gadgets/awards.lua index e9673b00fd..205d21be95 100644 --- a/LuaRules/Gadgets/awards.lua +++ b/LuaRules/Gadgets/awards.lua @@ -27,12 +27,14 @@ if (gadgetHandler:IsSyncedCode()) then ------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- local spAreTeamsAllied = Spring.AreTeamsAllied +local spGetTeamRulesParam = Spring.GetTeamRulesParam local spGetUnitHealth = Spring.GetUnitHealth local spGetAllUnits = Spring.GetAllUnits local spGetUnitTeam = Spring.GetUnitTeam local spGetUnitDefID = Spring.GetUnitDefID local spGetUnitExperience = Spring.GetUnitExperience local spGetTeamResources = Spring.GetTeamResources +local spGetGameRulesParam = Spring.GetGameRulesParam local GetUnitCost = Spring.Utilities.GetUnitCost local GetUnitValue = Spring.Utilities.GetUnitValue @@ -50,6 +52,8 @@ local cappedComs = {} local awardData = {} +local empFactor = veryEasyFactor*4 +local reclaimFactor = veryEasyFactor*0.2 -- wrecks aren't guaranteed to leave more than 0.2 of value local minReclaimRatio = 0.15 @@ -65,6 +69,9 @@ local awardAbsolutes = { sweeper = 20, heart = 1*10^9, -- avoid higher values, math.floor starts returning INT_MIN at some point vet = 3, + shield = 10000, + missile = 1000, + attrition = 1, } local basicEasyFactor = 0.5 @@ -121,7 +128,42 @@ local kamikaze = { chicken_dodo=1, } +local missiles = { + [UnitDefNames["napalmmissile"].id] = 1, + [UnitDefNames["tacnuke"].id] = 1, + [UnitDefNames["empmissile"].id] = 1, + [UnitDefNames["subtacmissile"].id] = 1, + [UnitDefNames["seismic"].id] = 1, +} + + local flamerWeaponDefs = {} +local PUBLIC = {public = true} +local bestCostByTeam = {} +------------------- +-- Resource tracking + + +local allyTeamInfo = {} +--local resourceInfo = {count = 0, data = {}} + +do + local allyTeamList = Spring.GetAllyTeamList() + for i=1,#allyTeamList do + local allyTeamID = allyTeamList[i] + allyTeamInfo[allyTeamID] = { + team = {}, + teams = 0, + } + + local teamList = Spring.GetTeamList(allyTeamID) + for j=1,#teamList do + local teamID = teamList[j] + allyTeamInfo[allyTeamID].teams = allyTeamInfo[allyTeamID].teams + 1 + allyTeamInfo[allyTeamID].team[allyTeamInfo[allyTeamID].teams] = teamID + end + end +end ------------------------------------------------ -- functions @@ -153,9 +195,10 @@ local function getMeanDamageExcept(excludeTeam) return (count>0) and (mean/count) or 0 end -local function getMaxVal(valList) +local function getMaxVal(valList, award) local winTeam, maxVal = false,0 for team,val in pairs(valList) do + Spring.SetGameRulesParam(team .. "_" .. award .. "_score", val, PUBLIC) if val and val > maxVal then winTeam = team maxVal = val @@ -195,6 +238,94 @@ local function CopyTable(original) -- Warning: circular table references lead to return copy end +local function UpdateResourceStats(t) -- this never gets called apparently. + + resourceInfo.count = resourceInfo.count + 1 + resourceInfo.data[resourceInfo.count] = {allyRes = {}, teamRes = {}, t = t} + + for allyTeamID, allyTeamData in pairs(allyTeamInfo) do + local teams = allyTeamData.teams + local team = allyTeamData.team + + local allyOverdriveResources = GG.Overdrive_allyTeamResources[allyTeamID] or {} + resourceInfo.data[resourceInfo.count].allyRes[allyTeamID] = { + metal_income_total = 0, + metal_income_base = allyOverdriveResources.baseMetal or 0, + metal_income_overdrive = allyOverdriveResources.overdriveMetal or 0, + metal_income_other = 0, + + metal_spend_total = 0, + metal_spend_construction = 0, + metal_spend_waste = 0, + + metal_storage_current = 0, + metal_storage_free = 0, + + energy_income_total = allyOverdriveResources.baseEnergy or 0, + + energy_spend_total = 0, + energy_spend_overdrive = allyOverdriveResources.overdriveEnergy or 0, + energy_spend_construction = 0, + energy_spend_other = 0, + energy_spend_waste = allyOverdriveResources.wasteEnergy or 0, + + energy_storage_current = 0, + } + + local aRes = resourceInfo.data[resourceInfo.count].allyRes[allyTeamID] + + for i = 1, teams do + local teamID = team[i] + local mCurr, mStor, mPull, mInco, mExpe, mShar, mSent, mReci = spGetTeamResources(teamID, "metal") + aRes.metal_spend_construction = aRes.metal_spend_construction + mExpe + aRes.metal_income_total = aRes.metal_income_total + mInco + aRes.metal_spend_total = aRes.metal_spend_total + mExpe + aRes.metal_storage_free = aRes.metal_storage_free + mStor - mCurr + aRes.metal_storage_current = aRes.metal_storage_current + mCurr + + local eCurr, eStor, ePull, eInco, eExpe, eShar, eSent, eReci = spGetTeamResources(teamID, "energy") + aRes.energy_spend_total = aRes.energy_spend_total + eExpe + aRes.energy_storage_current = aRes.energy_storage_current + eCurr + + local teamOverdriveResources = GG.Overdrive_teamResources[teamID] or {} + + resourceInfo.data[resourceInfo.count].teamRes[teamID] = { + metal_income_total = mInco + mReci, + metal_income_base = teamOverdriveResources.baseMetal or 0, + metal_income_overdrive = teamOverdriveResources.overdriveMetal or 0, + metal_income_other = 0, + + metal_spend_total = mExpe + mSent, + metal_spend_construction = mExpe, + + metal_share_net = mReci - mSent, + + metal_storage_current = mCurr, + + energy_income_total = eInco, + + energy_spend_total = eExpe, + energy_spend_construction = mExpe, + energy_spend_other = 0, + + energy_share_net = teamOverdriveResources.overdriveEnergyChange or 0, + + energy_storage_current = eCurr, + } + local tRes = resourceInfo.data[resourceInfo.count].teamRes[teamID] + + tRes.metal_income_other = tRes.metal_income_total - tRes.metal_income_base - tRes.metal_income_overdrive - mReci + tRes.energy_spend_other = tRes.energy_spend_total - tRes.energy_spend_construction + math.min(0, tRes.energy_share_net) + end + + aRes.metal_income_other = aRes.metal_income_total - aRes.metal_income_base - aRes.metal_income_overdrive + aRes.metal_spend_waste = math.min(aRes.metal_storage_free - aRes.metal_income_total - aRes.metal_spend_total,0) + + aRes.energy_spend_construction = aRes.metal_spend_construction + aRes.energy_spend_other = aRes.energy_spend_total - (aRes.energy_spend_overdrive + aRes.energy_spend_construction + aRes.energy_spend_waste) + end +end + local function AddAwardPoints( awardType, teamID, amount ) if (teamID and (teamID ~= gaiaTeamID)) then awardData[awardType][teamID] = awardData[awardType][teamID] + (amount or 0) @@ -202,35 +333,30 @@ local function AddAwardPoints( awardType, teamID, amount ) end local function ProcessAwardData() - for awardType, data in pairs(awardData) do local winningTeam local maxVal local easyFactor = awardEasyFactors[awardType] or 1 local absolute = awardAbsolutes[awardType] local message - if awardType == 'vet' then maxVal = expUnitExp winningTeam = expUnitTeam else - winningTeam, maxVal = getMaxVal(data) - + winningTeam, maxVal = getMaxVal(data, awardType) end - if winningTeam then - local compare if absolute then compare = absolute - else compare = getMeanDamageExcept(winningTeam) * easyFactor end - --if reclaimTeam and maxReclaim > getMeanMetalIncome() * minReclaimRatio then if maxVal > compare then - maxVal = floor(maxVal) + if awardType ~= 'attrition' and awardType ~= 'vet' then -- do not floor the attrition award, it has its own formatting. This just makes every award 100%, which is not what we want. + maxVal = floor(maxVal) + end local maxValWrite = comma_value(maxVal) if awardType == 'cap' then @@ -262,15 +388,29 @@ local function ProcessAwardData() elseif awardType == 'dragon' then message = maxVal .. ' White Dragons annihilated' elseif awardType == 'heart' then - local maxQueenKillDamage = maxVal - absolute --remove the queen kill signature: +1000000000 from the total damage - message = 'Damage: '.. comma_value(maxQueenKillDamage) + message = 'Damage: '.. comma_value(maxVal) elseif awardType == 'sweeper' then message = maxVal .. ' Nests wiped out' - elseif awardType == 'vet' then local vetName = UnitDefs[expUnitDefID] and UnitDefs[expUnitDefID].humanName + Spring.SetGameRulesParam("vet_unitdef", UnitDefs[expUnitDefID].name, public) local expUnitExpRounded = floor(expUnitExp * 100) message = vetName ..', '.. expUnitExpRounded .. "% cost made" + elseif awardType == 'repair' then + message = maxValWrite .. ' allied value repaired' + elseif awardType == 'assistant' then + message = maxValWrite .. ' metal used for assisting allies' + elseif awardType == 'economist' then + message = maxValWrite .. ' metal overdriven' + elseif awardType == 'drone' then + message = 'Damaged Value : ' .. maxValWrite + elseif awardType == 'shield' then + message = 'Damage shielded: ' .. maxValWrite + elseif awardType == 'missile' then + message = 'Damaged Value : ' .. maxValWrite + elseif awardType == 'attrition' then + --Spring.Echo("Attrition rate: " .. maxVal .. "\"" .. comma_value(string.format("%.2f%%", maxVal * 100)) .. "\"") + message = 'Attrition rate: ' .. comma_value(string.format("%.2f%%", maxVal * 100)) else message = 'Damaged value: '.. maxValWrite end @@ -278,6 +418,7 @@ local function ProcessAwardData() end --if winningTeam if message then awardAward(winningTeam, awardType, message) + Spring.SetGameRulesParam(awardType .. "_rawscore", maxVal, PUBLIC) end end @@ -286,11 +427,28 @@ end ------------------- -- Callins -function gadget:Initialize() +function gadget:AllowUnitBuildStep(builderID, builderTeam, unitID, unitDefID, part) + if part < 0 or unitID == nil then + return true + end + local hp, maxhp, _, _, bp = spGetUnitHealth(unitID) + local otherTeam = spGetUnitTeam(unitID) + if otherTeam == builderTeam then + return true + end + if bp < 1.0 then + AddAwardPoints('assistant', builderTeam, part * UnitDefs[unitDefID].metalCost) + else + local _, maxHealth = Spring.GetUnitHealth(unitID) + local healthMetalRatio = maxHealth / UnitDefs[unitDefID].metalCost + AddAwardPoints('repair', builderTeam, part * healthMetalRatio) + end + return true +end - GG.Awards = GG.Awards or {} - GG.Awards.AddAwardPoints = AddAwardPoints - +function gadget:Initialize() + --_G.resourceInfo = resourceInfo + GG.Awards = {AddAwardPoints = AddAwardPoints} local tempTeamList = Spring.GetTeamList() for i=1, #tempTeamList do local team = tempTeamList[i] @@ -310,24 +468,22 @@ function gadget:Initialize() for awardType, _ in pairs(awardDescs) do awardData[awardType][team] = 0 end - end - - local shipSMClass = Game.speedModClasses.Ship - for i = 1, #UnitDefs do - local ud = UnitDefs[i] - --[[ NB: ships that extend legs and walk onto land, like - the SupCom Cybran Siren or RA3 Soviet Stingray, are - technically hovercraft in Spring so would need some - extra handling AFAIK. No such ship in vanilla ZK. ]] - if (ud.moveDef.smClass == shipSMClass) then - boats[i] = true - end + end - if ud.customParams.dynamic_comm then - comms[i] = true + local boatFacs = {'factoryship', 'striderhub'} + for _, boatFac in pairs(boatFacs) do -- Fixes the ships with legs problem, future proofing. + local udBoatFac = UnitDefNames[boatFac] + if udBoatFac then + for _, boatDefID in pairs(udBoatFac.buildOptions) do + if (UnitDefs[boatDefID].minWaterDepth > 0) then -- because striderhub + boats[boatDefID] = true + end + end end end + -- Gull is only available to carriers, therefore it counts towards naval awards. + boats[UnitDefNames["dronecarry"].id] = true for i=1,#WeaponDefs do local wcp = WeaponDefs[i].customParams or {} @@ -335,6 +491,12 @@ function gadget:Initialize() flamerWeaponDefs[i] = true end end + + for i=1,#UnitDefs do + if(UnitDefs[i].customParams.dynamic_comm) then comms[i] = true + end + end + end --Initialize function gadget:UnitTaken(unitID, unitDefID, oldTeam, newTeam) @@ -372,7 +534,13 @@ local roostDefID = UnitDefNames.roost .id function gadget:UnitDestroyed(unitID, unitDefID, unitTeam, _, _, killerTeam) local experience = spGetUnitExperience(unitID) - if experience > expUnitExp and (experience*UnitDefs[unitDefID].metalCost > 1000) then + local bestTeamCost = bestCostByTeam[unitTeam] or 0 + if experience > bestTeamCost then -- track each teams veterancy award. This way we can translate via luaui. + Spring.SetGameRulesParam(unitTeam .. "_vet_score", experience, PUBLIC) + Spring.SetGameRulesParam(unitTeam .. "_vet_unit", UnitDefs[unitDefID].name, PUBLIC) + bestCostByTeam[unitTeam] = experience + end + if experience > expUnitExp and (experience*UnitDefs[unitDefID].metalCost > 1000) and not (UnitDefs[unitDefID].customParams.dontcount or UnitDefs[unitDefID].metalCost == 0) then expUnitExp = experience expUnitTeam = unitTeam expUnitDefID = unitDefID @@ -424,10 +592,9 @@ function gadget:UnitDamaged(unitID, unitDefID, unitTeam, damage, paralyzer, weap or (attackerTeam == unitTeam) or (attackerTeam == gaiaTeamID) then return end - local costdamage = (damage / maxHP) * GetUnitCost(unitID, unitDefID) - if not spAreTeamsAllied(attackerTeam, unitTeam) then + local isMissile = missiles[attackerDefID] ~= nil if paralyzer then AddAwardPoints( 'emp', attackerTeam, costdamage ) elseif attackerDefID then @@ -439,31 +606,27 @@ function gadget:UnitDamaged(unitID, unitDefID, unitTeam, damage, paralyzer, weap if (flamerWeaponDefs[weaponID]) then AddAwardPoints( 'fire', attackerTeam, costdamage ) end - + if isMissile then + AddAwardPoints('missile', attackerTeam, costdamage) + end -- Static Weapons if (not ad.canMove) then - -- bignukes, zenith, starlight - if staticO_big[ad.name] then + if staticO_big[ad.name] then -- not lrpc, tacnuke, emp missile AddAwardPoints( 'nux', attackerTeam, costdamage ) - - -- not lrpc, tacnuke, emp missile - elseif not staticO_small[ad.name] then + elseif not staticO_small[ad.name] and not isMissile then -- defenses that aren't missiles. AddAwardPoints( 'shell', attackerTeam, costdamage ) end - elseif kamikaze[ad.name] then AddAwardPoints( 'kam', attackerTeam, costdamage ) - elseif ad.canFly and not (ad.customParams.dontcount or ad.customParams.is_drone) then AddAwardPoints( 'air', attackerTeam, costdamage ) - elseif boats[attackerDefID] then AddAwardPoints( 'navy', attackerTeam, costdamage ) - elseif comms[attackerDefID] then AddAwardPoints( 'comm', attackerTeam, costdamage ) - + elseif ad.customParams.is_drone then + AddAwardPoints('drone', attackerTeam, costdamage ) end end end @@ -475,7 +638,7 @@ function gadget:UnitFinished(unitID, unitDefID, teamID) end end -function gadget:GameOver() +function gadget:GameOver(winningAllys) gameOver = true local units = spGetAllUnits() @@ -485,7 +648,6 @@ function gadget:GameOver() local unitDefID = spGetUnitDefID(unitID) gadget:UnitDestroyed(unitID, unitDefID, teamID) end - -- read externally tracked values local teams = Spring.GetTeamList() for i = 1, #teams do @@ -495,7 +657,6 @@ function gadget:GameOver() AddAwardPoints('pwn', team, Spring.Utilities.GetHiddenTeamRulesParam(team, "stats_history_damage_dealt_current") or 0) end end - ProcessAwardData() _G.awardList = awardList diff --git a/LuaRules/Gadgets/endgame_graphs.lua b/LuaRules/Gadgets/endgame_graphs.lua index 9173078f18..2bf0ba1ba1 100644 --- a/LuaRules/Gadgets/endgame_graphs.lua +++ b/LuaRules/Gadgets/endgame_graphs.lua @@ -1,4 +1,3 @@ - if not gadgetHandler:IsSyncedCode() then return end @@ -18,6 +17,7 @@ end local unitCategoryDefs = VFS.Include("LuaRules/Configs/unit_category.lua") local teamList = Spring.GetTeamList() +local gaiaTeamID = Spring.GetGaiaTeamID() local allyTeamByTeam local spAreTeamsAllied = Spring.AreTeamsAllied @@ -25,6 +25,7 @@ local spGetUnitHealth = Spring.GetUnitHealth local spGetTeamResources = Spring.GetTeamResources local spGetTeamRulesParam = Spring.GetTeamRulesParam local spSetTeamRulesParam = Spring.SetTeamRulesParam +local spGetUnitRulesParam = Spring.GetUnitRulesParam local GetUnitCost = Spring.Utilities.GetUnitCost @@ -51,6 +52,8 @@ local damageDealtByTeamNonhax = {} local unitValueKilledByTeamHax = {} local unitValueKilledByTeamNonhax = {} +local unitAttritionByTeamHax = {} +local unitAttritionByTeamNonhax = {} local ALLIED_VISIBLE = {allied = true} @@ -181,7 +184,7 @@ function gadget:UnitFinished(unitID, unitDefID, teamID) end function gadget:UnitReverseBuilt(unitID, unitDefID, teamID) - if dontCountUnits[unitDefID] then + if dontCountUnits[unitDefID] or spGetUnitRulesParam(unitID, "dangerous") then return end @@ -217,6 +220,7 @@ function gadget:UnitDestroyed(unitID, unitDefID, teamID, attackerID, attackerDef cost = nanoframeCosts[index] local lastUnitID = nanoframes[nanoframeCount] + nanoframesByID[unitID] = nil nanoframesByID[lastUnitID] = index nanoframesByID[unitID] = nil nanoframeTeams[index] = nanoframeTeams[nanoframeCount] @@ -248,10 +252,28 @@ function gadget:UnitDestroyed(unitID, unitDefID, teamID, attackerID, attackerDef end if attackerTeam and not spAreTeamsAllied(attackerTeam, teamID) then unitValueKilledByTeamHax[attackerTeam] = unitValueKilledByTeamHax[attackerTeam] + cost + if canTeamSeeUnit(attackerTeam, unitID) then unitValueKilledByTeamNonhax[attackerTeam] = unitValueKilledByTeamNonhax[attackerTeam] + cost end end + if attackerTeam then + local lostValue = unitValueLostByTeam[attackerTeam] or 1 + if lostValue == 0 then + lostValue = 1 -- prevent NAN. + end + unitAttritionByTeamHax[attackerTeam] = unitValueKilledByTeamHax[attackerTeam] / lostValue + if canTeamSeeUnit(attackerTeam, unitID) then + unitAttritionByTeamNonhax[attackerTeam] = unitValueKilledByTeamNonhax[attackerTeam] / lostValue + end + else -- unit died through other means EG suicide + local lostValue = unitValueLostByTeam[teamID] or 1 + if lostValue == 0 then + lostValue = 1 -- prevent NAN. + end + unitAttritionByTeamHax[teamID] = unitValueKilledByTeamHax[teamID] / lostValue + unitAttritionByTeamNonhax[teamID] = unitValueKilledByTeamNonhax[teamID] / lostValue + end end function gadget:UnitTaken(unitID, unitDefID, oldTeam, newTeam) @@ -331,13 +353,18 @@ function gadget:GameFrame(n) local teamID = teamList[i] mIncome[teamID] = mIncome[teamID] + GetMetalIncome (teamID) eIncome[teamID] = eIncome[teamID] + GetEnergyIncome (teamID) - mIncomeBase [teamID] = mIncomeBase [teamID] + (spGetTeamRulesParam(teamID, "OD_metalBase" ) or 0) - mIncomeOverdrive[teamID] = mIncomeOverdrive[teamID] + (spGetTeamRulesParam(teamID, "OD_metalOverdrive") or 0) - mTotalBaseMex[teamID] = mTotalBaseMex[teamID] + (spGetTeamRulesParam(teamID, "OD_metalBase") or 0) - mTotalOverdrive[teamID] = mTotalOverdrive[teamID] + (spGetTeamRulesParam(teamID, "OD_metalOverdrive") or 0) + mIncomeBase[teamID] = mIncomeBase[teamID] + (spGetTeamRulesParam(teamID, "OD_metalBase") or 0) + local overdrive = (spGetTeamRulesParam(teamID, "OD_metalOverdrive") or 0) + if overdrive > 0 then + GG.Awards.AddAwardPoints('economist', teamID, overdrive) + end + mIncomeOverdrive[teamID] = mIncomeOverdrive[teamID] + overdrive + mTotalBaseMex[teamID] = mTotalBaseMex[teamID] + (spGetTeamRulesParam(teamID, "OD_metalBase") or 0) + mTotalOverdrive[teamID] = mTotalOverdrive[teamID] + overdrive SetHiddenTeamRulesParam(teamID, "stats_history_damage_dealt_current", damageDealtByTeamHax[teamID]) SetHiddenTeamRulesParam(teamID, "stats_history_unit_value_killed_current", unitValueKilledByTeamHax[teamID]) + SetHiddenTeamRulesParam(teamID, "stats_history_attrition_current", unitAttritionByTeamHax[teamID] or 0) spSetTeamRulesParam(teamID, "stats_history_damage_dealt_current", damageDealtByTeamNonhax[teamID], ALLIED_VISIBLE) spSetTeamRulesParam(teamID, "stats_history_damage_received_current", damageReceivedByTeam[teamID], ALLIED_VISIBLE) spSetTeamRulesParam(teamID, "stats_history_metal_base_mex_current", mTotalBaseMex[teamID], ALLIED_VISIBLE) @@ -357,10 +384,12 @@ function gadget:GameFrame(n) spSetTeamRulesParam(teamID, "stats_history_unit_lost_tally_current", unitLostTallyByTeam[teamID], ALLIED_VISIBLE) spSetTeamRulesParam(teamID, "stats_history_nano_partial_current", partialNanoValueByTeam[teamID], ALLIED_VISIBLE) spSetTeamRulesParam(teamID, "stats_history_nano_total_current", totalNanoValueByTeam[teamID], ALLIED_VISIBLE) + spSetTeamRulesParam(teamID, "stats_history_attrition_current", unitAttritionByTeamNonhax[teamID] or 0, ALLIED_VISIBLE) if isSpringStatsHistoryFrame then SetHiddenTeamRulesParam(teamID, "stats_history_damage_dealt_" .. stats_index, damageDealtByTeamHax[teamID]) SetHiddenTeamRulesParam(teamID, "stats_history_unit_value_killed_" .. stats_index, unitValueKilledByTeamHax[teamID]) + SetHiddenTeamRulesParam(teamID, "stats_history_attrition_" .. stats_index, unitAttritionByTeamHax[teamID] or 0) spSetTeamRulesParam(teamID, "stats_history_damage_dealt_" .. stats_index, damageDealtByTeamNonhax[teamID]) spSetTeamRulesParam(teamID, "stats_history_damage_received_" .. stats_index, damageReceivedByTeam[teamID], ALLIED_VISIBLE) spSetTeamRulesParam(teamID, "stats_history_metal_base_mex_" .. stats_index, mTotalBaseMex[teamID], ALLIED_VISIBLE) @@ -384,6 +413,7 @@ function gadget:GameFrame(n) spSetTeamRulesParam(teamID, "stats_history_unit_value_other_" .. stats_index, unitCategoryValueByTeam[teamID].other, ALLIED_VISIBLE) spSetTeamRulesParam(teamID, "stats_history_nano_partial_" .. stats_index, partialNanoValueByTeam[teamID], ALLIED_VISIBLE) spSetTeamRulesParam(teamID, "stats_history_nano_total_" .. stats_index, totalNanoValueByTeam[teamID], ALLIED_VISIBLE) + spSetTeamRulesParam(teamID, "stats_history_attrition_" .. stats_index, unitAttritionByTeamNonhax[teamID] or 0, ALLIED_VISIBLE) mIncome [teamID] = 0 mIncomeBase [teamID] = 0 @@ -400,7 +430,9 @@ end function gadget:GameOver() gadget:GameFrame(450) -- fake history frame to snapshot end state - + for teamID, attritionRate in pairs(unitAttritionByTeamHax) do + GG.Awards.AddAwardPoints('attrition', teamID, attritionRate) + end Spring.SetGameRulesParam("gameover_frame", Spring.GetGameFrame()) Spring.SetGameRulesParam("gameover_second", math.floor(Spring.GetGameSeconds())) Spring.SetGameRulesParam("gameover_historyframe", stats_index - 1) @@ -510,8 +542,8 @@ function gadget:Initialize() spSetTeamRulesParam(teamID, "stats_history_nano_total_0" , 0, ALLIED_VISIBLE) mTotalOverdrive [teamID] = spGetTeamRulesParam(teamID, "stats_history_metal_overdrive_current") or 0 - mTotalBaseMex [teamID] = spGetTeamRulesParam(teamID, "stats_history_metal_base_mex_current") or 0 - reclaimListByTeam [teamID] = -1*(spGetTeamRulesParam(teamID, "stats_history_metal_reclaim_current") or 0) + mTotalBaseMex [teamID] = spGetTeamRulesParam(teamID, "stats_history_metal_base_mex_current") or 0 + reclaimListByTeam [teamID] = -spGetTeamRulesParam(teamID, "stats_history_metal_reclaim_current") or 0 metalExcessByTeam [teamID] = spGetTeamRulesParam(teamID, "stats_history_metal_excess_current") or 0 metalSharedByTeam [teamID] = spGetTeamRulesParam(teamID, "stats_history_metal_shared_current") or 0 energyExcessByTeam [teamID] = spGetTeamRulesParam(teamID, "stats_history_energy_excess_current") or 0 @@ -523,5 +555,7 @@ function gadget:Initialize() unitValueLostByTeam[teamID] = spGetTeamRulesParam(teamID, "stats_history_unit_value_lost_current") or 0 unitLostTallyByTeam[teamID] = spGetTeamRulesParam(teamID, "stats_history_unit_lost_tally_current") or 0 damageReceivedByTeam[teamID] = Spring.GetTeamRulesParam(teamID, "stats_history_damage_received_current") or 0 + unitAttritionByTeamHax[teamID] = GetHiddenTeamRulesParam(teamID, "stats_history_attrition_current") or 0 + unitAttritionByTeamNonhax[teamID] = Spring.GetTeamRulesParam(teamID, "stats_history_attrition_current") or 0 end end diff --git a/LuaRules/Images/awards/trophy_assistant.png b/LuaRules/Images/awards/trophy_assistant.png new file mode 100644 index 0000000000..f7e90ba621 Binary files /dev/null and b/LuaRules/Images/awards/trophy_assistant.png differ diff --git a/LuaRules/Images/awards/trophy_attrition.png b/LuaRules/Images/awards/trophy_attrition.png new file mode 100644 index 0000000000..5be71b3527 Binary files /dev/null and b/LuaRules/Images/awards/trophy_attrition.png differ diff --git a/LuaRules/Images/awards/trophy_drone.png b/LuaRules/Images/awards/trophy_drone.png new file mode 100644 index 0000000000..116ac02d25 Binary files /dev/null and b/LuaRules/Images/awards/trophy_drone.png differ diff --git a/LuaRules/Images/awards/trophy_economist.png b/LuaRules/Images/awards/trophy_economist.png new file mode 100644 index 0000000000..0f538aaa9a Binary files /dev/null and b/LuaRules/Images/awards/trophy_economist.png differ diff --git a/LuaRules/Images/awards/trophy_missile.png b/LuaRules/Images/awards/trophy_missile.png new file mode 100644 index 0000000000..9cca156fa3 Binary files /dev/null and b/LuaRules/Images/awards/trophy_missile.png differ diff --git a/LuaRules/Images/awards/trophy_repair.png b/LuaRules/Images/awards/trophy_repair.png new file mode 100644 index 0000000000..d38f602d94 Binary files /dev/null and b/LuaRules/Images/awards/trophy_repair.png differ diff --git a/LuaRules/Images/awards/trophy_shield.png b/LuaRules/Images/awards/trophy_shield.png new file mode 100644 index 0000000000..e92d139329 Binary files /dev/null and b/LuaRules/Images/awards/trophy_shield.png differ diff --git a/LuaUI/Configs/lang/awards.de.json b/LuaUI/Configs/lang/awards.de.json new file mode 100644 index 0000000000..5f12ee7aed --- /dev/null +++ b/LuaUI/Configs/lang/awards.de.json @@ -0,0 +1,150 @@ +{ + "air": "Luftwaffengeneral", + "air_desc": "Verdient durch Schaden an feindlichen Einheiten mit Flugzeugen.", + "air_yourscore": "Du hast %{score} Schaden mit Flugzeugen verursacht.", + "air_score": "Schaden durch Lufteinheiten: %{score}", + "apm": "APM", + "apm_mousespeed": "Mausgeschwindigkeit\n(Pixel/Sek.)", + "apm_clickrate": "Klickrate\n(Mausklicks/Min.)", + "apm_keyspressed": "Tastendruckrate\n(gedrückte Tasten/Min.)", + "apm_cmd": "APM\n(Befehle/Min.)", + "assistant": "Subventionsstrategie", + "assistant_desc": "Verdient durch Unterstützung von Verbündeten bei Bauprojekten oder durch Metallspenden an Verbündete.", + "assistant_yourscore" : "Du hast %{score} Metall für die Unterstützung deiner Verbündeten eingesetzt.", + "assistant_score" : "%{score} Metall für die Unterstützung deiner Verbündeten eingesetzt.", + "attrition" : "Abnutzungs-Ass", + "attrition_desc" : "Verdient durch das Töten von mehr Metall als du verloren hast. Die Punktzahl wird anhand des Verhältnisses von getötetem zu verlorenem Metall berechnet.", + "attrition_yourscore" : "Deine Abnutzungsrate betrug %{score}.", + "attrition_score" : "Abnutzungsrate: %{score}", + "awards" : "Auszeichnungen", + "cap" : "Meister der Puppen", + "cap_desc" : "Verdient durch die Eroberung feindlicher Einheiten entweder durch den Eroberungsstrahl des Unterstützungskommandanten oder durch Dominas.", + "cap_yourscore" : "Du hast Einheiten im Wert von %{score} Metall erobert.", + "cap_score" : "Gefangene Feinde im Wert von %{score} Metall.", + "comm" : "Meister und Kommandant", + "comm_desc": "Verdient durch Schadensverursachung mit Kommandanten.", + "comm_yourscore": "Du hast mit deinen Kommandanten %{score} Schaden verursacht.", + "comm_score": "%{score} Schadensverursacht durch Kommandanten.", + "commwars": "Kommandant Eroberer", + "commwars_desc": "Verdient als letzter überlebender Kommandant im Commander Wars-Spielmodus.", + "commwars_yourscore": "Du hast %{score} Kommandanten getötet.", + "commwars_score": "%{score} Kommandanten eliminiert.", + "chicken": "Hühner-Anwärter", + "chicken_desc": "Verdient durch das Erreichen von über 100 Punkten mit anwesenden Hühnern. Verdient Punkte, indem ihr länger gegen die Hühnerplage überlebt! Jeder erhält diese Auszeichnung.", + "chicken_score": "Punktzahl: %{score}", + "chickenWin": "Hühnervernichter", + "chickenWin_desc": "Verdient durch das Erreichen von über 100 Punkten mit anwesenden Hühnern auf höheren Schwierigkeitsgraden. Verdient mehr Punkte, indem ihr länger überlebt! Jeder erhält diese Auszeichnung.", + "chickenWin_score": "Punktzahl: %{score}", + "defeat": "Niederlage!", + "draw_result": "Unentschieden!", + "drone": "Drohnenleiter", + "drone_desc": "Verdient durch Schaden mit Drohnen.", + "drone_yourscore": "Du hast %{score} Schaden mit Drohnen verursacht.", + "drone_score": "%{score} Schaden mit Drohnen verursacht.", + "economist": "Wirtschaftsmacht", + "economist_desc": "Verdient durch Metallproduktion mit Overdrive.", + "economist_yourscore": "Dein Overdrive hat dem Team %{score} Metall beigesteuert.", + "economist_score": "%{score} Metall mit Overdrive produziert", + "emp": "EMP-Zauberer", + "emp_desc": "Verdient durch EMP-Schaden an gegnerischen Einheiten.", + "emp_yourscore": "Du hast gegnerischen Einheiten %{score} EMP-Schaden zugefügt.", + "emp_score": "%{score} EMP Schaden verursacht", + "exitlobby": "Verlassen zur Lobby", + "fire": "Grillmeister", + "fire_desc": "Verdient durch Feuerschaden an gegnerischen Einheiten.", + "fire_yourscore": "Du hast gegnerischen Einheiten %{score} Feuerschaden zugefügt.", + "fire_score": "%{score} Feuerschaden verursacht", + "gameover": "Spiel vorbei!", + "gameabort": "Spiel abgebrochen", + "head": "Kopfjäger", + "head_desc": "Verdient durch das Töten gegnerischer Kommandanten. Du musst mindestens 4 töten, um diese Auszeichnung zu erhalten.", + "head_yourscore": "Dein Kommandant tötet: %{score}", + "head_score": "%{score} Kommandanten getötet", + "heart": "Herzensbrecherin der Königin", + "heart_desc": "Verdient durch Schaden an der Hühnerkönigin.", + "heart_yourscore": "Du hast der Königin %{score} Schaden zugefügt.", + "heart_score": "%{score} Schaden an der Hühnerkönigin verursacht", + "kam": "Glorreicher Brand", + "kam_desc": "Verdient durch Schaden mit Selbstmordeinheiten.", + "kam_yourscore": "Du hast feindlichen Einheiten mit Selbstmordeinheiten %{score} Schaden zugefügt.", + "kam_score": "%{score} Schaden durch Selbstmordeinheiten verursacht", + "mex": "Mineralschürfer", + "mex_desc": "Verdient durch den Bau von Metallextraktoren für deine Team.", + "mex_yourscore": "Du hast %{score} gebaut.", + "mex_score": "%{score} Metallextraktoren gebaut.", + "mexkill": "Plündern & Brandschatzen", + "mexkill_desc": "Verdient durch das Töten feindlicher Metallextraktoren.", + "mexkill_yourscore": "Du hast %{score} feindliche Metallextraktoren getötet.", + "mexkill_score": "%{score} Metallextraktoren getötet", + "menace": "Bedrohungstöter", + "menace_desc": "Verdient durch das Verursachen von Schaden an Hühnerbedrohungen.", + "menace_yourscore": "Du hast Bedrohungen %{score} Schaden zugefügt.", + "menace_score": "%{score} Schaden an Bedrohungen verursacht.", + "missile": "Raketen-Marodeur", + "missile_desc": "Verdient durch Schaden mit Raketensilo-Raketen.", + "missile_yourscore": "Du hast %{score} Schaden mit taktischen Raketen verursacht.", + "missile_score": "%{score} Schaden mit taktischen Raketen verursacht.", + "nux": "Apokalyptischer Erfolg", + "nux_desc": "Verdient durch Schaden mit Superwaffen.", + "nux_yourscore": "Du hast %{score} Schaden mit Superwaffen verursacht.", + "nux_score": "%{score} Schaden mit Superwaffen verursacht", + "ouch": "Großes Lila Herz", + "ouch_desc": "Erworben durch erlittenen Gesundheitsschaden.", + "ouch_yourscore": "Du hast %{score} Schaden erlitten.", + "ouch_score": "%{score} Schaden erlitten", + "pwn": "Komplette Vernichtung", + "pwn_desc": "Erworben durch Schaden an gegnerischen Einheiten.", + "pwn_yourscore": "Du hast gegnerischen Einheiten %{score} Schaden zugefügt.", + "pwn_score": "%{score} Schaden verursacht", + "rage": "Wutauslöser", + "rage_desc": "Dieser Erfolg ist nicht implementiert.", + "rage_yourscore": "Nicht implementiert. %{score}", + "rage_score": "%{score} erzielt?", + "reclaim": "Kriegsbeute", + "reclaim_desc": "Verdient durch die Rückgewinnung von Metall aus der Umgebung, z. B. von Wracks oder Zauberpilzen.", + "reclaim_yourscore": "Du hast %{score} Metall zurückgewonnen.", + "reclaim_score": "%{score} Metall zurückgewonnen.", + "rezz": "Abscheulicher Totenbeschwörer", + "rezz_desc": "Verdient durch die Wiederbelebung von Wracks.", + "rezz_yourscore": "Du hast Wracks im Wert von %{score} Metall wiederbelebt.", + "rezz_score": "Einheiten im Wert von %{score} Metall wiederbelebt.", + "repair": "Freundlicher Mechaniker", + "repair_desc": "Verdient durch die Reparatur verbündeter Einheiten.", + "repair_yourscore": "Du hast die Gesundheit deiner Verbündeten im Wert von %{score} repariert.", + "repair_score" : "%{score} Gesundheit wiederhergestellt.", + "share" : "Bär teilen", + "share_desc": "Verdient durch das Teilen von Einheiten mit Verbündeten.", + "share_yourscore": "Du hast Einheiten im Wert von %{score} Metall mit deinen Teammitgliedern geteilt.", + "share_score": "Geteilte Einheiten im Wert von %{score} Metall.", + "shell": "Schildkrötenpanzer", + "shell_desc": "Verdient durch Schaden an gegnerischen Einheiten durch Verteidigung.", + "shell_yourscore": "Deine Verteidigung hat gegnerischen Einheiten %{score} Schaden zugefügt.", + "shell_score": "%{score} Schaden durch Verteidigung.", + "shield": "Schildträger", + "shield_desc": "Verdient durch das Tanken von Schaden durch Schilde.", + "shield_yourscore": "Deine Schilde haben %{score} Schaden absorbiert.", + "shield_score": "%{score} Schaden durch Schilde erlitten.", + "langsam" : "Verkehrspolizist", + "slow_desc": "Verdient durch Verlangsamungsschaden an gegnerischen Einheiten.", + "slow_yourscore": "Du hast gegnerischen Einheiten %{score} Verlangsamungsschaden zugefügt.", + "slow_score": "%{score} Verlangsamungsschaden verursacht", + "statistics": "Statistiken", + "sweeper": "Landkehrer", + "sweeper_desc": "Verdient durch das Töten von Hühnerställen.", + "sweeper_yourscore": "Du hast %{score} vernichtet.", + "sweeper_score": "%{score} Hühnerställe vernichtet", + "t3": "Experimenteller Ingenieur", + "t3_desc": "Diese Auszeichnung ist noch nicht implementiert.", + "t3_yourscore": "Nicht implementiert %{score}", + "t3_score": "Punktzahl: %{score}", + "terra": "Legendärer Landschaftsgärtner", + "terra_desc": "Durch Terraforming verdient.", + "terra_yourscore": "Du hast %{score} Metall für Terraforming ausgegeben.", + "terra_score": "%{score} Metall für Terraforming ausgegeben.", + "vet": "Ausgezeichneter Veteran", + "vet_desc": "Verdient durch den effektiven Einsatz einer Einheit, um Schaden zu verursachen oder mehr Wert zu töten, als sie wert war.", + "vet_yourscore": "Deine kosteneffektivste Einheit war %{unitname}, die %{score} kostete.", + "vet_score": "%{unitname}, verursachte Kosten: %{score}", + "victory": "Sieg!", + "teamwins": "%{name} gewinnt!" +} diff --git a/LuaUI/Configs/lang/awards.en.json b/LuaUI/Configs/lang/awards.en.json new file mode 100644 index 0000000000..21e6e6ff72 --- /dev/null +++ b/LuaUI/Configs/lang/awards.en.json @@ -0,0 +1,150 @@ +{ + "air" : "Airforce General", + "air_desc" : "Earned by damaging enemy units with aircraft.", + "air_yourscore" : "You did %{score} damage with aircraft.", + "air_score" : "Damage done by air units: %{score}", + "apm" : "APM", + "apm_mousespeed" : "Mouse Speed\n(Pixels/sec)", + "apm_clickrate" : "Click Rate\n(Mouse Clicks/min)", + "apm_keyspressed" : "Key Press Rate\n(Keys Pressed/min)", + "apm_cmd" : "APM\n(Commands/min)", + "assistant" : "Subsidization Strategy", + "assistant_desc" : "Earned by assisting allies with construction projects or donating metal to allies.", + "assistant_yourscore" : "You used %{score} metal for assisting your allies.", + "assistant_score" : "%{score} metal used for assisting allies", + "attrition" : "Attrition Ace", + "attrition_desc" : "Earned by killing more metal value than you have lost. Score is calculated using a ratio of value killed vs value lost.", + "attrition_yourscore" : "Your attrition rate was %{score}.", + "attrition_score" : "Attrition rate: %{score}", + "awards" : "Awards", + "cap" : "Master of Puppets", + "cap_desc" : "Earned by capturing enemy units either via Support Commander's Capture Ray or Dominatrixes.", + "cap_yourscore" : "You captured %{score} metal worth of units.", + "cap_score" : "%{score} metal worth of enemies captured.", + "comm" : "Master and Commander", + "comm_desc" : "Earned by dealing damage using commanders.", + "comm_yourscore" : "You did %{score} damage using your commanders.", + "comm_score" : "%{score} damage done by commanders.", + "commwars" : "Commander Conqueror", + "commwars_desc" : "Earned by being the last commander standing in the Commander Wars game mode.", + "commwars_yourscore" : "You killed %{score} commanders.", + "commwars_score" : "%{score} commanders eliminated.", + "chicken" : "Chicken Contender", + "chicken_desc" : "Earned by scoring over 100 points with chickens present. Earn points by surviving longer against the chicken menace! Everyone earns this award.", + "chicken_score" : "Score: %{score}", + "chickenWin" : "Chicken Eradicator", + "chickenWin_desc" : "Earned by scoring over 100 points with chickens present on harder difficulties. Earn more points by surviving longer! Everyone earns this award.", + "chickenWin_score" : "Score: %{score}", + "defeat" : "Defeat!", + "draw_result" : "Draw!", + "drone" : "Drone Director", + "drone_desc" : "Earned by dealing damage with drones.", + "drone_yourscore" : "You did %{score} damage with drones.", + "drone_score" : "%{score} damage dealt with drones", + "economist" : "Economic Powerhouse", + "economist_desc" : "Earned by producing metal through overdrive.", + "economist_yourscore" : "Your overdrive contributed %{score} metal to the team.", + "economist_score" : "%{score} metal produced via overdrive", + "emp" : "EMP Wizard", + "emp_desc" : "Earned by dealing EMP damage to enemy units.", + "emp_yourscore" : "You did %{score} emp damage to enemy units.", + "emp_score" : "%{score} emp damage dealt", + "exitlobby" : "Exit to lobby", + "fire" : "Master Grill-Chef", + "fire_desc" : "Earned by dealing fire damage to enemy units.", + "fire_yourscore" : "You did %{score} fire damage to enemy units.", + "fire_score" : "%{score} fire damage dealt", + "gameover" : "Game over!", + "gameabort" : "Game aborted", + "head" : "Head Hunter", + "head_desc" : "Earned by killing enemy commanders. You must kill at least 4 to qualify for this award.", + "head_yourscore" : "Your commander kills: %{score}", + "head_score" : "%{score} commanders killed", + "heart" : "Queen Heart Breaker", + "heart_desc" : "Earned by dealing damage to the chicken queen.", + "heart_yourscore" : "You did %{score} damage to the queen.", + "heart_score" : "%{score} damage dealt to the Chicken Queen", + "kam" : "Blaze of Glory", + "kam_desc" : "Earned by dealing damage using suicide units.", + "kam_yourscore" : "You did %{score} damage to enemy units using suicide units", + "kam_score" : "%{score} damage dealt by suicide units", + "mex" : "Mineral Prospector", + "mex_desc" : "Earned by building metal extractors for your team.", + "mex_yourscore" : "You built %{score}.", + "mex_score" : "%{score} metal extractors built", + "mexkill" : "Loot & Pillage", + "mexkill_desc" : "Earned by killing enemy metal extractors.", + "mexkill_yourscore" : "You killed %{score} enemy metal extractors.", + "mexkill_score" : "%{score} metal extractors killed", + "menace" : "Menace Slayer", + "menace_desc" : "Earned by dealing damage to chicken menaces.", + "menace_yourscore" : "You did %{score} damage to menaces.", + "menace_score" : "%{score} damage dealt to menaces.", + "missile" : "Missile Marauder", + "missile_desc" : "Earned by dealing damage using missile silo missiles.", + "missile_yourscore" : "You did %{score} damage using tactical missiles.", + "missile_score" : "%{score} damage dealt using tactical missiles.", + "nux" : "Apocalyptic Achievement", + "nux_desc" : "Earned by dealing damage using superweapons.", + "nux_yourscore" : "You did %{score} damage using superweapons.", + "nux_score" : "%{score} damage dealt using superweapons", + "ouch" : "Big Purple Heart", + "ouch_desc" : "Earned by taking health damage.", + "ouch_yourscore" : "You took %{score} damage.", + "ouch_score" : "%{score} damage taken", + "pwn" : "Complete Annihalation", + "pwn_desc" : "Earned by dealing damage to enemy units.", + "pwn_yourscore" : "You dealt %{score} damage to enemy units.", + "pwn_score" : "%{score} damage dealt", + "rage" : "Rage inducer", + "rage_desc" : "This achievement is not implemented.", + "rage_yourscore" : "Not implemented. %{score}", + "rage_score" : "%{score} scored?", + "reclaim" : "Spoils of War", + "reclaim_desc" : "Earned by reclaiming metal from the environment from things such as wrecks or magic mushrooms.", + "reclaim_yourscore" : "You reclaimed %{score} metal.", + "reclaim_score" : "%{score} metal reclaimed.", + "rezz" : "Vile Necromancer", + "rezz_desc" : "Earned by resurrecting wrecks.", + "rezz_yourscore" : "You resurrected %{score} metal worth of wrecks.", + "rezz_score" : "%{score} metal worth of units resurrected.", + "repair" : "Friendly Mechanic", + "repair_desc" : "Earned by repairing allied units.", + "repair_yourscore" : "You repaired %{score} health to your allies.", + "repair_score" : "%{score} health repaired.", + "share" : "Share Bear", + "share_desc" : "Earned by sharing units to your allies.", + "share_yourscore" : "You shared %{score} metal worth of units to your teammates.", + "share_score" : "%{score} metal worth of units shared", + "shell" : "Turtle Shell", + "shell_desc" : "Earned by dealing damage to enemy units using defenses.", + "shell_yourscore" : "Your defenses inflicted %{score} damage to enemy units.", + "shell_score" : "%{score} damage dealt by defenses", + "shield" : "Shieldbearer", + "shield_desc" : "Earned by tanking damage using shields.", + "shield_yourscore" : "Your shields absorbed %{score} damage.", + "shield_score" : "%{score} damage taken using shields", + "slow" : "Traffic Cop", + "slow_desc" : "Earned by dealing slow damage to enemy units.", + "slow_yourscore" : "You dealt %{score} slow damage to enemy units.", + "slow_score" : "%{score} slow damage dealt", + "statistics" : "Statistics", + "sweeper" : "Land Sweeper", + "sweeper_desc" : "Earned by killing chicken roosts.", + "sweeper_yourscore" : "You wiped out %{score}.", + "sweeper_score" : "%{score} chicken roosts wiped out", + "t3" : "Experimental Engineer", + "t3_desc" : "This award is not yet implemented.", + "t3_yourscore" : "Not implemented %{score}", + "t3_score" : "Score: %{score}", + "terra" : "Legendary Landscaper", + "terra_desc" : "Earned by terraforming.", + "terra_yourscore" : "You spent %{score} metal on terraform.", + "terra_score" : "%{score} metal spent on terraform.", + "vet" : "Decorated Veteran", + "vet_desc" : "Earned by using a unit very effectively to deal damage or kill more value than it was worth.", + "vet_yourscore" : "Your most cost effective unit was %{unitname} which made %{score} cost.", + "vet_score" : "%{unitname}, cost made: %{score}", + "victory" : "Victory!", + "teamwins" : "%{name} wins!" +} diff --git a/LuaUI/Configs/lang/awards.fr.json b/LuaUI/Configs/lang/awards.fr.json new file mode 100644 index 0000000000..ce7a142471 --- /dev/null +++ b/LuaUI/Configs/lang/awards.fr.json @@ -0,0 +1,149 @@ +{ + "air" : "Général de l'armée de l'air", + "air_desc" : "Gagné en endommageant des unités ennemies avec des avions", + "air_yourscore" : "Vous avez fait %{score} de dégâts avec des avions. ", + "air_score" : "Dommages causés par les unités aériennes : %{score}", + "apm" : "APM", + "apm_mousespeed" : "Vitesse de la souris\n(Pixels/sec)", + "apm_clickrate" : "Taux de clics\n(Clics de souris/min)", + "apm_keyspressed" : "Taux de pression des touches\n(Touches enfoncées/min)", + "apm_cmd" : "APM\n(Commandes/min)", + "assistant" : "Stratégie de subvention", + "assistant_desc" : "Gagné en aidant les alliés avec des projets de construction ou en donnant du métal aux alliés", + "assistant_yourscore" : "Vous avez utilisé %{score} de métal pour aider vos alliés", + "assistant_score" : "%{score} de métal utilisé pour aider les alliés", + "attrition" : "As d'attrition", + "attrition_desc" : "Gagné en tuant plus de valeur en métal que vous n'en avez perdu. Le score est calculé à l'aide d'un rapport entre la valeur tuée et la valeur perdue.", + "attrition_yourscore" : "Votre taux d'attrition était de %{score}.", + "attrition_score" : "Taux d'attrition : %{score}", + "awards" : "Prix", + "cap" : "Le maître des marionnettes", + "cap_desc" : "Obtenu en capturant des unités ennemies via le rayon de capture du commandant de soutien ou les dominatrices.", + "cap_yourscore" : "Vous avez capturé %{score} d'unités en métal.", + "cap_score" : "%{score} de métal d'ennemis capturés.", + "comm" : "Master and Commander", + "comm_desc" : "Gagner en infligeant des dégâts avec les commandants", + "comm_yourscore" : "Vous avez infligé %{score} de dégâts avec vos commandants", + "comm_score" : "%{score} de dégâts infligés par les commandants", + "commwars" : "Commander Conqueror", + "commwars_desc" : "Gagner en étant le dernier commandant debout dans le mode de jeu Commander Wars", + "commwars_yourscore" : "Vous avez tué %{score} de commandants", + "commwars_score" : "%{score} commandants éliminés.", + "chicken" : "Chicken Contender", + "chicken_desc" : "Obtenu en marquant plus de 100 points en présence de poulets. Gagnez des points en survivant plus longtemps à la menace des poulets ! Tout le monde gagne cette récompense.", + "chicken_score" : "Score: %{score}", + "chickenWin" : "Chicken Eradicator", + "chickenWin_desc" : "Gagné en marquant plus de 100 points avec les poulets présents dans les difficultés les plus difficiles. Gagnez plus de points en survivant plus longtemps ! Tout le monde gagne cette récompense.", + "chickenWin_score" : "Score: %{score}", + "defeat" : "Défaite !", + "draw_result" : "Match nul!", + "drone_desc" : "Gagné en infligeant des dégâts aux drones", + "drone_yourscore" : "Vous avez infligé %{score} de dégâts aux drones", + "drone_score" : "%{score} de dégâts infligés aux drones", + "economist" : "Economic Powerhouse", + "economist_desc" : "Gagné en produisant du métal par overdrive", + "economist_yourscore" : "Votre overdrive a apporté %{score} de métal à l'équipe", + "economist_score" : "%{score} de métal produit par l'overdrive", + "emp" : "EMP Wizard", + "emp_desc" : "Gagné en infligeant des dégâts EMP aux unités ennemies", + "emp_yourscore" : "Vous avez infligé %{score} de dégâts EMP aux unités ennemies", + "emp_score" : "%{score} de dégâts emp infligés", + "exitlobby" : "Quitter le lobby", + "fire" : "Maître Grill-Chef", + "fire_desc" : "Gagné en infligeant des dégâts de feu aux unités ennemies.", + "fire_yourscore" : "Vous avez infligé %{score} dégâts de feu aux unités ennemies.", + "fire_score" : "%{score} dégâts de feu infligés", + "gameover" : "Fin de partie !", + "gameabort" : "Partie interrompue", + "head" : "Chasseur de têtes", + "head_desc" : "Gagné en tuant des commandants ennemis. Vous devez en tuer au moins 4 pour obtenir cette récompense.", + "head_yourscore" : "Votre commandant a tué : %{score}", + "head_score" : "%{score} commandants tués", + "heart" : "Reine Briseur de Cœurs", + "heart_desc" : "Gagné en infligeant des dégâts à la reine poulet.", + "heard_yourscore" : "Vous avez infligé %{score} dégâts à la reine.", + "heart_score" : "%{score} dégâts infligés à la Reine Poule", + "kam" : "Flamme de gloire", + "kam_desc" : "Gagnez en infligeant des dégâts avec des unités suicides.", + "kam_yourscore" : "Vous avez infligé %{score} points de dégâts aux unités ennemies avec des unités suicides.", + "kam_score" : "%{score} points de dégâts infligés par les unités suicides.", + "mex" : "Prospecteur de minéraux", + "mex_desc" : "Gagnez en construisant des extracteurs de métal pour votre équipe.", + "mex_yourscore" : "Vous avez construit %{score}.", + "mex_score" : "%{score} extracteurs de métal construits", + "mexkill" : "Butin et pillage", + "mexkill_desc" : "Gagnez en tuant des extracteurs de métal ennemis.", + "mexkill_yourscore" : "Vous avez tué %{score} extracteurs de métal ennemis.", + "mexkill_score" : "%{score} extracteurs de métal tués", + "menace" : "Tueur de Menaces", + "menace_desc" : "Gagné en infligeant des dégâts aux menaces poulets.", + "menace_yourscore" : "Vous avez infligé %{score} points de dégâts aux menaces.", + "menace_score" : "%{score} points de dégâts infligés aux menaces.", + "missile" : "Maraudeur de Missiles", + "missile_desc" : "Gagné en infligeant des dégâts avec des missiles de silo à missiles.", + "missile_yourscore" : "Vous avez infligé %{score} points de dégâts avec des missiles tactiques.", + "missile_score" : "%{score} points de dégâts infligés avec des missiles tactiques.", + "nux" : "Succès Apocalyptique", + "nux_desc" : "Gagné en infligeant des dégâts avec des super-armes.", + "nux_yourscore" : "Vous avez infligé %{score} points de dégâts avec des super-armes.", + "nux_score" : "%{score} dégâts infligés à l'aide de super-armes", + "ouch" : "Grand cœur violet", + "ouch_desc" : "Gagné en subissant des dégâts de santé.", + "ouch_yourscore" : "Vous avez subi %{score} dégâts.", + "ouch_score" : "%{score} dégâts subis", + "pwn" : "Annihalation complète", + "pwn_desc" : "Gagné en infligeant des dégâts aux unités ennemies.", + "pwn_yourscore" : "Vous avez infligé %{score} points de dégâts aux unités ennemies.", + "pwn_score" : "%{score} points de dégâts infligés", + "rage" : "Inducteur de rage", + "rage_desc" : "Ce succès n'est pas implémenté.", + "rage_yourscore" : "Non implémenté. %{score}", + "rage_score" : "%{score} points de dégâts ?", + "reclaim" : "Butin de guerre", + "reclaim_desc" : "Gagné en récupérant du métal de l'environnement, comme des épaves ou des champignons magiques.", + "reclaim_yourscore" : "Vous avez récupéré %{score} points de métal.", + "reclaim_score" : "%{score} points de métal récupéré.", + "rezz" : "Vile Nécromancien", + "rezz_desc" : "Gagné en ressuscitant des épaves.", + "rezz_yourscore" : "Vous avez ressuscité %{score} de métal d'épaves.", + "rezz_score" : "%{score} de métal d'unités ressuscitées.", + "repair" : "Mécanicien amical", + "repair_desc" : "Gagné en réparant des unités alliées.", + "repair_yourscore" : "Vous avez réparé %{score} de points de vie à vos alliés.", + "repair_score" : "%{score} de points de vie réparés.", + "share" : "Ours partagé", + "share_desc" : "Gagnez en partageant des unités avec vos alliés.", + "share_yourscore" : "Vous avez partagé %{score} de métal d'unités avec vos coéquipiers.", + "share_score" : "%{score} de métal d'unités partagées", + "shell" : "Carapace de tortue", + "shell_desc" : "Gagnez en infligeant des dégâts aux unités ennemies avec vos défenses.", + "shell_yourscore" : "Vos défenses ont infligé %{score} de dégâts aux unités ennemies.", + "shell_score" : "%{score} de dégâts infligés par les défenses", + "shield" : "Porteur de bouclier", + "shield_desc" : "Gagnez en encaissant les dégâts avec vos boucliers.", + "shield_yourscore" : "Vos boucliers ont absorbé %{score} de dégâts.", + "shield_score" : "%{score} de dégâts subis avec vos boucliers", + "slow" : "Trafic Flic", + "slow_desc" : "Gagné en infligeant des dégâts lents aux unités ennemies.", + "slow_yourscore" : "Vous avez infligé %{score} dégâts lents aux unités ennemies.", + "slow_score" : "%{score} dégâts lents infligés", + "statistics" : "Statistiques", + "sweeper" : "Balayeur de terrain", + "sweeper_desc" : "Gagné en tuant des poulaillers.", + "sweeper_yourscore" : "Vous avez éliminé %{score}.", + "sweeper_score" : "%{score} poulaillers éliminés", + "t3" : "Ingénieur expérimental", + "t3_desc" : "Cette récompense n'est pas encore implémentée.", + "t3_yourscore" : "Non implémenté %{score}", + "t3_score" : "Score : %{score}", + "terra" : "Paysagiste légendaire", + "terra_desc" : "Gagné en terraformant.", + "terra_yourscore" : "Vous avez dépensé %{score} métal pour terraformer.", + "terra_score" : "%{score} métal dépensé pour terraformer.", + "vet" : "Vétéran décoré", + "vet_desc" : "Obtenu en utilisant une unité très efficacement pour infliger des dégâts ou tuer plus de valeur que ce qu'elle valait.", + "vet_yourscore" : "Votre unité la plus rentable était %{unitname}, ce qui a rapporté %{score} de coût.", + "vet_score" : "%{unitname}, coût réalisé : %{score}", + "victory" : "Victoire!", + "teamwins" : "%{name} gagne!" +} diff --git a/LuaUI/Configs/lang/awards.it.json b/LuaUI/Configs/lang/awards.it.json new file mode 100644 index 0000000000..b0f5a8dfa0 --- /dev/null +++ b/LuaUI/Configs/lang/awards.it.json @@ -0,0 +1,150 @@ +{ + "air" : "Generale dell'Aeronautica", + "air_desc" : "Ottenuto danneggiando le unità nemiche con gli aerei.", + "air_yourscore" : "Hai inflitto %{score} danni con gli aerei.", + "air_score" : "Danni inflitti dalle unità aeree: %{score}", + "apm" : "APM", + "apm_mousespeed" : "Velocità del mouse\n(pixel/sec)", + "apm_clickrate" : "Percentuale di clic\n(clic del mouse/min)", + "apm_keyspressed" : "Percentuale di pressione tasti\n(tasti premuti/min)", + "apm_cmd" : "APM\n(comandi/min)", + "assistant" : "Strategia di sovvenzionamento", + "assistant_desc" : "Ottenuto aiutando gli alleati nei progetti di costruzione o donando metallo agli alleati.", + "assistant_yourscore" : "Hai usato %{score} metallo per assistere i tuoi alleati.", + "assistant_score" : "%{score} metallo usato per assistere gli alleati", + "attrition" : "Asso di logoramento", + "attrition_desc" : "Ottenuto uccidendo più metallo di quanto ne hai perso. Il punteggio è calcolato usando il rapporto tra il valore ucciso e quello perso.", + "attrition_yourscore" : "Il tuo tasso di logoramento è stato %{score}.", + "attrition_score" : "Tasso di logoramento: %{score}", + "awards" : "Premi", + "cap" : "Maestro di Burattini", + "cap_desc" : "Ottenuto catturando unità nemiche tramite il Raggio di Cattura del Comandante di Supporto o le Dominatrici.", + "cap_yourscore" : "Hai catturato unità per un valore di %{score} metallo.", + "cap_score" : "%{score} metallo di nemici catturati.", + "comm" : "Maestro e Comandante", + "comm_desc": "Ottenuto infliggendo danni usando i comandanti.", + "comm_yourscore": "Hai inflitto %{score} danni usando i tuoi comandanti.", + "comm_score": "%{score} danni inflitti dai comandanti.", + "commwars": "Comandante Conquistatore", + "commwars_desc": "Ottenuto essendo l'ultimo comandante rimasto in piedi nella modalità di gioco Commander Wars.", + "commwars_yourscore": "Hai ucciso %{score} comandanti.", + "commwars_score": "%{score} comandanti eliminati.", + "chicken": "Pollo Contendente", + "chicken_desc": "Ottenuto totalizzando più di 100 punti con i polli presenti. Guadagna punti sopravvivendo più a lungo contro la minaccia dei polli! Tutti si aggiudicano questo premio.", + "chicken_score": "Punteggio: %{score}", + "chickenWin": "Eradicatore di polli", + "chickenWin_desc": "Ottenuto totalizzando più di 100 punti con i polli presenti alle difficoltà più elevate. Guadagna più punti sopravvivendo più a lungo! Tutti si aggiudicano questo premio.", + "chickenWin_score": "Punteggio: %{score}", + "defeat": "Sconfitta!", + "draw_result": "Pareggio!", + "drone": "Direttore di droni", + "drone_desc": "Ottenuto infliggendo danni con i droni.", + "drone_yourscore": "Hai inflitto %{score} danni con droni.", + "drone_score" : "%{score} danni inflitti con i droni", + "economist" : "Potenza economica", + "economist_desc" : "Ottenuto producendo metallo tramite overdrive.", + "economist_yourscore" : "Il tuo overdrive ha contribuito con %{score} metallo alla squadra.", + "economist_score" : "%{score} metallo prodotto tramite overdrive", + "emp" : "Mago EMP", + "emp_desc" : "Ottenuto infliggendo danni EMP alle unità nemiche.", + "emp_yourscore" : "Hai inflitto %{score} danni EMP alle unità nemiche.", + "emp_score" : "%{score} danni EMP inflitti", + "exitlobby" : "Esci alla lobby", + "fire" : "Maestro della griglia", + "fire_desc" : "Ottenuto infliggendo danni da fuoco alle unità nemiche.", + "fire_yourscore": "Hai inflitto %{score} danni da fuoco alle unità nemiche.", + "fire_score": "%{score} danni da fuoco inflitti", + "gameover": "Fine partita!", + "gameabort": "Partita interrotta", + "head": "Cacciatore di teste", + "head_desc": "Ottenuto uccidendo comandanti nemici. Devi ucciderne almeno 4 per qualificarti per questo premio.", + "head_yourscore": "Il tuo comandante ha ucciso: %{score}", + "head_score": "%{score} comandanti uccisi", + "heart": "Regina Spezzacuori", + "heart_desc": "Ottenuto infliggendo danni alla Regina Gallina.", + "heard_yourscore": "Hai inflitto %{score} danni alla Regina.", + "heart_score": "%{score} danni inflitti alla Regina Gallina", + "kam": "Fulmine di Gloria", + "kam_desc": "Ottenuto infliggendo danni usando unità suicide.", + "kam_yourscore": "Hai inflitto %{score} danni alle unità nemiche usando unità suicide", + "kam_score": "%{score} danni inflitti da suicidio unità", + "mex": "Cercatore di minerali", + "mex_desc": "Ottenuto costruendo estrattori di metallo per la tua squadra.", + "mex_yourscore": "Hai costruito %{score}.", + "mex_score": "Costruiti %{score} estrattori di metallo", + "mexkill": "Bottino e saccheggio", + "mexkill_desc": "Ottenuto uccidendo estrattori di metallo nemici.", + "mexkill_yourscore": "Hai ucciso %{score} estrattori di metallo nemici.", + "mexkill_score": "Ucciditi %{score} estrattori di metallo", + "menace": "Uccisore di minacce", + "menace_desc": "Ottenuto infliggendo danni alle minacce di polli.", + "menace_yourscore": "Hai inflitto %{score} danni alle minacce.", + "menace_score": "%{score} danni inflitti alle minacce.", + "missile": "Predone missilistico", + "missile_desc": "Ottenuto infliggendo danni usando missili silos.", + "missile_yourscore": "Hai inflitto %{score} danni usando missili tattici.", + "missile_score": "%{score} danni inflitti usando missili tattici.", + "nux": "Obiettivo Apocalittico", + "nux_desc": "Ottenuto infliggendo danni usando superarmi.", + "nux_yourscore": "Hai inflitto %{score} danni usando superarmi.", + "nux_score": "%{score} danni inflitti usando superarmi", + "ouch": "Grande Cuore Viola", + "ouch_desc": "Ottenuto subendo danni alla salute.", + "ouch_yourscore": "Hai subito %{score} danni.", + "ouch_score": "%{score} danni subiti", + "pwn": "Annientamento Completo", + "pwn_desc": "Ottenuto infliggendo danni alle unità nemiche.", + "pwn_yourscore": "Hai inflitto %{score} danni alle unità nemiche.", + "pwn_score": "%{score} danni inflitti", + "rage": "Induttore di rabbia", + "rage_desc": "Questo risultato non è implementato.", + "rage_yourscore": "Non implementato. %{score}", + "rage_score": "%{score} ottenuti?", + "reclaim": "Bottino di guerra", + "reclaim_desc": "Ottenuto recuperando metallo dall'ambiente, da oggetti come relitti o funghi allucinogeni.", + "reclaim_yourscore": "Hai recuperato %{score} metallo.", + "reclaim_score": "Recuperato %{score} metallo.", + "rezz": "Negromante Vile", + "rezz_desc": "Ottenuto resuscitando relitti.", + "rezz_yourscore": "Hai resuscitato relitti per un valore di %{score} metallo.", + "rezz_score": "Unità resuscitate per un valore di %{score} metallo.", + "repair": "Meccanico Amico", + "repair_desc": "Ottenuto riparando unità alleate.", + "repair_yourscore": "Hai riparato %{score} salute ai tuoi alleati.", + "repair_score" : "%{score} salute riparata.", + "share" : "Condividi Orso", + "share_desc" : "Ottenuto condividendo unità con i tuoi alleati.", + "share_yourscore" : "Hai condiviso unità per un valore di %{score} metallo con i tuoi compagni.", + "share_score" : "Unità condivise per un valore di %{score} metallo", + "shell" : "Guscio di tartaruga", + "shell_desc" : "Ottenuto infliggendo danni alle unità nemiche usando le difese.", + "shell_yourscore" : "Le tue difese hanno inflitto %{score} danni alle unità nemiche.", + "shell_score" : "%{score} danni inflitti dalle difese", + "shield" : "Portatore di scudo", + "shield_desc": "Ottenuto incassando danni con gli scudi.", + "shield_yourscore": "I tuoi scudi hanno assorbito %{score} danni.", + "shield_score": "%{score} danni subiti con gli scudi", + "slow": "Agente di Polizia", + "slow_desc": "Ottenuto infliggendo danni lenti alle unità nemiche.", + "slow_yourscore": "Hai inflitto %{score} danni lenti alle unità nemiche.", + "slow_score": "%{score} danni lenti inflitti", + "statistics": "Statistiche", + "sweeper": "Spazzatrice stradale", + "sweeper_desc": "Ottenuto uccidendo i polli nei pollai.", + "sweeper_yourscore": "Hai eliminato %{score}.", + "sweeper_score": "%{score} pollai distrutti", + "t3": "Ingegnere Sperimentale", + "t3_desc": "Questo premio non è ancora implementato.", + "t3_yourscore": "Non implementato %{score}", + "t3_score": "Punteggio: %{score}", + "terra": "Paesaggista Leggendario", + "terra_desc": "Ottenuto con la terraformazione.", + "terra_yourscore": "Hai speso %{score} metallo per la terraformazione.", + "terra_score": "%{score} metallo speso per la terraformazione.", + "vet": "Veterano Decorato", + "vet_desc": "Ottenuto usando un'unità in modo molto efficace per infliggere danni o uccidere più valore di quanto valesse.", + "vet_yourscore": "La tua unità più conveniente è stata %{unitname}, che ha fatto sì che il costo fosse di %{score}.", + "vet_score" : "%{unitname}, costo sostenuto: %{score}", + "victory" : "Vittoria!", + "teamwins" : "%{name} vince!" +} diff --git a/LuaUI/Configs/lang/awards.ja.json b/LuaUI/Configs/lang/awards.ja.json new file mode 100644 index 0000000000..be5902708a --- /dev/null +++ b/LuaUI/Configs/lang/awards.ja.json @@ -0,0 +1,149 @@ +{ + "air" : "空軍将軍", + "air_desc" : "航空機で敵ユニットにダメージを与えることで獲得できます。", + "air_yourscore" : "航空機で%{score}のダメージを与えました。", + "air_score" : "航空ユニットによるダメージ: %{score}", + "apm" : "APM", + "apm_mousespeed" : "マウス速度\n(ピクセル/秒)", + "apm_clickrate" : "クリック速度\n(マウスクリック/分)", + "apm_keyspressed" : "キー入力速度\n(キー入力/分)", + "apm_cmd" : "APM\n(コマンド/分)", + "assistant" : "補助金戦略", + "assistant_desc" : "建設プロジェクトで味方を支援したり、味方に金属を寄付したりすることで獲得できます。", + "assistant_yourscore" : "味方の支援に%{score}メタルを使用しました。", + "assistant_score" : "味方の支援に%{score}メタルを使用しました。", + "attrition" : "消耗エース", + "attrition_desc" : "失ったメタルよりも多くのメタルをキルすることで獲得しました。スコアはキルしたメタルと失ったメタルの比率で計算されます。", + "attrition_yourscore" : "消耗率は%{score}でした。", + "attrition_score" : "消耗率: %{score}", + "awards" : "賞", + "cap" : "操り人形の達人", + "cap_desc" : "支援司令官の捕獲光線またはドミナトリックスで敵ユニットを捕獲することで獲得しました。", + "cap_yourscore" : "捕獲したユニットのメタルは%{score}メタルです。", + "cap_score" : "%{score}メタル相当の敵を捕獲しました。", + "comm" : "マスター・アンド・コマンダー", + "comm_desc" : "コマンダーを使ってダメージを与えることで獲得。", + "comm_yourscore" : "コマンダーを使って%{score}のダメージを与えました。", + "comm_score" : "コマンダーによって%{score}のダメージを与えました。", + "commwars" : "コマンダー・コンテンダー", + "commwars_desc" : "コマンダーウォーズゲームモードで最後のコマンダーになることで獲得。", + "commwars_yourscore" : "%{score}人のコマンダーを倒しました。", + "commwars_score" : "%{score}人のコマンダーを倒しました。", + "chicken" : "チキン・コンテンダー", + "chicken_desc" : "ニワトリがいる状態で100ポイント以上を獲得することで獲得。ニワトリの脅威からより長く生き残ることでポイントを獲得!全員が獲得できますこの賞を獲得しました。", + "chicken_score" : "スコア: %{score}", + "chickenWin" : "チキンエラディケーター", + "chickenWin_desc" : "より難しい難易度で、ニワトリがいる状態で100ポイント以上獲得すると獲得できます。より長く生き残るほど、より多くのポイントを獲得できます!この賞は誰でも獲得できます。", + "chickenWin_score" : "スコア: %{score}", + "defeat" : "敗北!", + "draw_result" : "引き分け!", + "drone" : "ドローンディレクター", + "drone_desc" : "ドローンでダメージを与えて獲得しました。", + "drone_yourscore" : "ドローンで%{score}のダメージを与えました。", + "drone_score" : "ドローンで%{score}のダメージを与えました。", + "economist" : "経済大国", + "economist_desc" : "オーバードライブでメタルを生産して獲得しました。", + "economist_yourscore" : "オーバードライブはチームに%{score}のメタルをもたらしました。", + "economist_score" : "オーバードライブで%{score}のメタルを生産しました。", + "emp" : "EMPウィザード", + "emp_desc" : "敵ユニットにEMPダメージを与えることで獲得しました。", + "emp_yourscore" : "敵ユニットに%{score}のEMPダメージを与えました。", + "emp_score" : "%{score}のEMPダメージを与えました。", + "exitlobby" : "ロビーへ退出", + "fire" : "マスターグリルシェフ", + "fire_desc" : "敵ユニットに火炎ダメージを与えることで獲得しました。", + "fire_yourscore" : "敵ユニットに%{score}の火炎ダメージを与えました。", + "fire_score" : "%{score}の火炎ダメージを与えました。", + "gameover" : "ゲームオーバーです!", + "gameabort" : "ゲームが中止されました。", + "head" : "ヘッドハンター", + "head_desc" : "敵指揮官を倒すことで獲得。この賞を獲得するには、少なくとも4人倒す必要があります。", + "head_yourscore" : "指揮官の撃破数: %{score}", + "head_score" : "%{score}人の指揮官を倒しました", + "heart" : "クイーンハートブレーカー", + "heart_desc" : "チキンクイーンにダメージを与えることで獲得。", + "heart_yourscore" : "クイーンに%{score}のダメージを与えました。", + "heart_score" : "チキンクイーンに%{score}のダメージを与えました。", + "kam" : "栄光の炎", + "kam_desc" : "自爆ユニットを使用してダメージを与えることで獲得。", + "kam_yourscore" : "自爆ユニットを使用して敵ユニットに%{score}のダメージを与えました。", + "kam_score" : "自爆ユニットによるダメージ:%{score}", + "mex" : "鉱物探鉱者", + "mex_desc" : "チームのために金属抽出装置を建設することで獲得しました。", + "mex_yourscore" : "%{score}台を建設しました。", + "mex_score" : "%{score}台の金属抽出装置を建設しました。", + "mexkill" : "略奪と略奪", + "mexkill_desc" : "敵の金属抽出装置を倒すことで獲得しました。", + "mexkill_yourscore" : "敵の金属抽出装置を%{score}台倒しました。", + "mexkill_score" : "%{score}台の金属抽出装置を倒しました。", + "menace" : "メナスレイヤー", + "menace_desc" : "チキンメナスにダメージを与えることで獲得しました。", + "menace_yourscore" : "メナスに%{score}のダメージを与えました。", + "menace_score" : "メナスに%{score}のダメージを与えました。", + "missile" : "ミサイルマローダー", + "missile_desc" : "ミサイルサイロのミサイルでダメージを与えることで獲得しました。", + "missile_yourscore" : "タクティカルミサイルで%{score}のダメージを与えました。", + "missile_score" : "タクティカルミサイルで%{score}のダメージを与えました。", + "nux" : "終末の功績", + "nux_desc" : "超兵器でダメージを与えて獲得しました。", + "nux_yourscore" : "超兵器で%{score}のダメージを与えました。", + "nux_score" : "超兵器で%{score}のダメージを与えました。", + "ouch" : "ビッグパープルハート", + "ouch_desc" : "体力ダメージを受けることで獲得しました。", + "ouch_yourscore" : "%{score}のダメージを受けました。", + "ouch_score" : "%{score}のダメージを受けました。", + "pwn" : "完全なる殲滅", + "pwn_desc" : "敵ユニットにダメージを与えることで獲得しました。", + "pwn_yourscore" : "敵ユニットに%{score}のダメージを与えました。", + "pwn_score" : "%{score}のダメージを与えました。", + "rage" : "怒り誘発剤", + "rage_desc" : "この実績は実装されていません。", + "rage_yourscore" : "実装されていません。%{score}", + "rage_score" : "%{score}のダメージを受けましたか?", + "reclaim" : "戦利品", + "reclaim_desc" : "残骸やマジックマッシュルームなどの環境からメタルを回収することで獲得しました。", + "reclaim_yourscore" : "メタルを%{score}回収しました。", + "reclaim_score" : "メタルを%{score}回収しました。", + "rezz" : "邪悪なネクロマンサー", + "rezz_desc" : "残骸を復活させることで獲得しました。", + "rezz_yourscore" : "メタル相当の残骸を復活させました。", + "rezz_score" : "メタル相当のユニットを復活させました。", + "repair" : "味方のメカニック", + "repair_desc" : "味方ユニットを修理することで獲得しました。", + "repair_yourscore" : "味方の体力を%{score}回復しました。", + "repair_score": "体力%{score}を修復しました。", + "share": "シェアベア", + "share_desc" : "味方にユニットを共有することで獲得しました。", + "share_yourscore" : "チームメイトに%{score}メタル相当のユニットを共有しました。", + "share_score" : "%{score}メタル相当のユニットを共有しました。", + "shell" : "タートルシェル", + "shell_desc" : "防御を使用して敵ユニットにダメージを与えることで獲得しました。", + "shell_yourscore" : "防御が敵ユニットに%{score}ダメージを与えました。", + "shell_score" : "防御が%{score}ダメージを与えました。", + "shield" : "シールドベアラー", + "shield_desc" : "シールドを使用してダメージを吸収することで獲得しました。", + "shield_yourscore" : "シールドが%{score}ダメージを吸収しました。", + "shield_score" : "シールドを使用して%{score}ダメージを受けました。", + "slow" : "交通警官", + "slow_desc" : "敵ユニットにスロウダメージを与えることで獲得しました。", + "slow_yourscore" : "敵ユニットに%{score}のスロウダメージを与えました。", + "slow_score" : "%{score}のスロウダメージを与えました。", + "statistics" : "統計情報", + "sweeper" : "土地清掃員", + "sweeper_desc" : "鶏小屋を倒すことで獲得しました。", + "sweeper_yourscore" : "%{score}の鶏小屋を倒しました。", + "sweeper_score" : "%{score}の鶏小屋を倒しました。", + "t3" : "実験技師", + "t3_desc" : "この賞はまだ実装されていません。", + "t3_yourscore" : "未実装 %{score}", + "t3_score" : "スコア: %{score}", + "terra" : "伝説の造園家", + "terra_desc" : "テラフォームによって獲得しました。", + "terra_yourscore" : "テラフォームに %{score} メタルを費やしました。", + "terra_score" : "テラフォームに %{score} メタルを費やしました。", + "vet" : "勲章を授与されたベテラン", + "vet_desc" : "ユニットを非常に効果的に使用し、その価値以上のダメージやキルを与えることで獲得しました。", + "vet_yourscore" : "最もコスト効率の良いユニットは %{unitname} で、コストは %{score} でした。", + "victory" : "勝利!", + "teamwins" : "%{name}が勝利!" +} diff --git a/LuaUI/Configs/lang/awards.pl.json b/LuaUI/Configs/lang/awards.pl.json new file mode 100644 index 0000000000..749b664337 --- /dev/null +++ b/LuaUI/Configs/lang/awards.pl.json @@ -0,0 +1,150 @@ +{ + "air" : "Generał Sił Powietrznych", + "air_desc" : "Zdobywa się, uszkadzając jednostki wroga samolotami.", + "air_yourscore" : "Zadałeś %{score} obrażeń samolotami.", + "air_score" : "Obrażenia zadane przez jednostki powietrzne: %{score}", + "apm" : "APM", + "apm_mousespeed" : "Prędkość myszy\n(piksele/sek)", + "apm_clickrate" : "Częstotliwość kliknięć\n(kliknięcia myszą/min)", + "apm_keyspressed" : "Częstotliwość naciśnięć klawiszy\n(naciśnięte klawisze/min)", + "apm_cmd" : "APM\n(polecenia/min)", + "assistant" : "Strategia subsydiowania", + "assistant_desc" : "Zdobywa się, pomagając sojusznikom w projektach budowlanych lub przekazując metal sojusznicy.", + "assistant_yourscore" : "Użyłeś %{score} metalu na pomoc sojusznikom.", + "assistant_score" : "%{score} metalu wykorzystano na pomoc sojusznikom", + "attrition" : "As wyniszczenia", + "attrition_desc" : "Zdobywa się go, zabijając więcej wartości metalu, niż straciłeś. Wynik oblicza się, używając stosunku wartości zabitego do wartości utraconej.", + "attrition_yourscore" : "Twój współczynnik wyniszczenia wyniósł %{score}.", + "attrition_score" : "Współczynnik wyniszczenia: %{score}", + "awards" : "Nagrody", + "cap" : "Mistrz marionetek", + "cap_desc" : "Zdobywa się je, przechwytując jednostki wroga za pomocą promienia przechwytującego dowódcy wsparcia lub dominatrix.", + "cap_yourscore" : "Zdobyto jednostki o wartości %{score} metalu.", + "cap_score" : "Wartość metalu schwytanych wrogów wynosi %{score}.", + "comm" : "Mistrz i dowódca", + "comm_desc" : "Zdobywa się je, zadając obrażenia za pomocą dowódców.", + "comm_yourscore" : "Zadano %{score} obrażeń za pomocą dowódców.", + "comm_score" : "%{score} obrażeń zadanych przez dowódców.", + "commwars" : "Dowódca Zdobywca", + "commwars_desc" : "Zdobywa się za bycie ostatnim dowódcą stojącym w trybie gry Commander Wars.", + "commwars_yourscore" : "Zabiłeś %{score} dowódców.", + "commwars_score" : "Wyeliminowano %{score} dowódców.", + "chicken" : "Pretendent do kurczaka", + "chicken_desc" : "Zdobyte za zdobycie ponad 100 punktów z obecnymi kurczakami. Zdobywaj punkty za dłuższe przetrwanie w walce z zagrożeniem ze strony kurczaków! Każdy zdobywa tę nagrodę.", + "chicken_score" : "Wynik: %{score}", + "chickenWin" : "Chicken Eradicator", + "chickenWin_desc" : "Zdobyte za zdobycie ponad 100 punktów z obecnymi kurczakami na trudniejszych poziomach trudności. Zdobądź więcej punktów, przeżywając dłużej! Każdy zdobywa tę nagrodę.", + "chickenWin_score" : "Wynik: %{score}", + "defeat" : "Defeat!", + "draw_result" : "Draw!", + "drone" : "Drone Director", + "drone_desc" : "Zdobyte za zadawanie obrażeń za pomocą dronów. ", + "drone_yourscore" : "Zadałeś %{score} obrażeń dronami.", + "drone_score" : "%{score} obrażeń zadanych dronami", + "economist" : "Potęga ekonomiczna", + "economist_desc" : "Zdobywa się, produkując metal za pomocą overdrive.", + "economist_yourscore" : "Twój overdrive przyniósł drużynie %{score} metalu.", + "economist_score" : "%{score} metalu wyprodukowanego za pomocą overdrive", + "emp" : "Emp Wizard", + "emp_desc" : "Zdobywa się, zadając obrażenia EMP jednostkom wroga.", + "emp_yourscore" : "Zadałeś %{score} obrażeń emp jednostkom wroga.", + "emp_score" : "Zadano %{score} obrażeń emp", + "exitlobby" : "Wyjście do lobby", + "fire" : "Mistrz grilla", + "fire_desc" : "Zdobywa się, zadając obrażenia od ognia jednostkom wroga.", + "fire_yourscore" : "Zadałeś %{score} obrażeń od ognia jednostkom wroga units.", + "fire_score" : "%{score} obrażeń od ognia zadanych", + "gameover" : "Koniec gry!", + "gameabort" : "Gra przerwana", + "head" : "Łowca głów", + "head_desc" : "Zdobywa się ją, zabijając dowódców wroga. Musisz zabić co najmniej 4, aby otrzymać tę nagrodę.", + "head_yourscore" : "Twój dowódca zabija: %{score}", + "head_score" : "%{score} zabitych dowódców", + "heart" : "Łamiący serca królowej", + "heart_desc" : "Zdobywa się ją, zadając obrażenia królowej kurczaków.", + "heart_yourscore" : "Zadałeś %{score} obrażeń królowej.", + "heart_score" : "%{score} obrażeń zadanych Królowej Kurczaków", + "kam" : "Blaze of Glory", + "kam_desc" : "Zdobywa się zadając obrażenia za pomocą jednostek samobójców.", + "kam_yourscore" : "Zadałeś %{score} obrażeń jednostkom wroga za pomocą jednostek samobójców", + "kam_score" : "%{score} obrażeń zadanych przez jednostki samobójców", + "mex" : "Mineral Prospector", + "mex_desc" : "Zdobywa się, budując ekstraktory metalu dla swojej drużyny.", + "mex_yourscore" : "Zbudowałeś %{score} ekstraktorów metalu.", + "mex_score" : "Zbudowano %{score} ekstraktorów metalu", + "mexkill" : "Łup i grabież", + "mexkill_desc" : "Zdobywa się, zabijając ekstraktory metalu przeciwnika.", + "mexkill_yourscore" : "Zabiłeś %{score} ekstraktorów metalu przeciwnika.", + "mexkill_score" : "Zabito %{score} ekstraktorów metalu", + "menace" : "Zabójca menace", + "menace_desc" : "Zdobywa się, zadając obrażenia kurczakom menace.", + "menace_yourscore" : "Zadałeś %{score} obrażeń menace.", + "menace_score" : "Zadano %{score} obrażeń menaces.", + "missile" : "Missile Marauder", + "missile_desc" : "Zdobywa się zadając obrażenia za pomocą pocisków silosowych.", + "missile_yourscore" : "Zadałeś %{score} obrażeń za pomocą pocisków taktycznych.", + "missile_score" : "%{score} obrażeń zadanych przy użyciu pocisków taktycznych.", + "nux" : "Osiągnięcie Apokaliptyczne", + "nux_desc" : "Zdobywane przez zadawanie obrażeń przy użyciu superbroni.", + "nux_yourscore" : "Zadałeś %{score} obrażeń przy użyciu superbroni.", + "nux_score" : "%{score} obrażeń zadanych przy użyciu superbroni", + "ouch" : "Wielkie Purpurowe Serce", + "ouch_desc" : "Zdobywane przez otrzymywanie obrażeń od zdrowia.", + "ouch_yourscore" : "Otrzymałeś %{score} obrażeń.", + "ouch_score" : "%{score} obrażeń zadanych", + "pwn" : "Ukończona Annihalacja", + "pwn_desc" : "Zdobywa się, zadając obrażenia jednostkom wroga.", + "pwn_yourscore" : "Zadałeś %{score} obrażeń jednostkom wroga.", + "pwn_score" : "Zadano %{score} obrażeń", + "rage" : "Wywołujący wściekłość", + "rage_desc" : "To osiągnięcie nie zostało zaimplementowane.", + "rage_yourscore" : "Nie zaimplementowano. %{score}", + "rage_score" : "Zdobył %{score}?", + "reclaim" : "Łupy wojenne", + "reclaim_desc" : "Zdobywa się, odzyskując metal z otoczenia z takich rzeczy, jak wraki lub grzyby halucynogenne.", + "reclaim_yourscore" : "Odzyskałeś %{score} metalu.", + "reclaim_score" : "Odzyskano %{score} metalu.", + "rezz" : "Podły Nekromanta", + "rezz_desc" : "Zdobywa się przez wskrzeszanie wraków.", + "rezz_yourscore" : "Wskrzesiłeś wraki o wartości %{score} metalu.", + "rezz_score" : "Wskrzeszono jednostki o wartości %{score} metalu.", + "repair" : "Przyjazny mechanik", + "repair_desc" : "Zdobywa się przez naprawę sojuszniczych jednostek.", + "repair_yourscore" : "Naprawiłeś zdrowie swoich sojuszników o wartości %{score}.", + "repair_score" : "Naprawiono zdrowie %{score}.", + "share" : "Udostępnij niedźwiedzia", + "share_desc" : "Zdobywa się przez dzielenie się jednostkami ze swoimi sojusznikami.", + "share_yourscore" : "Udostępniłeś swoim sojusznikom jednostki o wartości %{score} metalu.", + "share_score" : "Metal %{score} wartość współdzielonych jednostek", + "shell" : "Turtle Shell", + "shell_desc" : "Zdobywane przez zadawanie obrażeń jednostkom wroga za pomocą obrony.", + "shell_yourscore" : "Twoje obrony zadały %{score} obrażeń jednostkom wroga.", + "shell_score" : "%{score} obrażeń zadanych przez obronę", + "shield" : "Shieldbearer", + "shield_desc" : "Zdobywane przez przyjmowanie obrażeń za pomocą tarcz.", + "shield_yourscore" : "Twoje tarcze pochłonęły %{score} obrażeń.", + "shield_score" : "%{score} obrażeń otrzymanych za pomocą tarcz", + "slow" : "Policjant ruchu drogowego", + "slow_desc" : "Zdobywa się, zadając powolne obrażenia wrogim jednostkom.", + "slow_yourscore" : "Zadano %{score} powolnych obrażeń wrogim jednostkom.", + "slow_score" : "Zadano %{score} powolnych obrażeń", + "statistics" : "Statystyki", + "sweeper" : "Zamiatacz ziemi", + "sweeper_desc" : "Zdobywa się, zabijając kurniki.", + "sweeper_yourscore" : "Zniszczyłeś %{score} kurników.", + "sweeper_score" : "Zniszczono %{score} kurników", + "t3" : "Inżynier eksperymentalny", + "t3_desc" : "Ta nagroda nie została jeszcze zaimplementowana.", + "t3_yourscore" : "Nie zaimplementowano %{score}", + "t3_score" : "Wynik: %{score}", + "terra" : "Legendarny architekt krajobrazu", + "terra_desc" : "Zdobyto przez terraformowanie.", + "terra_yourscore" : "Wydano %{score} metalu na terraform.", + "terra_score" : "Wydano %{score} metalu na terraform.", + "vet" : "Odznaczony weteran", + "vet_desc" : "Zdobyto przez bardzo efektywne wykorzystanie jednostki do zadania obrażeń lub zabicia większej wartości, niż była warta.", + "vet_yourscore" : "Twoja najbardziej efektywna kosztowo jednostka to %{unitname}, która wyniosła %{score} koszt.", + "vet_score" : "%{unitname}, wyniósł koszt: %{score}", + "victory" : "Zwycięstwo!", + "teamwins" : "Wygrywa %{name}!" + } diff --git a/LuaUI/Configs/lang/awards.pt.json b/LuaUI/Configs/lang/awards.pt.json new file mode 100644 index 0000000000..37975ea8db --- /dev/null +++ b/LuaUI/Configs/lang/awards.pt.json @@ -0,0 +1,150 @@ +{ + "air": "General da Força Aérea", + "air_desc": "Ganho ao causar dano a unidades inimigas com aeronaves.", + "air_yourscore": "Você causou %{score} de dano com aeronaves.", + "air_score": "Dano causado por unidades aéreas: %{score}", + "apm": "APM", + "apm_mousespeed": "Velocidade do Mouse\n(Pixels/seg)", + "apm_clickrate": "Taxa de Cliques\n(Cliques do Mouse/min)", + "apm_keyspressed": "Taxa de Pressionamento de Teclas\n(Teclas Pressionadas/min)", + "apm_cmd": "APM\n(Comandos/min)", + "assistant": "Estratégia de Subsídios", + "assistant_desc": "Ganho ao auxiliar aliados em projetos de construção ou doar metal a aliados.", + "assistant_yourscore": "Você usou %{score} de metal para ajudar seus aliados.", + "assistant_score": "%{score} de metal usado para ajudar aliados", + "attrition": "Ás do Atrito", + "attrition_desc": "Ganho ao matar mais metal do que você perdeu. A pontuação é calculada usando a proporção entre o valor morto e o valor perdido.", + "attrition_yourscore": "Sua taxa de atrito foi de %{score}.", + "attrition_score": "Taxa de atrito: %{score}", + "awards": "Recompensas", + "cap": "Mestre das Marionetes", + "cap_desc": "Ganho ao capturar unidades inimigas com o Raio de Captura do Comandante de Suporte ou com as Dominatrixes.", + "cap_yourscore": "Você capturou %{score} de metal em unidades.", + "cap_score" : "%{score} de metal em inimigos capturados.", + "comm": "Mestre e Comandante", + "comm_desc": "Ganho ao causar dano usando comandantes.", + "comm_yourscore": "Você causou %{score} de dano usando seus comandantes.", + "comm_score": "%{score} de dano causado por comandantes.", + "commwars": "Comandante Conquistador", + "commwars_desc": "Ganho por ser o último comandante sobrevivente no modo de jogo Guerra dos Comandantes.", + "commwars_yourscore": "Você matou %{score} comandantes.", + "commwars_score": "%{score} comandantes eliminados.", + "chicken": "Concorrente das Galinhas", + "chicken_desc": "Ganhado ao marcar mais de 100 pontos com galinhas presentes. Ganhe pontos sobrevivendo por mais tempo contra a ameaça das galinhas! Todos ganham esta recompensa.", + "chicken_score": "Pontuação: %{score}", + "chickenWin": "Erradicador de Galinhas", + "chickenWin_desc": "Ganhado ao marcar mais de 100 pontos com galinhas presentes em dificuldades mais difíceis. Ganhe mais pontos sobrevivendo por mais tempo! Todos ganham esta recompensa.", + "chickenWin_score": "Pontuação: %{score}", + "defeat": "Derrota!", + "draw_result": "Empate!", + "drone": "Diretor de Drones", + "drone_desc": "Ganhado ao causar dano com drones.", + "drone_yourscore" : "Você causou %{score} de dano com drones.", + "drone_score": "%{score} de dano causado com drones", + "economist": "Potência Econômica", + "economist_desc": "Ganho ao produzir metal através de overdrive.", + "economist_yourscore": "Seu overdrive contribuiu com %{score} de metal para a equipe.", + "economist_score": "%{score} de metal produzido através de overdrive", + "emp": "Mago de EMP", + "emp_desc": "Ganho ao causar dano de EMP a unidades inimigas.", + "emp_yourscore": "Você causou %{score} de dano emp a unidades inimigas.", + "emp_score": "%{score} de dano emp causado", + "exitlobby": "Saída para o lobby", + "fire": "Chef Mestre da Churrascaria", + "fire_desc": "Ganho ao causar dano de fogo a unidades inimigas.", + "fire_yourscore": "Você causou %{score} de dano de fogo a unidades inimigas.", + "fire_score": "%{score} de dano de fogo causado", + "gameover": "Fim de jogo!", + "gameabort": "Jogo abortado", + "head": "Caçador de Cabeças", + "head_desc": "Ganho ao matar comandantes inimigos. Você precisa matar pelo menos 4 para se qualificar para esta recompensa.", + "head_yourscore": "Seu comandante matou: %{score}", + "head_score": "%{score} comandantes mortos", + "heart": "Quebra-Corações da Rainha", + "heart_desc": "Ganho ao causar dano à rainha galinha.", + "heart_yourscore": "Você causou %{score} de dano à rainha.", + "heart_score": "%{score} de dano à Rainha Galinha", + "kam": "Explosão de Glória", + "kam_desc": "Ganho ao causar dano usando unidades suicidas.", + "kam_yourscore": "Você causou %{score} de dano a unidades inimigas usando unidades suicidas", + "kam_score": "%{score} de dano causado por unidades suicidas", + "mex": "Gerador de Minerais", + "mex_desc": "Ganho ao construir extratores de metal para sua equipe.", + "mex_yourscore": "Você construiu %{score}.", + "mex_score": "%{score} Extratores de metal construídos", + "mexkill": "Saque e Pilhagem", + "mexkill_desc": "Ganhado ao matar extratores de metal inimigos.", + "mexkill_yourscore": "Você matou %{score} extratores de metal inimigos.", + "mexkill_score": "%{score} extratores de metal mortos", + "menace": "Matador de Ameaças", + "menace_desc": "Ganhado ao causar dano a galinhas ameaçadoras.", + "menace_yourscore": "Você causou %{score} de dano a ameaças.", + "menace_score": "%{score} de dano causado a ameaças.", + "missile": "Saqueador de Mísseis", + "missile_desc": "Ganhado ao causar dano usando mísseis de silo de mísseis.", + "missile_yourscore": "Você causou %{score} de dano usando mísseis táticos.", + "missile_score": "%{score} de dano causado com mísseis táticos.", + "nux": "Conquista Apocalíptica", + "nux_desc": "Ganho ao causar dano com superarmas.", + "nux_yourscore": "Você causou %{score} de dano usando superarmas.", + "nux_score": "%{score} de dano causado com superarmas.", + "ouch": "Grande Coração Púrpura", + "ouch_desc": "Ganho ao receber dano de vida.", + "ouch_yourscore": "Você sofreu %{score} de dano.", + "ouch_score": "%{score} de dano recebido", + "pwn": "Aniquilação Completa", + "pwn_desc": "Ganho ao causar dano a unidades inimigas.", + "pwn_yourscore": "Você causou %{score} de dano a unidades inimigas.", + "pwn_score": "%{score} de dano causado", + "rage": "Indutor de Fúria", + "rage_desc": "Esta conquista não foi implementada.", + "rage_yourscore": "Não implementada. %{score}", + "rage_score": "%{score} conquistados?", + "reclaim": "Espólios de Guerra", + "reclaim_desc": "Ganha recuperando metal do ambiente, como destroços ou cogumelos mágicos.", + "reclaim_yourscore": "Você recuperou %{score} metal.", + "reclaim_score": "%{score} metal recuperado.", + "rezz": "Necromante Vil", + "rezz_desc": "Ganha ressuscitando destroços.", + "rezz_yourscore": "Você ressuscitou %{score} metal de destroços.", + "rezz_score": "%{score} metal de unidades ressuscitado.", + "reparar": "Mecânico Amigável", + "repair_desc": "Ganho ao reparar unidades aliadas.", + "repair_yourscore": "Você reparou %{score} de vida dos seus aliados.", + "repair_score": "%{score} de vida reparada.", + "share": "Compartilhe o Urso", + "share_desc": "Ganho ao compartilhar unidades com seus aliados.", + "share_yourscore": "Você compartilhou %{score} de metal em unidades com seus companheiros de equipe.", + "share_score": "%{score} de metal em unidades compartilhadas", + "shell": "Casco de Tartaruga", + "shell_desc": "Ganho ao causar dano a unidades inimigas usando defesas.", + "shell_yourscore": "Suas defesas infligiram %{score} de dano às unidades inimigas.", + "shell_score": "%{score} de dano causado pelas defesas", + "shield": "Shieldbearer", + "shield_desc": "Ganho ao suportar dano usando escudos.", + "shield_yourscore": "Seus escudos absorveram %{score} de dano.", + "shield_score": "%{score} de dano recebido usando escudos.", + "slow": "Polícia de Trânsito", + "slow_desc": "Ganho ao causar dano de lentidão a unidades inimigas.", + "slow_yourscore": "Você causou %{score} de dano de lentidão a unidades inimigas.", + "slow_score": "%{score} de dano de lentidão causado", + "statistics": "Estatísticas", + "sweeper": "Varredor de Terras", + "sweeper_desc": "Ganho ao matar poleiros de galinhas.", + "sweeper_yourscore": "Você eliminou %{score}.", + "sweeper_score" : "%{score} poleiros de galinhas destruídos", + "t3": "Engenheiro Experimental", + "t3_desc": "Esta condecoração ainda não foi implementada.", + "t3_yourscore": "Não implementado %{score}", + "t3_score": "Pontuação: %{score}", + "terra": "Paisagista Lendário", + "terra_desc": "Ganho por terraformação.", + "terra_yourscore": "Você gastou %{score} de metal em terraformação.", + "terra_score": "%{score} de metal gasto em terraformação.", + "vet": "Veterano Condecorado", + "vet_desc": "Ganho por usar uma unidade de forma muito eficaz para causar dano ou matar mais valor do que ela realmente valia.", + "vet_yourscore": "Sua unidade com melhor custo-benefício foi %{unitname}, o que custou %{score}.", + "vet_score": "%{unitname}, custo obtido: %{score}", + "victory": "Vitória!", + "teamwins": "%{name} vence!" +} diff --git a/LuaUI/Configs/lang/awards.ru.json b/LuaUI/Configs/lang/awards.ru.json new file mode 100644 index 0000000000..73838cf4c3 --- /dev/null +++ b/LuaUI/Configs/lang/awards.ru.json @@ -0,0 +1,150 @@ +{ + "air" : "Генерал ВВС", + "air_desc" : "Зарабатывается за нанесение урона вражеским юнитам с помощью авиации", + "air_yourscore" : "Вы нанесли %{score} урона с помощью авиации", + "air_score" : "Урон, нанесенный воздушными юнитами: %{score}", + "apm" : "APM", + "apm_mousespeed" : "Скорость мыши\n(Пиксели/сек)", + "apm_clickrate" : "Частота щелчков\n(Щелчки мыши/мин)", + "apm_keyspressed" : "Частота нажатия клавиш\n(Нажатия клавиш/мин)", + "apm_cmd" : "APM\n(Команды/мин)", + "assistant" : "Стратегия субсидирования", + "assistant_desc" : "Зарабатывается за помощь союзникам в строительных проектах или пожертвование металла союзникам", + "assistant_yourscore" : "Вы потратили %{score} металла на помощь союзникам.", + "assistant_score" : "%{score} металла использовано на помощь союзникам.", + "attrition" : "Туз истощения", + "attrition_desc" : "Зарабатывается за убийство большего количества металла, чем вы потеряли. Очки рассчитываются с использованием соотношения убитых и потерянных единиц.", + "attrition_yourscore" : "Ваша скорость истощения составила %{score}.", + "attrition_score" : "Скорость истощения: %{score}", + "awards" : "Награды", + "cap" : "Мастер марионеток", + "cap_desc" : "Зарабатывается за захват вражеских юнитов с помощью луча захвата командира поддержки или доминант.", + "cap_yourscore" : "Вы захватили юнитов на сумму %{score} металла.", + "cap_score" : "%{score} металла стоит захваченных врагов", + "comm" : "Мастер и Командир", + "comm_desc" : "Присуждается за нанесение урона с помощью командиров.", + "comm_yourscore" : "Вы нанесли %{score} урона с помощью своих командиров.", + "comm_score" : "%{score} урона, нанесенного командирами.", + "commwars" : "Командир-завоеватель", + "commwars_desc" : "Присуждается за то, что вы последний выживший командир в режиме игры Commander Wars.", + "commwars_yourscore" : "Вы убили %{score} командиров.", + "commwars_score" : "%{score} командиров устранено.", + "chicken" : "Куриный претендент", + "chicken_desc" : "Присуждается за набранные более 100 очков с курицами. Зарабатывайте очки, дольше выживая против куриной угрозы! Все получает эту награду.", + "chicken_score" : "Очки: %{score}", + "chickenWin" : "Уничтожитель кур", + "chickenWin_desc" : "Присуждается за набранные более 100 очков с курами на более высоких уровнях сложности. Зарабатывайте больше очков, выживая дольше! Каждый получает эту награду.", + "chickenWin_score" : "Очки: %{score}", + "defeat" : "Поражение!", + "draw_result" : "Ничья!", + "drone" : "Директор дронов", + "drone_desc" : "Зарабатывается за нанесение урона дронами", + "drone_yourscore" : "Вы нанесли %{score} урона дронами", + "drone_score" : "%{score} урона нанесено дронами", + "economist" : "Экономическая электростанция", + "economist_desc" : "Зарабатывается за производство металла с помощью ускорения", + "economist_yourscore" : "Ваш ускорение принес команде %{score} металла", + "economist_score" : "%{score} металла произведено с помощью ускорения", + "emp" : "Мастер ЭМИ", + "emp_desc" : "Зарабатывается за нанесение ЭМИ урона вражеским юнитам", + "emp_yourscore" : "Вы нанесли %{score} урона ЭМИ вражеским юнитам", + "emp_score" : "%{score} нанесенный урон от emp", + "exitlobby" : "Выход в лобби", + "fire" : "Мастер-повар-гриль", + "fire_desc" : "Присуждается за нанесение урона огнем вражеским юнитам.", + "fire_yourscore" : "Вы нанесли %{score} урона огнем вражеским юнитам.", + "fire_score" : "%{score} урона огнем нанесли", + "gameover" : "Игра окончена!", + "gameabort" : "Игра прервана", + "head" : "Охотник за головами", + "head_desc" : "Присуждается за убийство вражеских командиров. Вы должны убить не менее 4, чтобы претендовать на эту награду.", + "head_yourscore" : "Убийства вашего командира: %{score}", + "head_score" : "Убито командиров: %{score}", + "heart" : "Королева-сердцеедка", + "heart_desc" : "Зарабатывается за нанесение урона куриной королеве.", + "heart_yourscore" : "Вы нанесли %{score} урона куриной королеве.", + "heart_score" : "%{score} урона нанесено куриной королеве.", + "kam" : "Пламя славы.", + "kam_desc" : "Зарабатывается за нанесение урона с помощью самоубийц.", + "kam_yourscore" : "Вы нанесли %{score} урона вражеским юнитам с помощью самоубийц.", + "kam_score" : "%{score} урона нанесено самоубийцами.", + "mex" : "Старатель минералов.", + "mex_desc" : "Зарабатывается за строительство экстракторов металла для вашей команды.", + "mex_yourscore" : "Вы построили %{score}.", + "mex_score" : "%{score} экстракторов металла построено.", + "mexkill" : "Добыча и разграбление", + "mexkill_desc" : "Присваивается за убийство вражеских металлоизвлекателей.", + "mexkill_yourscore" : "Вы убили %{score} вражеских металлоизвлекателей.", + "mexkill_score" : "%{score} металлоизвлекателей убито", + "menace" : "Убийца угроз", + "menace_desc" : "Присваивается за нанесение урона куриным угрозам.", + "menace_yourscore" : "Вы нанесли %{score} урона угрозам.", + "menace_score" : "%{score} урона нанесено угрозам.", + "missile" : "Ракетный мародер", + "missile_desc" : "Присваивается за нанесение урона с помощью ракетных шахт.", + "missile_yourscore" : "Вы нанесли %{score} урона с помощью тактических ракет.", + "missile_score" : "%{score} урона нанесено с помощью тактических ракет.", + "nux" : "Апокалиптическое достижение", + "nux_desc" : "Заработано за нанесение урона с помощью супероружия.", + "nux_yourscore" : "Вы нанесли %{score} урона с помощью супероружия.", + "nux_score" : "%{score} урона нанесено с помощью супероружия", + "ouch" : "Большое пурпурное сердце", + "ouch_desc" : "Получено за получение урона здоровью.", + "ouch_yourscore" : "Вы получили %{score} урона.", + "ouch_score" : "%{score} полученного урона", + "pwn" : "Полное уничтожение", + "pwn_desc" : "Получено за нанесение урона вражеским юнитам.", + "pwn_yourscore" : "Вы нанесли %{score} урона вражеским юнитам.", + "pwn_score" : "%{score} нанесенного урона", + "rage" : "Вызыватель ярости", + "rage_desc" : "Это достижение не реализовано.", + "rage_yourscore" : "Не реализовано. %{score}", + "rage_score" : "%{score} набрано?", + "reclaim" : "Трофеи Война", + "reclaim_desc" : "Зарабатывается за сбор металла из окружающей среды, например, из обломков или волшебных грибов.", + "reclaim_yourscore" : "Вы собрали %{score} металла.", + "reclaim_score" : "%{score} металла собрано.", + "rezz" : "Подлый некромант", + "rezz_desc" : "Зарабатывается за воскрешение обломков.", + "rezz_yourscore" : "Вы воскресили обломков на сумму %{score} металла.", + "rezz_score" : "%{score} металла воскрешенных юнитов.", + "repair" : "Дружелюбный механик", + "repair_desc" : "Зарабатывается за ремонт союзных юнитов.", + "repair_yourscore" : "Вы восстановили здоровье союзников на сумму %{score}.", + "repair_score" : "%{score} здоровья восстановлено.", + "share" : "Поделиться Медведем", + "share_desc" : "Заработано за то, что вы поделились юнитами со своими союзниками.", + "share_yourscore" : "Вы поделились %{score} металлическими юнитами со своими товарищами по команде.", + "share_score" : "%{score} металлическими юнитами, которыми вы поделились", + "shell" : "Панцирь Черепахи", + "shell_desc" : "Заработано за то, что вы нанесли урон вражеским юнитам с помощью защиты.", + "shell_yourscore" : "Ваша защита нанесла %{score} урона вражеским юнитам.", + "shell_score" : "%{score} урона нанесенного защитой", + "shield" : "Щитоносец", + "shield_desc" : "Заработано за то, что выдержали урон с помощью щитов.", + "shield_yourscore" : "Ваши щиты поглотили %{score} урона.", + "shield_score" : "%{score} урона, полученного с помощью щитов", + "slow" : "Гаишник", + "slow_desc" : "Зарабатывается за нанесение медленного урона вражеским юнитам.", + "slow_yourscore" : "Вы нанесли %{score} медленного урона вражеским юнитам.", + "slow_score" : "%{score} медленного урона нанесено", + "statistics" : "Статистика", + "sweeper" : "Чистильщик земли", + "sweeper_desc" : "Зарабатывается за уничтожение куриных насестов.", + "sweeper_yourscore" : "Вы уничтожили %{score}.", + "sweeper_score" : "%{score} куриных насестов уничтожено", + "t3" : "Экспериментальный инженер", + "t3_desc" : "Эта награда пока не реализована.", + "t3_yourscore" : "Не реализована %{score}", + "t3_score" : "Оценка: %{score}", + "terra" : "Легендарный ландшафтный дизайнер", + "terra_desc" : "Заработано за терраформирование.", + "terra_yourscore" : "Вы потратили %{score} металла на терраформирование.", + "terra_score" : "%{score} металла потрачено на терраформирование.", + "vet" : "Награжденный ветеран", + "vet_desc" : "Заработано за очень эффективное использование отряда для нанесения урона или уничтожения большего количества ценностей, чем он стоил.", + "vet_yourscore" : "Ваш самый экономически эффективный отряд был %{unitname}, что составило стоимость %{score}.", + "vet_score" : "%{unitname}, стоимость: %{score}", + "victory" : "Победа!", + "teamwins" : "%{name} побеждает!" +} diff --git a/LuaUI/Configs/lang/awards.th.json b/LuaUI/Configs/lang/awards.th.json new file mode 100644 index 0000000000..b0ffa4c4cb --- /dev/null +++ b/LuaUI/Configs/lang/awards.th.json @@ -0,0 +1,148 @@ +{ + "air" : "นายพลกองทัพอากาศ", + "air_desc" : "ได้รับจากการทำความเสียหายให้หน่วยศัตรูด้วยเครื่องบิน", + "air_yourscore" : "คุณสร้างความเสียหาย %{score} ด้วยเครื่องบิน", + "air_score" : "ความเสียหายที่ทำโดยหน่วยทางอากาศ: %{score}", + "apm" : "APM", + "apm_mousespeed" : "ความเร็วของเมาส์\n(พิกเซล/วินาที)", + "apm_clickrate" : "อัตราการคลิก\n(จำนวนครั้งที่เมาส์คลิก/นาที)", + "apm_keyspressed" : "อัตราการกดปุ่ม\n(จำนวนครั้งที่กด/นาที)", + "apm_cmd" : "APM\n(คำสั่ง/นาที)", + "assistant" : "กลยุทธ์การอุดหนุน", + "assistant_desc" : "ได้รับจากการช่วยเหลือพันธมิตรด้วยโครงการก่อสร้างหรือบริจาคโลหะให้กับพันธมิตร", "assistant_yourscore" : "คุณใช้โลหะ %{score} ชิ้นในการช่วยเหลือพันธมิตรของคุณ", + "assistant_score" : "ใช้โลหะ %{score} ชิ้นในการช่วยเหลือพันธมิตร", + "attrition" : "เอซการสึกกร่อน", + "attrition_desc" : "ได้รับจากการฆ่าโลหะที่มีค่ามากกว่าที่คุณเสียไป คะแนนจะคำนวณโดยใช้อัตราส่วนของค่าที่ฆ่าได้เทียบกับค่าที่เสียไป", + "attrition_yourscore" : "อัตราการสูญเสียของคุณคือ %{score}", + "attrition_score" : "อัตราการสูญเสีย: %{score}", + "awards" : "รางวัล", + "cap" : "ปรมาจารย์แห่งหุ่นเชิด", + "cap_desc" : "ได้รับจากการยึดหน่วยของศัตรูโดยใช้รังสียึดของผู้บัญชาการสนับสนุนหรือโดมินาทริกซ์", + "cap_yourscore" : "คุณยึดหน่วยที่มีค่าโลหะ %{score} ชิ้น", + "cap_score" : "ศัตรูที่จับได้มีค่าโลหะ %{score}", + "comm" : "ปรมาจารย์และผู้บัญชาการ", + "comm_desc" : "ได้รับจากการสร้างความเสียหายโดยใช้ผู้บัญชาการ", + "comm_yourscore" : "คุณสร้างความเสียหาย %{score} โดยใช้ผู้บัญชาการของคุณ", + "comm_score" : "%{score} ความเสียหายที่ทำโดยผู้บัญชาการ", + "commwars" : "ผู้บัญชาการผู้พิชิต", + "commwars_desc" : "ได้รับจากการเป็นผู้บัญชาการคนสุดท้ายที่ยืนหยัดในโหมดเกม Commander Wars", + "commwars_yourscore" : "คุณฆ่าผู้บัญชาการ %{score} คน", + "commwars_score" : "ผู้บัญชาการ %{score} คนถูกกำจัด", + "chicken" : "คู่แข่งไก่", + "chicken_desc" : "ได้รับจากการทำคะแนนได้มากกว่า 100 แต้มโดยมีไก่อยู่ รับคะแนนจากการเอาชีวิตรอดจากการคุกคามของไก่ได้นานขึ้น! ทุกคนได้รับรางวัลนี้", + "chicken_score" : "คะแนน: %{score}", + "chickenWin" : "เครื่องกำจัดไก่", + "chickenWin_desc" : "ได้รับจากการทำคะแนนได้มากกว่า 100 คะแนนโดยมีไก่อยู่ในความยากที่ยากขึ้น รับคะแนนมากขึ้นโดยการเอาชีวิตรอดได้นานขึ้น! ทุกคนได้รับรางวัลนี้", + "chickenWin_score" : "คะแนน: %{score}", + "defeat" : "พ่ายแพ้!", + "draw_result" : "เสมอ!", + "drone" : "ผู้อำนวยการโดรน", + "drone_desc" : "ได้รับจากการสร้างความเสียหายด้วยโดรน", + "drone_yourscore" : "คุณสร้างความเสียหาย %{score} ด้วยโดรน", + "drone_score" : "%{score} ความเสียหายที่จัดการได้ด้วยโดรน", + "economist" : "Economity Powerhouse", + "economist_desc" : "ได้รับจากการผลิตโลหะด้วยความเร็วเกิน", + "economist_yourscore" : "ความเร็วเกินของคุณมีส่วนสนับสนุน %{score} โลหะให้กับทีม", + "economist_score" : "%{score} โลหะที่ผลิตด้วยความเร็วเกิน", + "emp" : "ตัวช่วยสร้าง EMP", + "emp_desc" : "ได้รับจากการสร้างความเสียหายด้วย EMP ให้กับยูนิตศัตรู", + "emp_yourscore" : "คุณสร้างความเสียหายด้วย %{score} emp ให้กับยูนิตศัตรู", + "emp_score" : "%{score} ความเสียหายของ emp ที่เกิดขึ้น", + "exitlobby" : "ออกไปที่ล็อบบี้", + "fire" : "มาสเตอร์ กริลล์ เชฟ", + "fire_desc" : "ได้รับจากการทำความเสียหายจากไฟให้กับหน่วยศัตรู", + "fire_yourscore" : "คุณทำความเสียหายจากไฟได้ %{score} หน่วยศัตรู", + "fire_score" : "ความเสียหายจากไฟ %{score} หน่วย", + "gameover" : "จบเกม!", + "gameabort" : "เกมถูกยกเลิก", + "head" : "นักล่าหัว", + "head_desc" : "ได้รับจากการฆ่าผู้บัญชาการของศัตรู คุณต้องฆ่าอย่างน้อย 4 คนจึงจะมีสิทธิ์ได้รับรางวัลนี้", + "head_yourscore" : "ผู้บัญชาการของคุณฆ่า: %{score}", + "head_score" : "ผู้บัญชาการถูกฆ่า %{score} คน", + "heart" : "Queen Heart Breaker", + "heart_desc" : "ได้รับจากการทำความเสียหายให้กับราชินีไก่", + "heart_yourscore" : "คุณสร้างความเสียหาย %{score} ให้กับราชินี", + "heart_score" : "สร้างความเสียหาย %{score} ให้กับราชินีไก่", + "kam" : "Blaze of Glory", + "kam_desc" : "ได้รับจากการสร้างความเสียหายโดยใช้หน่วยฆ่าตัวตาย", + "kam_yourscore" : "คุณสร้างความเสียหาย %{score} ให้กับหน่วยศัตรูโดยใช้หน่วยฆ่าตัวตาย", + "kam_score" : "สร้างความเสียหาย %{score} ให้กับหน่วยฆ่าตัวตาย", + "mex" : "นักสำรวจแร่", + "mex_desc" : "ได้รับจากการสร้างเครื่องสกัดโลหะสำหรับทีมของคุณ", + "mex_yourscore" : "คุณสร้างเครื่องสกัดโลหะ %{score} เครื่อง", + "mexkill" : "ปล้นสะดมและปล้นสะดม", + "mexkill_desc" : "ได้รับจากการฆ่าโลหะของศัตรู เครื่องสกัดโลหะ", + "mexkill_yourscore" : "คุณฆ่าเครื่องสกัดโลหะของศัตรูไปแล้ว %{score} เครื่อง", + "mexkill_score" : "เครื่องสกัดโลหะถูกฆ่าไปแล้ว %{score} เครื่อง", + "menace" : "นักล่าอันตราย", + "menace_desc" : "ได้รับจากการสร้างความเสียหายให้กับไก่ที่เป็นตัวอันตราย", + "menace_yourscore" : "คุณสร้างความเสียหายให้กับตัวอันตรายได้ %{score} เครื่อง", + "menace_score" : "สร้างความเสียหายให้กับตัวอันตรายได้ %{score} เครื่อง", + "missile" : "Missile Marauder", + "missile_desc" : "ได้รับจากการสร้างความเสียหายโดยใช้ขีปนาวุธไซโล", + "missile_yourscore" : "คุณสร้างความเสียหาย %{score} โดยใช้ขีปนาวุธยุทธวิธี", + "missile_score" : "%{score} ความเสียหายที่เกิดขึ้นจากการใช้ขีปนาวุธยุทธวิธี", + "nux" : "ความสำเร็จในการทำลายล้าง", + "nux_desc" : "ได้รับจากการสร้างความเสียหายโดยใช้อาวุธเหนือมนุษย์", + "nux_yourscore" : "คุณสร้างความเสียหายได้ %{score} โดยใช้อาวุธเหนือมนุษย์", + "nux_score" : "%{score} ความเสียหายที่เกิดขึ้นจากการใช้อาวุธเหนือมนุษย์", + "ouch" : "หัวใจสีม่วงขนาดใหญ่", + "ouch_desc" : "ได้รับจากการรับความเสียหายจากพลังชีวิต", + "ouch_yourscore" : "คุณได้รับความเสียหาย %{score}", + "ouch_score" : "ได้รับความเสียหาย %{score}", + "pwn" : "ทำลายล้างสำเร็จ", + "pwn_desc" : "ได้รับจากการสร้างความเสียหายให้กับหน่วยศัตรู", + "pwn_yourscore" : "คุณสร้างความเสียหายได้ %{score} ความเสียหายต่อหน่วยศัตรู", + "pwn_score" : "%{score} ความเสียหายที่เกิดขึ้น", + "rage" : "ตัวกระตุ้นความโกรธ", + "rage_desc" : "ความสำเร็จนี้ไม่ได้นำไปใช้", + "rage_yourscore" : "ไม่ได้นำไปใช้ %{score}", + "rage_score" : "ได้ %{score} คะแนนแล้วเหรอ?", + "reclaim" : "ของปล้นสงคราม", + "reclaim_desc" : "ได้รับจากการเรียกคืนโลหะจากสิ่งแวดล้อมจากสิ่งของต่างๆ เช่น ซากเรือหรือเห็ดวิเศษ", + "reclaim_yourscore" : "คุณได้เรียกคืนโลหะ %{score} แล้ว", + "reclaim_score" : "ได้เรียกคืนโลหะ %{score} แล้ว", + "rezz" : "นักเล่นไสยศาสตร์ที่ชั่วร้าย", + "rezz_desc" : "ได้รับจากการฟื้นคืนซากเรือ", + "rezz_yourscore" : "คุณได้ฟื้นคืน %{score} ซากรถมีค่าเทียบเท่าโลหะ", + "rezz_score" : "%{score} โลหะที่มีมูลค่าของหน่วยที่ฟื้นคืนชีพ", + "repair" : "ช่างเครื่องฝ่ายเดียวกัน", + "repair_desc" : "ได้รับจากการซ่อมแซมยูนิตฝ่ายพันธมิตร", + "repair_yourscore" : "คุณได้ซ่อมแซมพลังชีวิต %{score} ให้กับพันธมิตรของคุณ", + "repair_score" : "%{score} สุขภาพได้รับการซ่อมแซมแล้ว", + "share" : "แชร์แบร์", + "share_desc" : "ได้รับจากการแบ่งปันยูนิตให้กับพันธมิตรของคุณ", + "share_yourscore" : "คุณได้แชร์หน่วยที่มีมูลค่าโลหะ %{score}", + "share_score" : "%{score} มูลค่าโลหะของหน่วยที่แบ่งปัน", + "shell" : "กระดองเต่า", + "shell_desc" : "ได้รับจากการสร้างความเสียหายให้กับยูนิตของศัตรูโดยใช้การป้องกัน", + "shell_yourscore" : "ของคุณ การป้องกันสร้างความเสียหาย %{score} ให้กับหน่วยศัตรู", + "shell_score" : "%{score} ความเสียหายที่เกิดจากการป้องกัน", + "shield" : "ผู้ถือโล่", + "shield_desc" : "ได้รับจากการแทงค์ความเสียหายโดยใช้โล่", + "shield_yourscore" : "โล่ของคุณดูดซับความเสียหาย %{score}", + "shield_score" : "%{score} ความเสียหายที่ได้รับโดยใช้โล่", + "slow" : "ตำรวจจราจร", + "slow_desc" : "ได้รับจากการสร้างความเสียหายช้าๆ ให้กับหน่วยศัตรู", + "slow_yourscore" : "คุณสร้างความเสียหายช้าๆ %{score} ให้กับหน่วยศัตรู", + "slow_score" : "%{score} ความเสียหายที่ทำได้ช้า", + "statistics" : "Statistics", + "sweeper" : "Land Sweeper", + "sweeper_desc" : "ได้รับจากการฆ่ารังไก่", + "sweeper_yourscore" : "คุณกำจัด %{score} ไปหมด", + "sweeper_score" : "กำจัด %{score} รังไก่", + "t3" : "วิศวกรทดลอง", + "t3_desc" : "รางวัลนี้ยังไม่ได้นำมาใช้", + "t3_yourscore" : "ยังไม่ได้นำมาใช้ %{score}", + "t3_score" : "คะแนน: %{score}", + "terra" : "นักจัดสวนในตำนาน", + "terra_desc" : "ได้รับจากการปรับสภาพภูมิประเทศ", + "terra_yourscore" : "คุณใช้โลหะ %{score} ไปกับการปรับสภาพภูมิประเทศ", + "terra_score" : "ใช้โลหะ %{score} ไปกับการปรับสภาพภูมิประเทศ", + "vet" : "ทหารผ่านศึกที่ได้รับการยกย่อง", + "vet_desc" : "ได้รับจากการใช้หน่วยอย่างมีประสิทธิภาพมาก เพื่อสร้างความเสียหายหรือฆ่าสิ่งที่มีมูลค่ามากกว่าที่ควรจะเป็น", + "vet_yourscore" : "หน่วยที่คุ้มต้นทุนที่สุดของคุณคือ %{unitname} ซึ่งสร้างต้นทุนได้ %{score}", + "vet_score" : "%{unitname}, สร้างต้นทุนได้: %{score}", + "victory" : "ชัยชนะ!", + "teamwins" : "%{name} ชนะ!" +} diff --git a/LuaUI/Configs/lang/awards.tr.json b/LuaUI/Configs/lang/awards.tr.json new file mode 100644 index 0000000000..1daba48de1 --- /dev/null +++ b/LuaUI/Configs/lang/awards.tr.json @@ -0,0 +1,150 @@ +{ + "air" : "Hava Kuvvetleri Generali", + "air_desc" : "Uçakla düşman birimlerine hasar vererek kazanılır.", + "air_yourscore" : "Uçakla %{score} hasar verdiniz.", + "air_score" : "Hava birimlerinin verdiği hasar: %{score}", + "apm" : "APM", + "apm_mousespeed" : "Fare Hızı\n(Piksel/sn)", + "apm_clickrate" : "Tıklama Oranı\n(Fare Tıklamaları/dk)", + "apm_keyspressed" : "Tuş Basma Oranı\n(Basılan Tuşlar/dk)", + "apm_cmd" : "APM\n(Komutlar/dk)", + "assistant" : "Subvansiyon Stratejisi", + "assistant_desc" : "Müttefiklere inşaat projelerinde yardımcı olarak veya müttefiklere metal bağışlayarak kazanılır.", + "assistant_yourscore" : "Müttefiklerinize yardım etmek için %{score} metal kullandınız.", + "assistant_score" : "Müttefiklerinize yardım etmek için %{score} metal kullandınız", + "attrition" : "Attrition Ası", + "attrition_desc" : "Kaybettiğinizden daha fazla metal değeri öldürerek kazanılır. Puan, öldürülen değerin kaybedilen değere oranı kullanılarak hesaplanır.", + "attrition_yourscore" : "Attrition oranınız %{score}.", + "attrition_score" : "Attrition oranı: %{score}", + "awards" : "Ödüller", + "cap" : "Kuklaların Efendisi", + "cap_desc" : "Düşman birimlerini Destek Komutanının Yakalama Işını veya Kadın Egemenler aracılığıyla ele geçirerek kazanılır.", + "cap_yourscore" : "%{score} değerinde birim ele geçirdiniz.", + "cap_score" : "Ele geçirilen düşmanın metal değeri %{score} oldu.", + "comm" : "Usta ve Komutan", + "comm_desc" : "Komutanları kullanarak hasar vererek kazanılır.", + "comm_yourscore" : "Komutanlarınızı kullanarak %{score} hasar verdiniz.", + "comm_score" : "Komutanlar tarafından %{score} hasar verildi.", + "commwars" : "Komutan Fatih", + "commwars_desc" : "Komutan savaşları oyun modunda ayakta kalan son komutan olarak kazanılır.", + "commwars_yourscore" : "%{score} komutanı öldürdünüz.", + "commwars_score" : "%{score} komutan elendi.", + "chicken" : "Tavuk Yarışmacısı", + "chicken_desc" : "Tavuklar varken 100'den fazla puan alarak kazanılır. Tavuk tehdidine karşı daha uzun süre hayatta kalarak puan kazanın! Herkes bu ödülü kazanır.", + "chicken_score" : "Puan: %{score}", + "chickenWin" : "Tavuk Yok Edici", + "chickenWin_desc" : "Daha zor zorluklarda tavuklar varken 100'den fazla puan alarak kazanılır. Daha uzun süre hayatta kalarak daha fazla puan kazanın! Herkes bu ödülü kazanır.", + "chickenWin_score" : "Puan: %{score}", + "defeat" : "Yenilgi!", + "draw_result" : "Beraberlik!", + "drone" : "İHA Yöneticisi", + "drone_desc" : "İHA'larla hasar vererek kazanılır.", + "drone_yourscore" : "İHA'larla %{score} hasar verdiniz.", + "drone_score" : "İHA'larla %{score} hasar verildi", + "economist" : "Ekonomik Güç Merkezi", + "economist_desc" : "Aşırı hız ile metal üreterek kazanılır.", + "economist_yourscore" : "Aşırı hızınız takıma %{score} metal kazandırdı.", + "economist_score" : "Aşırı hız ile üretilen %{score} metal", + "emp" : "EMP Sihirbazı", + "emp_desc" : "Düşman birimlerine EMP hasarı vererek kazanıldı.", + "emp_yourscore" : "Düşman birimlerine %{score} emp hasarı verdiniz.", + "emp_score" : "%{score} emp hasarı verildi", + "exitlobby" : "Lobiye çık", + "fire" : "Usta Izgara Şefi", + "fire_desc" : "Düşman birimlerine ateş hasarı vererek kazanılır.", + "fire_yourscore" : "Düşman birimlerine %{score} ateş hasarı verdiniz.", + "fire_score" : "%{score} ateş hasarı verildi", + "gameover" : "Oyun bitti!", + "gameabort" : "Oyun iptal edildi", + "head" : "Kafa Avcısı", + "head_desc" : "Düşman komutanlarını öldürerek kazanılır. Bu ödüle hak kazanmak için en az 4 kişiyi öldürmelisiniz.", + "head_yourscore" : "Komutanınız öldürdü: %{score}", + "head_score" : "%{score} komutan öldürdü", + "heart" : "Kraliçenin Kalbini Kıran", + "heart_desc" : "Tavuk kraliçesine hasar vererek kazanılır.", + "heard_yourscore" : "Kraliçeye %{score} hasar verdiniz.", + "heart_score" : "Tavuk Kraliçesine %{score} hasar verildi", + "kam" : "Glory'nin Parıltısı", + "kam_desc" : "İntihar birimleri kullanarak hasar vererek kazanıldı.", + "kam_yourscore" : "İntihar birimleri kullanarak düşman birimlerine %{score} hasar verdiniz", + "kam_score" : "İntihar birimleri tarafından %{score} hasar verildi", + "mex" : "Maden Arayıcısı", + "mex_desc" : "Takımınız için metal çıkarıcılar inşa ederek kazanıldı.", + "mex_yourscore" : "%{score} inşa ettiniz.", + "mex_score" : "%{score} metal çıkarıcı inşa ettiniz", + "mexkill" : "Ganimet ve Yağma", + "mexkill_desc" : "Düşman metal çıkarıcılarını öldürerek kazanıldı.", + "mexkill_yourscore" : "%{score} düşman metal çıkarıcısını öldürdünüz.", + "mexkill_score" : "%{score} metal çıkarıcı öldürüldü", + "menace" : "Tehdit Katili", + "menace_desc" : "Tavuk tehditlerine hasar vererek kazanıldı.", + "menace_yourscore" : "Tehditlere %{score} hasar verdiniz.", + "menace_score" : "Tehditlere %{score} hasar verildi.", + "missile" : "Füze Yağmacısı", + "missile_desc" : "Füze silosu füzeleri kullanarak hasar vererek kazanıldı.", + "missile_yourscore" : "Taktik füzeleri kullanarak %{score} hasar verdiniz.", + "missile_score" : "Taktik füzeleri kullanarak %{score} hasar verildi.", + "nux" : "Kıyamet Başarısı", + "nux_desc" : "Süper silahlar kullanarak hasar vererek kazanıldı.", + "nux_yourscore" : "Süper silahlar kullanarak %{score} hasar verdiniz.", + "nux_score" : "Süper silahlar kullanarak %{score} hasar verdiniz", + "ouch" : "Büyük Mor Kalp", + "ouch_desc" : "Sağlık hasarı alarak kazanıldı.", + "ouch_yourscore" : "%{score} hasar aldınız.", + "ouch_score" : "%{score} hasar aldınız", + "pwn" : "İmhayı Tamamla", + "pwn_desc" : "Düşman birimlerine hasar vererek kazanıldı.", + "pwn_yourscore" : "Düşman birimlerine %{score} hasar verdiniz.", + "pwn_score" : "%{score} hasar verdiniz", + "rage" : "Öfke tetikleyici", + "rage_desc" : "Bu başarı uygulanmadı.", + "rage_yourscore" : "Uygulanmadı. %{score}", + "rage_score" : "%{score} puan aldı mı?", + "reclaim" : "Savaş Ganimetleri", + "reclaim_desc" : "Enkaz veya sihirli mantar gibi şeylerden çevreden metal geri kazanarak kazanılır.", + "reclaim_yourscore" : "%{score} metal geri kazandınız.", + "reclaim_score" : "%{score} metal geri kazanıldı.", + "rezz" : "Alçak Nekromanser", + "rezz_desc" : "Enkazları dirilterek kazanılır.", + "rezz_yourscore" : "%{score} değerinde metal değerinde enkazı dirilttiniz.", + "rezz_score" : "%{score} değerinde metal değerinde birim diriltildi.", + "repair" : "Dost Mekanik", + "repair_desc" : "Müttefik birimleri onararak kazanılır.", + "repair_yourscore" : "Müttefiklerinize %{score} can onardınız.", + "repair_score" : "%{score} can onarıldı.", + "share" : "Paylaşım Ayısı", + "share_desc" : "Birlikleri müttefiklerinizle paylaşarak kazanılır.", + "share_yourscore" : "%{score} değerinde metal birimi takım arkadaşlarınızla paylaştınız.", + "share_score" : "%{score} değerinde metal birimi paylaşıldı", + "shell" : "Kaplumbağa Kabuğu", + "shell_desc" : "Savunma kullanarak düşman birimlerine hasar vererek kazanılır.", + "shell_yourscore" : "Savunmalarınız düşman birimlerine %{score} hasar verdi.", + "shell_score" : "Savunmaların verdiği %{score} hasar", + "shield" : "Kalkan Taşıyıcısı", + "shield_desc" : "Kalkanlar kullanarak hasarı tanklayarak kazanılır.", + "shield_yourscore" : "Kalkanlarınız %{score} hasar emdi.", + "shield_score" : "%{score} hasar kullanarak alınan shields", + "slow" : "Trafik Polisi", + "slow_desc" : "Düşman birimlerine yavaş hasar vererek kazanılır.", + "slow_yourscore" : "Düşman birimlerine %{score} yavaş hasar verdiniz.", + "slow_score" : "%{score} yavaş hasar verildi", + "statistics" : "İstatistikler", + "sweeper" : "Kara Süpürgesi", + "sweeper_desc" : "Tavuk tüneklerini öldürerek kazanılır.", + "sweeper_yourscore" : "%{score}'u yok ettiniz.", + "sweeper_score" : "%{score} tavuk tünekleri yok edildi", + "t3" : "Deneysel Mühendis", + "t3_desc" : "Bu ödül henüz uygulanmadı.", + "t3_yourscore" : "Uygulanmadı %{score}", + "t3_score" : "Puan: %{score}", + "terra" : "Efsanevi Peyzajcı", + "terra_desc" : "Terraform yaparak kazanıldı.", + "terra_yourscore" : "Terraform için %{score} metal harcadınız.", + "terra_score" : "Terraform için %{score} metal harcadınız.", + "vet" : "Dekorasyonlu Gazi", + "vet_desc" : "Bir birimi hasar vermek veya değerinden daha fazla değer öldürmek için çok etkili bir şekilde kullanarak kazanıldı.", + "vet_yourscore" : "En uygun maliyetli biriminiz %{score} maliyetine sahip olan %{unitname} oldu.", + "vet_score" : "%{unitname}, maliyet: %{score}", + "victory" : "Zafer!", + "teamwins" : "%{name} kazandı!" +} diff --git a/LuaUI/Configs/lang/awards.zh.json b/LuaUI/Configs/lang/awards.zh.json new file mode 100644 index 0000000000..82370cf0d6 --- /dev/null +++ b/LuaUI/Configs/lang/awards.zh.json @@ -0,0 +1,150 @@ +{ + "air": "空军将领", + "air_desc": "使用飞机对敌方单位造成伤害获得。", + "air_yourscore": "你使用飞机造成了 %{score} 点伤害。", + "air_score": "空中单位造成的伤害:%{score}", + "apm": "每分钟", + "apm_mousespeed": "鼠标速度\n(像素/秒)", + "apm_clickrate": "点击率\n(鼠标点击次数/分钟)", + "apm_keyspressed": "按键率\n(按键次数/分钟)", + "apm_cmd": "每分钟\n(命令次数/分钟)", + "assistant": "补贴策略", + "assistant_desc": "通过协助盟友进行建设项目或向盟友捐赠金属获得。", + "assistant_yourscore": "您使用了 %{score} 金属来协助您的盟友。", + "assistant_score": "用于协助盟友的 %{score} 金属", + "attrition": "消耗王牌", + "attrition_desc": "通过击杀的金属价值超过损失的金属价值获得。分数是根据击杀价值与损失价值的比率计算的。", + "attrition_yourscore": "您的消耗率为 %{score}。", + "attrition_score": "消耗率:%{score}", + "awards": "奖励", + "cap": "傀儡大师", + "cap_desc": "通过支援指挥官的捕获射线或施虐狂捕获敌方单位获得。", + "cap_yourscore": "您捕获了价值 %{score} 金属的单位。", + "cap_score" : "捕获敌人价值 %{score} 金属。", + "comm": "大师和指挥官", + "comm_desc": "使用指挥官造成伤害即可获得。", + "comm_yourscore": "您使用指挥官造成了 %{score} 点伤害。", + "comm_score": "指挥官造成了 %{score} 点伤害。", + "commwars": "征服指挥官", + "commwars_desc": "在指挥官战争游戏模式中,成为最后一位存活下来的指挥官即可获得。", + "commwars_yourscore": "您击杀了 %{score} 名指挥官。", + "commwars_score": "淘汰了 %{score} 名指挥官。", + "chicken": "鸡肉争夺者", + "chicken_desc": "在有鸡的情况下获得超过 100 分即可获得。在鸡的威胁下存活更长时间即可获得积分!每个人都可以获得此奖励。", + "chicken_score": "得分:%{score}", + "chickenWin": "小鸡消灭者", + "chickenWin_desc": "在更高难度下,当有小鸡出现时,得分超过 100 分即可获得。存活时间越长,得分越高!每个人都可以获得此奖励。", + "chickenWin_score": "得分:%{score}", + "defeat": "失败!", + "draw_result": "平局!", + "drone": "无人机指挥官", + "drone_desc": "使用无人机造成伤害即可获得。", + "drone_yourscore": "你使用无人机造成了 %{score} 点伤害。", + "drone_score": "使用无人机造成了 %{score} 点伤害", + "economist": "经济强国", + "economist_desc": "通过超速生产金属获得。", + "economist_yourscore": "你的超速为团队贡献了 %{score} 金属。", + "economist_score": "通过超速生产了 %{score} 金属。", + "emp": "电磁脉冲巫师。", + "emp_desc": "通过对敌方单位造成电磁脉冲伤害获得。", + "emp_yourscore": "你对敌方单位造成了 %{score} 点电磁脉冲伤害。", + "emp_score": "造成了 %{score} 点电磁脉冲伤害。", + "exitlobby": "退出大厅。", + "fire": "烧烤大师。", + "fire_desc": "通过对敌方单位造成火焰伤害获得。", + "fire_yourscore": "你对敌方单位造成了 %{score} 点火焰伤害。", + "fire_score": "造成 %{score} 点火焰伤害", + "gameover": "游戏结束!", + "gameabort": "游戏中止", + "head": "猎头人", + "head_desc": "通过击杀敌方指挥官获得。您必须击杀至少 4 名才能获得此奖励。", + "head_yourscore": "您的指挥官击杀数:%{score}", + "head_score": "已击杀 %{score} 名指挥官", + "heart": "女王心碎者", + "heart_desc": "通过对鸡女王造成伤害获得。", + "heard_yourscore": "您对女王造成了 %{score} 点伤害。", + "heart_score": "对鸡女王造成了 %{score} 点伤害", + "kam": "荣耀之光", + "kam_desc": "通过自杀造成伤害获得单位。", + "kam_yourscore": "你使用自杀单位对敌方单位造成了 %{score} 点伤害", + "kam_score": "自杀单位造成的伤害为 %{score} 点", + "mex": "矿产勘探员", + "mex_desc": "通过为你的队伍建造金属提取器获得。", + "mex_yourscore": "你建造了 %{score} 台。", + "mex_score": "建造了 %{score} 台金属提取器", + "mexkill": "掠夺与劫掠", + "mexkill_desc": "通过击杀敌方金属采集器获得。", + "mexkill_yourscore": "你击杀了 %{score} 个敌方金属采集器。", + "mexkill_score": "击杀了 %{score} 个金属采集器。", + "menace": "威胁杀手", + "menace_desc": "通过对小鸡威胁造成伤害获得。", + "menace_yourscore": "你对威胁造成了 %{score} 点伤害。", + "menace_score": "对威胁造成了 %{score} 点伤害。", + "missile": "导弹掠夺者", + "missile_desc": "通过使用导弹发射井导弹造成伤害获得。", + "missile_yourscore": "你使用战术导弹。", + "missile_score": "使用战术导弹造成 %{score} 点伤害。", + "nux": "末日成就", + "nux_desc": "使用超级武器造成伤害获得。", + "nux_yourscore": "你使用超级武器造成了 %{score} 点伤害。", + "nux_score": "使用超级武器造成了 %{score} 点伤害。", + "ouch": "大紫心勋章", + "ouch_desc": "受到生命值伤害获得。", + "ouch_yourscore": "你受到了 %{score} 点伤害。", + "ouch_score": "受到 %{score} 点伤害。", + "pwn": "彻底歼​​灭", + "pwn_desc": "对敌方单位造成伤害获得。", + "pwn_yourscore": "你对敌方单位造成了 %{score} 点伤害。", + "pwn_score": "造成了 %{score} 点伤害", + "rage": "愤怒诱导者", + "rage_desc": "此成就尚未实现。", + "rage_yourscore": "未实现。%{score}", + "rage_score": "得分为 %{score}?", + "reclaim": "战利品", + "reclaim_desc": "通过从环境中回收金属(例如残骸或迷幻蘑菇)获得。", + "reclaim_yourscore": "您回收了 %{score} 金属。", + "reclaim_score": "回收了 %{score} 金属。", + "rezz": "邪恶的死灵法师", + "rezz_desc": "通过复活残骸获得。", + "rezz_yourscore": "您复活了价值 %{score} 金属的残骸。", + "rezz_score": "复活价值 %{score} 金属的单位。", + "repair": "友方机械师", + "repair_desc": "通过修复友方单位获得。", + "repair_yourscore": "你为你的友方修复了 %{score} 点生命值。", + "repair_score": "修复了 %{score} 点生命值。", + "share": "分享熊", + "share_desc": "通过与你的友方分享单位获得。", + "share_yourscore": "你与你的队友分享了价值 %{score} 金属的单位。", + "share_score": "分享了价值 %{score} 金属的单位。", + "shell": "龟壳", + "shell_desc": "通过使用防御对敌方单位造成伤害获得。", + "shell_yourscore": "你的防御造成了 %{score}对敌方单位造成伤害。", + "shell_score": "防御单位造成的 %{score} 点伤害", + "shield": "持盾者", + "shield_desc": "使用盾牌承受伤害获得。", + "shield_yourscore": "你的盾牌吸收了 %{score} 点伤害。", + "shield_score": "使用盾牌受到 %{score} 点伤害", + "slow": "交通警察", + "slow_desc": "对敌方单位造成减速伤害获得。", + "slow_yourscore": "你对敌方单位造成了 %{score} 点减速伤害。", + "slow_score": "造成了 %{score} 点减速伤害", + "statistics": "统计", + "sweeper": "陆地清扫者", + "sweeper_desc": "杀死鸡窝获得。", + "sweeper_yourscore": "您消灭了 %{score} 个鸡舍。", + "sweeper_score": "消灭了 %{score} 个鸡舍。", + "t3": "实验工程师。", + "t3_desc": "此奖项尚未实施。", + "t3_yourscore": "未实施 %{score}。", + "t3_score": "得分:%{score}。", + "terra": "传奇景观设计师。", + "terra_desc": "通过地形改造获得。", + "terra_yourscore": "您花费了 %{score} 金属进行地形改造。", + "terra_score": "花费了 %{score} 金属进行地形改造。", + "vet": "荣誉老兵。", + "vet_desc": "通过使用单位非常有效地造成伤害或击杀,其价值超过了其应有的价值。", + "vet_yourscore": "您最具成本效益的单位是 %{unitname},其成本为 %{score}。", + "vet_score": "%{unitname},成本为:%{score}", + "victory": "胜利!", + "teamwins": "%{name} 获胜!" +} diff --git a/LuaUI/Widgets/gui_chili_endgamewindow.lua b/LuaUI/Widgets/gui_chili_endgamewindow.lua index 2eb22a38b8..fe9861774d 100644 --- a/LuaUI/Widgets/gui_chili_endgamewindow.lua +++ b/LuaUI/Widgets/gui_chili_endgamewindow.lua @@ -2,15 +2,15 @@ -------------------------------------------------------------------------------- function widget:GetInfo() - return { - name = "Chili EndGame Window", - desc = "v0.005 Chili EndGame Window. Creates award control and receives stats control from another widget.", - author = "CarRepairer", - date = "2013-09-05", - license = "GNU GPL, v2 or later", - layer = 0, - enabled = true, - } + return { + name = "Chili EndGame Window", + desc = "v0.005 Chili EndGame Window. Creates award control and receives stats control from another widget.", + author = "CarRepairer, localization by Shaman", + date = "2013-09-05", + license = "GNU GPL, v2 or later", + layer = 0, + enabled = true, + } end -------------------------------------------------------------------------------- @@ -39,6 +39,7 @@ local Line local screen0 local color2incolor local incolor2color +local winners -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- @@ -77,12 +78,22 @@ local SELECT_BUTTON_COLOR = {0.98, 0.48, 0.26, 0.85} local SELECT_BUTTON_FOCUS_COLOR = {0.98, 0.48, 0.26, 0.85} local BUTTON_COLOR local BUTTON_FOCUS_COLOR +local controlsSetup = false +local checkFont + local awardDescs = VFS.Include("LuaRules/Configs/award_names.lua") +local text = {} local teamNames = {} local teamColors = {} local teamApmStatsLabels = {} +local localizationNames = { + ["apm_mousespeed"] = true, + ["apm_clickrate"] = true, + ["apm_keyspressed"] = true, + ["apm_cmd"] = true, +} -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- @@ -98,6 +109,7 @@ options = { dontRegisterAction = true, }, } + -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- --utilities @@ -112,7 +124,8 @@ local function SetTeamNamesAndColors() local name = Spring.GetPlayerInfo(leader, false) teamNames[teamID] = name end - teamColors[teamID] = Chili.color2incolor(Spring.GetTeamColor(teamID)) + name = name or "Unknown" + teamColors[teamID] = Chili.color2incolor(Spring.GetTeamColor(teamID)) or Chili.color2incolor(1,1,1,1) end end @@ -127,22 +140,129 @@ local function SetButtonSelected(button, isSelected) button:Invalidate() end +local function comma_value(amount) + local formatted = amount .. '' + local k + while true do + formatted, k = formatted:gsub("^(-?%d+)(%d%d%d)", '%1,%2') + if (k==0) then + break + end + end + return formatted +end + +local function GetBestFitFontSizeJapanese(text, width, wantedSize) -- Japanese is beyond stupid with GetTextWidth it seems. Need individual iconograph sizes. + local array = {} + for word in text:gmatch("[%z\1-\127\194-\244][\128-\191]*") do + array[#array + 1] = word + end + local fits = false + local currentSize = wantedSize + local length = 0 + while not fits do + for i = 1, #array do + length = length + (checkFont:GetTextWidth(text, 1) * currentSize) + end + if length > width then + currentSize = currentSize - 1 + length = 0 + else + fits = true + end + end + return currentSize +end + + +local function GetBestFitFontSize(text, width, wantedSize) + local fits = false + local currentSize = wantedSize + while not fits do + Spring.Echo("CheckSize: " .. checkFont:GetTextWidth(text, 1) * currentSize) + fits = checkFont:GetTextWidth(text, 1) * currentSize < width - 2 + if not fits then + currentSize = currentSize - 1 + end + end + return currentSize +end + -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- --awards local function MakeAwardPanel(awardType, record) - local desc = awardDescs[awardType] - local fontsize = desc:len() > 25 and 12 or 16 - return Panel:New{ - width=230; - height=awardPanelHeight; + local desc = awardDescs[awardType] -- localized via OnLocaleChanged + if desc == awardType then + desc = WG.Translate("interface", awardType) -- might not have initialized yet. + end + local fontsize, recordFontSize + if WG.lang == 'ja' then + fontsize = GetBestFitFontSizeCJK(desc, 180, 16) + else + fontsize = GetBestFitFontSize(desc, 180, 16) + end + local descLen = desc:len() + Spring.Echo(awardType .. " Desc Length: " .. descLen .. ", " .. fontsize) + local score = Spring.GetGameRulesParam(awardType .. "_rawscore") + if score then -- precaution. + if awardType == 'attrition' or awardType == 'vet' then + score = string.format("%.2f%%%%", score * 100) + else + if score > 1000 then + score = comma_value(math.floor(score)) + else + score = string.format("%.1f", score) + end + end + if awardType ~= 'vet' then + record = WG.Translate("interface", awardType .. "_score", {score = score}) -- translate. + else + local bestUnit = WG.Translate("units", Spring.GetGameRulesParam("vet_unitdef") .. ".name") or UnitDefNames[bestUnitDef].humanName + record = WG.Translate("interface", awardType .. "_score", {score = score, unitname = bestUnit}) -- translate. + end + end + local recordLength = record:len() + if WG.lang == 'ja' then + recordFontSize = GetBestFitFontSizeCJK(record, 180, 16) + else + recordFontSize = GetBestFitFontSize(record, 180, 16) + end + Spring.Echo("Record Length: " .. recordLength .. ", " .. recordFontSize) + local myTeamID = Spring.GetMyTeamID() + local myScore = Spring.GetGameRulesParam(myTeamID .. "_" .. awardType .. "_score") + local tooltipString = WG.Translate("interface", awardType .. "_desc") + if myScore and myScore > 0 and awardType ~= "chickenWin" and awardType ~= "chicken" then -- chicken and chickenwin are cooperative awards that everyone gets. Just explain how they're earned. + if awardType == 'attrition' or awardType == 'vet' then + myScore = string.format("%.2f%%%%", myScore * 100) -- format in a more human readable way. These are ratios, let's present them in percentages. + else + if myScore > 999 then + myScore = comma_value(math.floor(myScore)) + else + myScore = math.floor(myScore) + end + end + if awardType == "vet" then + local bestUnitDef = Spring.GetGameRulesParam(Spring.GetMyTeamID() .. "_vet_unit") + local myBestUnit = WG.Translate("units", bestUnitDef .. ".name") or UnitDefNames[bestUnitDef].humanName + tooltipString = tooltipString .. "\n\n" .. WG.Translate("interface", awardType .. "_yourscore", {score = myScore, unitname = myBestUnit}) + else -- vet needs special support. + tooltipString = tooltipString .. "\n\n" .. WG.Translate("interface", awardType .. "_yourscore", {score = myScore}) + end + end + local newPanel = Panel:New{ + width=230, + height=awardPanelHeight, + HitTest = function (self, x, y) return self end, + tooltip = tooltipString, children = { - Image:New{ file='LuaRules/Images/awards/trophy_'.. awardType ..'.png'; parent=awardPanel; x=0;y=0; width=30; height=40; objectOverrideFont = WG.GetFont(), }; - Label:New{ caption = desc; autosize=true, height=L_HEIGHT, parent=awardPanel; x=35; y=0; textColor={1,1,0,1}; objectOverrideFont = WG.GetFont(fontsize), }; - Label:New{ caption = record, autosize=true, height=L_HEIGHT, parent=awardPanel; x=35; y=20, objectOverrideFont = WG.GetFont(), }; - } + Image:New{name = awardType .. "_icon", file='LuaRules/Images/awards/trophy_'.. awardType ..'.png'; parent=awardPanel; x=0;y=0; width=30; height=40; objectOverrideFont = WG.GetFont(), }; + Label:New{name = awardType .. "_name", caption = desc; autosize=true, height=L_HEIGHT, parent=awardPanel; x=35; y=0; textColor={1,1,0,1}; objectOverrideFont = WG.GetFont(fontsize), }; + Label:New{name = awardType .. "_record", caption = record, autosize=true, height=L_HEIGHT, parent=awardPanel; x=35; y=20, objectOverrideFont = WG.GetFont(recordFontSize), }; + }, } + return newPanel end local function SetupAwardsPanel() @@ -183,6 +303,7 @@ end local function SetupAPMPanel() Label:New{ + name = "empty", parent=apmSubPanel, width=200, y=200, @@ -194,38 +315,42 @@ local function SetupAPMPanel() } Label:New{ parent=apmSubPanel, + name = "apm_mousespeed", width=200, y=200, height=awardPanelHeight, - caption = "Mouse Speed\n(Pixels/s)", + caption = WG.Translate("interface", "apm_mousespeed"), valign='center', autosize=false, objectOverrideFont = WG.GetFont(), } Label:New{ parent=apmSubPanel, + name = "apm_clickrate", width=200, --y = 120, height=awardPanelHeight, - caption = "Click Rate\n(Mouse Clicks/m)", + caption = WG.Translate("interface", "apm_clickrate"), valign='center', autosize=false, objectOverrideFont = WG.GetFont(), } Label:New{ parent=apmSubPanel, + name = "apm_keyspressed", width=200, height=awardPanelHeight, - caption = "Key Press Rate\n(Keys Pressed/m)", + caption = WG.Translate("interface", "apm_keyspressed"), valign='center', autosize=false, objectOverrideFont = WG.GetFont(), } Label:New{ parent=apmSubPanel, + name = "apm_cmd", width=200, height=awardPanelHeight, - caption = "APM\n(Cmds/m)", + caption = WG.Translate("interface", "apm_cmd"), valign='center', autosize=false, objectOverrideFont = WG.GetFont(), @@ -456,9 +581,10 @@ local function SetupControls() awardButton = Button:New{ parent = window_endgame; - caption="Awards", + caption = WG.Translate("interface", "awards"), objectOverrideFont = WG.GetFont(), x=9, y=7, + width = 10 .. "%", height=B_HEIGHT; OnClick = { ShowAwards @@ -470,8 +596,9 @@ local function SetupControls() statsButton = Button:New{ parent = window_endgame; - caption="Statistics", - x=86, y=7, + caption= WG.Translate("interface", "statistics"), + x= 10.9 .. "%", y=7, + width = 10 .. "%", objectOverrideFont = WG.GetFont(), height=B_HEIGHT; OnClick = { @@ -484,7 +611,8 @@ local function SetupControls() apmButton = Button:New{ parent = window_endgame; caption="APM", - x=86+77, y=7, + x= 21 .. "%", y=7, + width = 10 .. "%", objectOverrideFont = WG.GetFont(), height=B_HEIGHT; OnClick = { @@ -492,11 +620,11 @@ local function SetupControls() }; } exitButton = Button:New{ - x = -169, -- This is is a high class nonsense here + x = 79 .. "%", y = 7, - width = 160, + width = 20 .. "%", height = B_HEIGHT, - caption = "Exit to Lobby", + caption = WG.Translate("interface", "exitlobby"), objectOverrideFont = WG.GetFont(18), OnClick = { function() @@ -509,13 +637,15 @@ local function SetupControls() }, parent = window_endgame, } + controlsSetup = true end -local function SetEndgameCaption(winners) +local function SetEndgameCaption() + if winners == nil then return end local gaiaAllyTeamID = select(6, Spring.GetTeamInfo(Spring.GetGaiaTeamID(), false)) if #winners > 1 then if spec then - endgame_caption = "Game over!" + endgame_caption = WG.Translate("interface", "gameover") endgame_fontcolor = {1,1,1,1} else local i_win = false @@ -526,10 +656,10 @@ local function SetEndgameCaption(winners) end if i_win then - endgame_caption = "Victory!" + endgame_caption = WG.Translate("interface", "victory") endgame_fontcolor = {0,1,0,1} else - endgame_caption = "Defeat!" + endgame_caption = WG.Translate("interface", "defeat") endgame_fontcolor = {1,0,0,1} end end @@ -540,20 +670,20 @@ local function SetEndgameCaption(winners) end if spec then if (winners[1] == gaiaAllyTeamID) then - endgame_caption = "Draw!" + endgame_caption = WG.Translate("interface", "draw_result") endgame_fontcolor = {1,1,1,1} else - endgame_caption = (winnerTeamName .. " wins!") + endgame_caption = WG.Translate("interface", "teamwins", {name = winnerTeamName}) endgame_fontcolor = {1,1,1,1} end elseif (winners[1] == Spring.GetMyAllyTeamID()) then - endgame_caption = "Victory!" + endgame_caption = WG.Translate("interface", "victory") endgame_fontcolor = {0,1,0,1} elseif (winners[1] == gaiaAllyTeamID) then - endgame_caption = "Draw!" + endgame_caption = WG.Translate("interface", "draw_result") endgame_fontcolor = {1,1,0,1} else - endgame_caption = "Defeat!" -- could somehow add info on who won (eg. for FFA) but as-is it won't fit + endgame_caption = WG.Translate("interface", "defeat") -- could somehow add info on who won (eg. for FFA) but as-is it won't fit endgame_fontcolor = {1,0,0,1} end end @@ -574,6 +704,45 @@ local function StartEndgameTimer (delay) widgetHandler:UpdateCallIn("Update") end +local function OnLocaleChange() + for k, _ in pairs(awardDescs) do + awardDescs[k] = WG.Translate("interface", k) + end + if awardButton then + awardButton:SetCaption(WG.Translate("interface", "awards")) + awardButton:Invalidate() + end + if statsButton then + statsButton:SetCaption(WG.Translate("interface", "statistics")) + statsButton:Invalidate() + end + if apmButton then + apmButton:SetCaption(WG.Translate("interface", "apm")) + apmButton:Invalidate() + end + if exitButton then + exitButton:SetCaption(WG.Translate("interface", "exitlobby")) + exitButton:Invalidate() + end + if apmSubPanel and not apmSubPanel:IsEmpty() then + for name, _ in pairs(localizationNames) do + Spring.Echo("Updating " .. name) + local button = apmSubPanel:GetChildByName(name) + if button then + Spring.Echo("Applying update to " .. name) + button:SetCaption(WG.Translate("interface", name)) + Spring.Echo("Caption set") + end + end + end + if gameEnded and controlsSetup then + SetEndgameCaption() + window_endgame.caption = endgame_caption + window_endgame:Invalidate() + SetupAwardsPanel() + end +end + function widget:Initialize() if (not WG.Chili) then widgetHandler:RemoveWidget() @@ -613,11 +782,11 @@ function widget:Initialize() statsButton:Hide() exitButton:Hide() ShowStats() - + checkFont = WG.GetFont() widgetHandler:RemoveCallIn("Update") widgetHandler:RemoveCallIn("GameFrame") if Spring.IsGameOver() then - window_endgame.caption = "Game aborted" + window_endgame.caption = WG.Translate("interface", "gameabort") StartEndgameTimer(1) end @@ -631,10 +800,12 @@ function widget:Initialize() end global_command_button = WG.GlobalCommandBar.AddCommand("LuaUI/Images/graphs_icon.png", "Toggle graphs" .. toggleKey, ToggleStatsGraph) end + WG.InitializeTranslation(OnLocaleChange, "gui_chili_endgamewindow") end -function widget:GameOver(winners) - SetEndgameCaption(winners) +function widget:GameOver(thisWinners) + winners = thisWinners + SetEndgameCaption() StartEndgameTimer(endgameWindowDelay) end