Skip to content

Commit eea2807

Browse files
committed
Update to gold generation for herdeables 2024 11 01
1 parent 5bd6a8d commit eea2807

File tree

9 files changed

+125
-109
lines changed

9 files changed

+125
-109
lines changed

db/effects.js

+5
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@ export function addEffect(name) {
270270
if ((name.startsWith("Convert")) && name !== "ConvertResist" && name !== "ConvertConvertableBuilding" && name !== "Convert2ConvertableBuilding") {
271271
addEffect(name.replace("Convert", "Chaos"))
272272
}
273+
if (name == "AutoGatherGold") {
274+
addEffect(name.replace("AutoGatherGold", "AutoGatherGoldIndia"))
275+
}
273276
/*
274277
if (name.startsWith("Chaos")) {
275278
console.log(name)
@@ -551,6 +554,8 @@ const templates = {
551554
},
552555
AutoGatherFood: { name: "Generating Food", icon: "GatherFood", sort: 10 },
553556
AutoGatherGold: { name: "Generating Gold", icon: "GatherGold", sort: 12 },
557+
AutoGatherGoldIndia: { name: "Generating Gold (only India)", icon: "GatherGold", sort: 12 },
558+
AutoGatherShrineGather: { name: "Generating Extra Gold at Indian Shrine", icon: "GatherGold", sort: 13 },
554559
AutoGatherTree: { name: "Generating Wood", icon: "GatherTree", sort: 11 },
555560
AutoGatherStone: { name: "Generating Stone", icon: "GatherStone", sort: 13 },
556561
CarryCapacityFood: {

db/units/build.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ async function convertConsUnit(power) {
174174
if ((createUnit.text.startsWith("Con") && !createUnit.text.startsWith("Con_Spyglass") && !createUnit.text.startsWith("Con_Res_") )
175175
|| createUnit.text === 'NPC_Halloween_HeadlessHorseman'
176176
|| createUnit.text === 'NPC_Halloween_Unit_SoulGuardian'
177-
|| createUnit.text === 'NPC_Halloween_Unit_EmeraldGuardian') {
177+
|| createUnit.text === 'NPC_Halloween_Unit_EmeraldGuardian'
178+
|| createUnit.text === 'Cow') {
178179
const consUnit = findByAttribute(units, "name", createUnit.text)
179180
if (consUnit) {
180181
deerTech.Effects.effect[0].target.text = createUnit.text

db/units/convert-stats.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,10 @@ export async function convertUnitStats(unit) {
232232
if (unit.UnitType.includes("AbstractWall")) {
233233
stats["Hitpoints"] = stats["Hitpoints"] * 1.77
234234
}
235+
236+
if (unit.UnitType.includes("Herdable")) {
237+
stats.AutoGatherGoldIndia = stats.AutoGatherGold
238+
}
235239

236240

237241
return [stats, inactiveActions]
@@ -448,9 +452,14 @@ export function parseAction(action, stats, inactiveActions) {
448452
stats["AutoGather" + rate.type] = rate.amount
449453
}
450454
if (action.Active === 0) {
451-
inactiveActions.push("AutoGatherTree")
455+
if (rate.type === "Wood") {
456+
inactiveActions.push("AutoGatherTree")
457+
}
452458
inactiveActions.push("AutoGather" + rate.type)
453459
}
460+
} else if (name === "ShrineGather") {
461+
const rate = action.Rate[0]
462+
stats["AutoGatherShrineGather"] = rate.amount
454463
} else if (name === "Build") {
455464
const rate = action.Rate[0]
456465
let type = "Build"

public/assets/sprites/units.webp

1.23 KB
Binary file not shown.

public/sitemap.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +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>2024-10-29T00:18:56.686Z</lastmod><changefreq>weekly</changefreq><priority>1.0</priority></url></urlset>
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>2024-11-01T12:23:17.714Z</lastmod><changefreq>weekly</changefreq><priority>1.0</priority></url></urlset>

server/units.json

+1-1
Large diffs are not rendered by default.

src/data/effects.json

+1-1
Large diffs are not rendered by default.

src/data/units.json

+1-1
Large diffs are not rendered by default.

src/styles/sprites/_units.scss

+104-103
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)