-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of github.com:HelheimLabs/autochessia into pve
- Loading branch information
Showing
14 changed files
with
365 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,86 @@ | ||
import { HeroClass, HeroRace } from "@/hooks/useHeroAttr"; | ||
import { Entity } from "@latticexyz/recs"; | ||
|
||
export const initEntity: Entity = | ||
"0x0000000000000000000000000000000000000000000000000000000000000000" as Entity; | ||
|
||
export const RaceSynergy: Record< | ||
HeroRace, | ||
{ | ||
unlockWhen: number[]; | ||
unlockValue: { [x: number]: number }; | ||
description: (x: number) => string; | ||
} | ||
> = { | ||
[HeroRace.UNKNOWN]: { | ||
unlockWhen: [], | ||
unlockValue: {}, | ||
description: (x: number) => "", | ||
}, | ||
[HeroRace.ORC]: { | ||
unlockWhen: [2, 4], | ||
unlockValue: { 0: 0, 1: 0, 2: 100, 3: 100, 4: 300 }, | ||
description: (x: number) => `increase HP by ${x}`, | ||
}, | ||
[HeroRace.TROLL]: { | ||
unlockWhen: [2], | ||
unlockValue: [10], | ||
description: (x: number) => `increase the rate of ${x}% to attack twice`, | ||
}, | ||
[HeroRace.PANDAREN]: { | ||
unlockWhen: [2, 4], | ||
unlockValue: { 0: 0, 1: 0, 2: 20, 3: 20, 4: 30 }, | ||
description: (x: number) => `increase the rate of evasion by ${x}%`, | ||
}, | ||
[HeroRace.HUMAN]: { | ||
unlockWhen: [2, 4], | ||
unlockValue: { 0: 0, 1: 0, 2: 15, 3: 15, 4: 30 }, | ||
description: (x: number) => `all decrease ${x}% damage if it's not alone`, | ||
}, | ||
[HeroRace.GOD]: { | ||
unlockWhen: [2], | ||
unlockValue: { 0: 0, 1: 0, 2: 20 }, | ||
description: (x: number) => `increase all attack by ${x}%`, | ||
}, | ||
}; | ||
|
||
export const ClassSynergy: Record< | ||
HeroClass, | ||
{ | ||
unlockWhen: number[]; | ||
unlockValue: { [x: number]: number }; | ||
description: (x: number) => string; | ||
} | ||
> = { | ||
[HeroClass.UNKNOWN]: { | ||
unlockWhen: [], | ||
unlockValue: {}, | ||
description: (x: number) => "", | ||
}, | ||
[HeroClass.KNIGHT]: { | ||
unlockWhen: [2], | ||
unlockValue: { 0: 0, 1: 0, 2: 10, 3: 10 }, | ||
description: (x: number) => `all have a rate of ${x}% to immune attack`, | ||
}, | ||
[HeroClass.WARRIOR]: { | ||
unlockWhen: [2, 4], | ||
unlockValue: { 0: 0, 1: 0, 2: 5, 3: 5, 4: 10 }, | ||
description: (x: number) => `increase all piece defense by ${x}`, | ||
}, | ||
[HeroClass.ASSASSIN]: { | ||
unlockWhen: [2, 4], | ||
unlockValue: { 0: 0, 1: 0, 2: 10, 3: 10, 4: 20 }, | ||
description: (x: number) => `increase all rate of critical hit by ${x}%`, | ||
}, | ||
[HeroClass.MAGE]: { | ||
unlockWhen: [2, 4], | ||
unlockValue: { 0: 0, 1: 0, 2: 20, 3: 20, 4: 40 }, | ||
description: (x: number) => `decrease enemy defense by ${x}%`, | ||
}, | ||
[HeroClass.WARLOCK]: { | ||
unlockWhen: [2], | ||
unlockValue: { 0: 0, 1: 0, 2: 10, 3: 10 }, | ||
description: (x: number) => | ||
`all have a rate ${x}% to dizz enemy for a turn on attack`, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.