Skip to content

Commit

Permalink
update splash damage and target resist
Browse files Browse the repository at this point in the history
  • Loading branch information
romaniac01 committed Nov 10, 2024
1 parent 6001494 commit 8a5f500
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion db/effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ const templates = {
BurningAttackDamageArea: { name: "Burning Damage Area", icon: "DamageArea", sort: 98 },
RangedAttack2DamageArea: { name: "Special Building Ranged Damage Area", icon: "DamageArea", sort: 153 },
AreaDamageReduction: {
name: "Splash Damage Reduction",
name: "Splash Damage Armor",
icon: "AreaDamageReduction",
sort: 171
},
Expand Down
8 changes: 8 additions & 0 deletions db/units/convert-stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,14 @@ export async function convertUnitStats(unit) {
if (unit.InitialResource) {
stats["InitialResource" + unit.InitialResource["resourcetype"]] = unit.InitialResource["quantity"]
}
if (unit.TargetSpeedBoostResist) {
if (unit.TargetSpeedBoostResist === 0) {
delete stats["TargetSpeedBoostResist"]
}
else {
stats["TargetSpeedBoostResist"] = 1-1/unit.TargetSpeedBoostResist
}
}

if (unit.Tactics) {
const tactics = await getTactics(unit.Tactics)
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>2024-11-01T20:20:38.510Z</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>2024-11-10T20:57:23.885Z</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/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_stringtablexEnglish.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.

0 comments on commit 8a5f500

Please sign in to comment.