Skip to content

Commit

Permalink
Fix secondary attack bonus and tentacle attacks
Browse files Browse the repository at this point in the history
  • Loading branch information
websterguy committed Jun 24, 2024
1 parent 77ab252 commit 09f37a5
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 16 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion packs/macros/CURRENT
Original file line number Diff line number Diff line change
@@ -1 +1 @@
MANIFEST-000584
MANIFEST-000588
4 changes: 1 addition & 3 deletions packs/macros/LOG
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
2024/06/22-14:07:49.832 2d60 Recovering log #582
2024/06/22-14:07:49.842 2d60 Delete type=0 #582
2024/06/22-14:07:49.842 2d60 Delete type=3 #580
2024/06/23-16:06:00.553 6e04 Delete type=3 #1
12 changes: 5 additions & 7 deletions packs/macros/LOG.old
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
2024/06/15-12:03:40.386 1c3c Recovering log #578
2024/06/15-12:03:40.395 1c3c Delete type=0 #578
2024/06/15-12:03:40.395 1c3c Delete type=3 #576
2024/06/18-16:03:08.888 75f8 Level-0 table #583: started
2024/06/18-16:03:08.888 75f8 Level-0 table #583: 0 bytes OK
2024/06/18-16:03:08.892 75f8 Delete type=0 #581
2024/06/18-16:03:08.929 75f8 Manual compaction at level-0 from '!macros!DYCrMAwEKzOOAFkd' @ 72057594037927935 : 1 .. '!macros!tOeKncsmf6bJRT27' @ 0 : 0; will stop at (end)
2024/06/23-16:06:00.514 6e04 Log #586: 0 ops saved to Table #587 OK
2024/06/23-16:06:00.515 6e04 Archiving C:\Users\Kevin\AppData\Local\FoundryVTT\Data\modules\pf1-mighty-morphin\packs\macros/000586.log: OK
2024/06/23-16:06:00.516 6e04 Table #477: 4 entries OK
2024/06/23-16:06:00.526 6e04 Archiving C:\Users\Kevin\AppData\Local\FoundryVTT\Data\modules\pf1-mighty-morphin\packs\macros/MANIFEST-000584: OK
2024/06/23-16:06:00.531 6e04 **** Repaired leveldb C:\Users\Kevin\AppData\Local\FoundryVTT\Data\modules\pf1-mighty-morphin\packs\macros; recovered 1 files; 8000 bytes. Some data may have been lost. ****
Binary file added packs/macros/MANIFEST-000588
Binary file not shown.
Empty file added packs/macros/lost/000586.log
Empty file.
Binary file not shown.
3 changes: 2 additions & 1 deletion scripts/mighty-morphin.js
Original file line number Diff line number Diff line change
Expand Up @@ -1441,6 +1441,7 @@ export class MightyMorphinApp {
let subAction = duplicate(globalThis.pf1.components.ItemAction.defaultData);


subAction['naturalAttack']['primaryAttack'] = ((attack.primaryAttack || (MightyMorphinApp.naturalAttacks[attack.name]?.primaryAttack)) || onlyAttack);
subAction['actionType'] = attack.attackType || 'mwak'; // melee, ranged, save, combat man., etc
subAction['activation']['type'] = 'attack';
subAction['activation']['unchained'] = { 'cost': 1, 'type': 'action' };
Expand Down Expand Up @@ -1515,7 +1516,7 @@ export class MightyMorphinApp {


// ability damage multiplier is the passed multiplier or 1.5 for an only attack, 1 for a primary attack, .5 secondary
subAction['ability']['damageMult'] = attack.mult || (onlyAttack ? 1.5 : (attackData.system.primaryAttack) ? 1 : 0.5);
subAction['ability']['damageMult'] = attack.mult || (onlyAttack ? 1.5 : 1);

// Create attack sizeRoll with the passed dice stats, the actor's size, and the attack type's damage type (or '' if attack name not in naturalAttacks)
if (attack.diceSize !== 0) {
Expand Down
8 changes: 4 additions & 4 deletions scripts/morphin-changes.js
Original file line number Diff line number Diff line change
Expand Up @@ -1765,7 +1765,7 @@ MorphinChanges.changes = {
size: 'sm',
attacks: [
{ name: 'Bite', diceCount: 1, diceSize: 3, count: 1 },
{ name: 'Tentacles', diceCount: 0, diceSize: 0, count: 1, special: ['Grab'], claw: false }
{ name: 'Tentacle', diceCount: 0, diceSize: 0, count: 1, special: ['Grab'], claw: false }
],
speed: {
swim: 30
Expand All @@ -1785,7 +1785,7 @@ MorphinChanges.changes = {
15: {
attacks: [
{ name: 'Bite', diceCount: 1, diceSize: 3, count: 1 },
{ name: 'Tentacles', diceCount: 0, diceSize: 0, count: 1, special: ['Grab'], claw: true }
{ name: 'Tentacle', diceCount: 0, diceSize: 0, count: 1, special: ['Grab'], claw: true }
],
specialAttack: [
{ name: 'InkCloud', diceCount: 0, diceSize: 0, count: 1, special: ['Ink'], attackType: 'none', claw: false }
Expand Down Expand Up @@ -3223,7 +3223,7 @@ MorphinChanges.changes = {
size: 'sm',
attacks: [
{ name: 'Bite', diceCount: 1, diceSize: 3, count: 1, special: ['Poison'] },
{ name: 'Tentacles', diceCount: 0, diceSize: 0, count: 1, special: ['Grab'] }
{ name: 'Tentacle', diceCount: 0, diceSize: 0, count: 1, special: ['Grab'] }
],
speed: {
land: 20,
Expand Down Expand Up @@ -5048,7 +5048,7 @@ MorphinChanges.changes = {
attacks: [
{ name: 'Bite', diceCount: 2, diceSize: 6, count: 1 },
{ name: 'Arm', diceCount: 1, diceSize: 6, count: 1 },
{ name: 'Tentacles', diceCount: 4, diceSize: 6, count: 1, special: ['Grab', 'Constrict'] }
{ name: 'Tentacle', diceCount: 4, diceSize: 6, count: 1, special: ['Grab', 'Constrict'] }
],
speed: {
swim: 60
Expand Down

0 comments on commit 09f37a5

Please sign in to comment.