Skip to content

Commit

Permalink
Add coop Bonus caravans and merchant transport
Browse files Browse the repository at this point in the history
Add coop Bonus caravans and merchant transport
  • Loading branch information
romaniac01 committed Aug 19, 2023
1 parent 394152e commit 44dba0a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
16 changes: 11 additions & 5 deletions db/effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ function getType(effectName) {
effectName === "ChargeDamageMultiplier" ||
effectName === "ChargeSpeedBoost" ||
effectName === "HealdamageBonusUnit" ||
effectName === "CaravanGoldCoop" ||
(effectName.includes("Aura") && !effectName.includes("Range"))
) {
return "multiplier" // starts with "x"
Expand Down Expand Up @@ -1353,30 +1354,35 @@ const templates = {
lowerIsBetter: true
},
CaravanGoldPerSec150: {
name: "Gold/Sec Small Map (150m)",
name: "Gold/Sec Solo Small Map (150m)",
icon: "CostGold",
sort: 159
},
CaravanGoldPerSec300: {
name: "Gold/Sec Average Map (300m)",
name: "Gold/Sec Solo Average Map (300m)",
icon: "CostGold",
sort: 160
},
CaravanGoldPerSec500: {
name: "Gold/Sec Huge Map (500m)",
name: "Gold/Sec Solo Huge Map (500m)",
icon: "CostGold",
sort: 161
},
CaravanGoldPerSec300_50: {
name: "Gold/Sec Trade 50 on Avg Map",
name: "Gold/Sec Solo Trade 50 on Avg Map",
icon: "CostGold",
sort: 163
},
CaravanGoldPerSec300_100: {
name: "Gold/Sec Trade 100 on Avg Map",
name: "Gold/Sec Solo Trade 100 on Avg Map",
icon: "CostGold",
sort: 162
},
CaravanGoldCoop: {
name: "Gold/Sec Coop 50% Trade Bonus",
icon: "CostGold",
sort: 164
},
FishBoatTimeToFish: {
name: "Time to Fish",
icon: "BuildPoints",
Expand Down
2 changes: 2 additions & 0 deletions db/units/convert-stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ export async function convertUnitStats(unit) {
addEffect("CaravanGoldPerSec500")
addEffect("CaravanGoldPerSec300_100")
addEffect("CaravanGoldPerSec300_50")
addEffect("CaravanGoldCoop")
addEffect("FishBoatTimeToFish")
addEffect("FishBoatTimeToTravel_100Size")
addEffect("FishBoatFishPerSec_100Size")
Expand All @@ -183,6 +184,7 @@ export async function convertUnitStats(unit) {
stats["CaravanGoldPerSec500"] = 1
stats["CaravanGoldPerSec300_50"] = 1
stats["CaravanGoldPerSec300_100"] = 1
stats["CaravanGoldCoop"] = 1.224744871
}
if (unit.name.endsWith("Civ_FishingBoat")) {
stats["FishBoatTimeToFish"] = 1
Expand Down
2 changes: 1 addition & 1 deletion public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://unitstats.projectceleste.com</loc><lastmod>2023-08-11T10:06:04.864Z</lastmod><changefreq>weekly</changefreq><priority>1.0</priority></url></urlset>
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://unitstats.projectceleste.com</loc><lastmod>2023-08-19T10:38:10.062Z</lastmod><changefreq>weekly</changefreq><priority>1.0</priority></url></urlset>
2 changes: 1 addition & 1 deletion src/data/effects.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/units.json

Large diffs are not rendered by default.

0 comments on commit 44dba0a

Please sign in to comment.