-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also update melee weapon processing to add notes for applicable weapons (e.g., chainsaw)
- Loading branch information
Showing
21 changed files
with
547 additions
and
61 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
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
52 changes: 51 additions & 1 deletion
52
src/main/java/name/ipsi/project/fwbp/books/shared/RangedWeapon.java
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,54 @@ | ||
package name.ipsi.project.fwbp.books.shared; | ||
|
||
public record RangedWeapon(String id) implements BookEntry { | ||
import name.ipsi.project.fwbp.foundry.core.FoundryUtils; | ||
import name.ipsi.project.fwbp.foundry.wod.DamageTypes; | ||
import name.ipsi.project.fwbp.foundry.wod.WeaponConcealment; | ||
|
||
import java.util.List; | ||
|
||
public record RangedWeapon( | ||
String id, | ||
String name, | ||
List<TextEntry> description, | ||
int damage, | ||
DamageTypes damageType, | ||
WeaponConcealment concealment, | ||
Integer range, | ||
Integer rate, | ||
Integer clip, | ||
boolean canReload, | ||
boolean hasBurst, | ||
boolean hasFullAuto, | ||
boolean hasSpray | ||
) implements BookEntry { | ||
public RangedWeapon( | ||
String name, | ||
List<TextEntry> description, | ||
int damage, | ||
DamageTypes damageType, | ||
WeaponConcealment concealment, | ||
Integer range, | ||
Integer rate, | ||
Integer clip, | ||
boolean canReload, | ||
boolean hasBurst, | ||
boolean hasFullAuto, | ||
boolean hasSpray | ||
) { | ||
this( | ||
FoundryUtils.generateId("ranged-weapon", name), | ||
name, | ||
description, | ||
damage, | ||
damageType, | ||
concealment, | ||
range, | ||
rate, | ||
clip, | ||
canReload, | ||
hasBurst, | ||
hasFullAuto, | ||
hasSpray | ||
); | ||
} | ||
} |
20 changes: 19 additions & 1 deletion
20
src/main/java/name/ipsi/project/fwbp/books/shared/ThrownWeapon.java
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,22 @@ | ||
package name.ipsi.project.fwbp.books.shared; | ||
|
||
public record ThrownWeapon(String id) implements BookEntry { | ||
import name.ipsi.project.fwbp.foundry.core.FoundryUtils; | ||
import name.ipsi.project.fwbp.foundry.wod.DamageTypes; | ||
import name.ipsi.project.fwbp.foundry.wod.WeaponConcealment; | ||
|
||
import java.util.List; | ||
|
||
public record ThrownWeapon( | ||
String id, | ||
String name, | ||
List<TextEntry> description, | ||
int difficulty, | ||
boolean includeStrength, | ||
int damageBonus, | ||
DamageTypes damageType, | ||
WeaponConcealment concealment | ||
) implements BookEntry { | ||
public ThrownWeapon(String name, List<TextEntry> description, int difficulty, boolean includeStrength, int damageBonus, DamageTypes damageType, WeaponConcealment concealment) { | ||
this(FoundryUtils.generateId("thrown-weapon", name), name, description, difficulty, includeStrength, damageBonus, damageType, concealment); | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
src/main/java/name/ipsi/project/fwbp/books/shared/locations/MeleeWeaponLocation.java
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package name.ipsi.project.fwbp.books.shared.locations; | ||
|
||
public record MeleeWeaponLocation(TextLocation textLocation) { | ||
} |
4 changes: 4 additions & 0 deletions
4
src/main/java/name/ipsi/project/fwbp/books/shared/locations/RangedWeaponLocation.java
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package name.ipsi.project.fwbp.books.shared.locations; | ||
|
||
public record RangedWeaponLocation(TextLocation textLocation) { | ||
} |
4 changes: 4 additions & 0 deletions
4
src/main/java/name/ipsi/project/fwbp/books/shared/locations/ThrownWeaponLocation.java
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package name.ipsi.project.fwbp.books.shared.locations; | ||
|
||
public record ThrownWeaponLocation(TextLocation textLocation) { | ||
} |
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.