Skip to content

Commit

Permalink
Add Garden Train time to Babs
Browse files Browse the repository at this point in the history
Add Garden Train time to Babs
  • Loading branch information
romaniac01 committed Jun 25, 2023
1 parent de00d58 commit d408b10
Show file tree
Hide file tree
Showing 15 changed files with 38 additions and 13 deletions.
17 changes: 16 additions & 1 deletion db/effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -1304,8 +1304,23 @@ const templates = {
},
MaxDmgMaxContained: {
name: "Damage at max Capacity",
icon: "DamageRanged",
icon: "BuildPoints",
sort: 187
},
Training_Garden4Age2: {
name: "Train Time 4x Age II Gardens",
icon: "BuildPoints",
sort: 196
},
Training_Garden8Age3: {
name: "Train Time 8x Age III Gardens",
icon: "BuildPoints",
sort: 197
},
Training_Garden12Age4: {
name: "Train Time 12x Age IV Gardens",
icon: "BuildPoints",
sort: 198
}
}

Expand Down
5 changes: 5 additions & 0 deletions db/units/convert-stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ export async function convertUnitStats(unit) {

if (unit.TrainPoints && unit.TrainPoints !== -1) {
stats.TrainPoints = unit.TrainPoints
if(unit.name.startsWith("Ba")){
stats.Training_Garden4Age2 = unit.TrainPoints
stats.Training_Garden8Age3 = unit.TrainPoints
stats.Training_Garden12Age4 = unit.TrainPoints
}
} else if (unit.BuildPoints && unit.BuildPoints !== -1) {
stats.BuildPoints = unit.BuildPoints
}
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-05-21T19:53:46.760Z</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-06-25T19:48:09.310Z</lastmod><changefreq>weekly</changefreq><priority>1.0</priority></url></urlset>
2 changes: 1 addition & 1 deletion server/gear.json

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/components/Stats.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ export default {
stats["MaxDmgMaxContained"] =
stats["DamageRanged"] * stats["MaximumContained"]
}
if (stats.Training_Garden4Age2) {
stats["Training_Garden4Age2"] = stats["TrainPoints"] * 0.888487048
stats["Training_Garden8Age3"] = stats["TrainPoints"] * 0.730690205
stats["Training_Garden12Age4"] = stats["TrainPoints"] * 0.556837418
}
this.$store.commit("setUnitStats", { id: this.unitId, stats })
return stats
Expand Down
2 changes: 1 addition & 1 deletion src/data/advisors.json

Large diffs are not rendered by default.

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/gear.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.

2 changes: 1 addition & 1 deletion src/gamedb_data/source_econstringsEnglish.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/gamedb_data/source_stringtablexEnglish.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/gamedb_data/source_techtree.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/gamedb_data/source_traits.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/gamedb_data/source_units.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/gamedb_data/source_vendors.json

Large diffs are not rendered by default.

0 comments on commit d408b10

Please sign in to comment.