salien-script-js
Advanced tools
Comparing version 0.0.14 to 0.0.15
{ | ||
"name": "salien-script-js", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"description": "A easy to install, run and update Node.js script for the Steam salien mini-game.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -225,7 +225,7 @@ /** | ||
// eslint-disable-next-line no-underscore-dangle | ||
if (report.___headers.get('x-eresult') !== 1) { | ||
if (Number(report.___headers.get('x-eresult')[0]) !== 1) { | ||
allowedBossFails -= 1; | ||
if (allowedBossFails < 1) { | ||
throw new SalienScriptRestart('Boss battle had too may errors!'); | ||
throw new SalienScriptRestart('Boss battle had too many errors!'); | ||
} | ||
@@ -262,4 +262,4 @@ } | ||
bossStatusMsg += `/${Number(report.boss_status.boss_max_hp)}`; | ||
bossStatusMsg += ` - Lasers: ${report.boss_status.num_laser_uses}`; | ||
bossStatusMsg += ` - Team Heals: ${report.boss_status.num_team_heals}`; | ||
bossStatusMsg += ` - Lasers: ${report.num_laser_uses}`; | ||
bossStatusMsg += ` - Team Heals: ${report.num_team_heals}`; | ||
@@ -289,3 +289,3 @@ this.logger(bossStatusMsg); | ||
// eslint-disable-next-line no-underscore-dangle | ||
if (zone.___headers.get('x-eresult') !== 1) { | ||
if (Number(zone.___headers.get('x-eresult')[0]) !== 1) { | ||
throw new SalienScriptRestart('!! Failed to join boss zone', zone); | ||
@@ -292,0 +292,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43858