-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Picoseconds
committed
Aug 1, 2020
1 parent
c2db126
commit 4178c3d
Showing
3 changed files
with
149 additions
and
44 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
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,34 +1,7 @@ | ||
import hats from "../hats.json"; | ||
import hats from "../hats.json" | ||
|
||
interface Hat { | ||
/** | ||
* The id of this hat | ||
*/ | ||
id: number; | ||
function getHat(id: number) { | ||
return hats.find(hat => hat.id == id); | ||
} | ||
|
||
/** | ||
* The multiplier of damage when this hat is worn | ||
*/ | ||
dmgMult: number; | ||
dmgMultO: number; | ||
|
||
/** | ||
* The multiplier of speed when this hat is worn | ||
*/ | ||
spdMult: number; | ||
|
||
/** | ||
* Whether or not it should be impossible to eat while wearing this hat | ||
*/ | ||
noEat: boolean; | ||
|
||
/** | ||
* How much to knock an enemy back when attacked while wearing this hat | ||
*/ | ||
dmgK: number; | ||
|
||
/** | ||
* Whether or not to be ignored by turret AI while wearing this hat | ||
*/ | ||
antiTurret: boolean; | ||
} | ||
export { getHat }; |
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