Skip to content

Commit

Permalink
better testing
Browse files Browse the repository at this point in the history
  • Loading branch information
aeauseth committed Dec 26, 2024
1 parent d448e53 commit 4af80be
Showing 1 changed file with 21 additions and 26 deletions.
47 changes: 21 additions & 26 deletions module/testing/end-to-end.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -57,37 +57,32 @@ export class HeroSystem6eEndToEndTest {
await this.createTestActors();

// AID 6 multiple characteristics + stacking
// if (!(await this.testAdjustmentStacking(this.token6, this.token5, "AID", "STR, DEX"))) return;
if (!(await this.testAdjustmentStacking(this.token6, this.token5, "AID", "STR, DEX"))) return;
if (!(await this.testAdjustmentStacking(this.token6, this.token5, "AID", "END, POWERDEFENSE"))) return;

// AID 6
// if (!(await this.testAdjustmentStacking(this.token6, this.token5, "AID", "STR"))) return;
// if (!(await this.testAdjustmentStacking(this.token6, this.token5, "AID", "PD"))) return;
// if (!(await this.testAdjustmentStacking(this.token6, this.token5, "AID", "END"))) return;
// if (!(await this.testAdjustmentStacking(this.token6, this.token5, "AID", "DEX"))) return;
await this.token5.actor.FullHealth();
await this.token6.actor.FullHealth();
if (!(await this.testAdjustmentStacking(this.token6, this.token5, "AID", "STR"))) return;
if (!(await this.testAdjustmentStacking(this.token6, this.token5, "AID", "PD"))) return;
if (!(await this.testAdjustmentStacking(this.token6, this.token5, "AID", "END"))) return;
if (!(await this.testAdjustmentStacking(this.token6, this.token5, "AID", "DEX"))) return;

// // AID 5
// await this.token5.actor.FullHealth();
// await this.token6.actor.FullHealth();
// if (!(await this.testAdjustment(this.token5, this.token5, "AID", "DEX"))) return;

// // DRAIN 6
// await this.token5.actor.FullHealth();
// await this.token6.actor.FullHealth();
// if (!(await this.testAdjustmentStacking(this.token6, this.token5, "DRAIN", "STR"))) return;
// if (!(await this.testAdjustmentStacking(this.token6, this.token5, "DRAIN", "DEX"))) return;

// // DRAIN 5
// await this.token5.actor.FullHealth();
// await this.token6.actor.FullHealth();
// if (!(await this.testAdjustment(this.token5, this.token6, "DRAIN", "DEX"))) return;

// AID 6 stacking
//await this.token5.actor.FullHealth();
//await this.token6.actor.FullHealth();
//if (!(await this.testAdjustmentStacking(this.token6, this.token5, "AID", "STR", 1))) return;
//if (!(await this.testAdjustmentStacking(this.token6, this.token5, "AID", "DEX"))) return;
//if (!(await this.testAdjustmentStacking(this.token6, this.token5, "AID", "END"))) return;
await this.token5.actor.FullHealth();
await this.token6.actor.FullHealth();
if (!(await this.testAdjustmentStacking(this.token5, this.token5, "AID", "DEX"))) return;

// DRAIN 6
await this.token5.actor.FullHealth();
await this.token6.actor.FullHealth();
if (!(await this.testAdjustmentStacking(this.token6, this.token5, "DRAIN", "STR"))) return;
if (!(await this.testAdjustmentStacking(this.token6, this.token5, "DRAIN", "DEX"))) return;

// DRAIN 5
await this.token5.actor.FullHealth();
await this.token6.actor.FullHealth();
if (!(await this.testAdjustmentStacking(this.token5, this.token6, "DRAIN", "DEX"))) return;

CONFIG.debug.adjustmentFadeKeep = false;

Expand Down

0 comments on commit 4af80be

Please sign in to comment.