Skip to content

Commit be7fa2c

Browse files
authored
Merge branch 'Roll20:master' into master
2 parents 3222724 + e34be9f commit be7fa2c

71 files changed

Lines changed: 53698 additions & 10 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

AttackMaster/5.3.2/attackMaster.js

Lines changed: 9513 additions & 0 deletions
Large diffs are not rendered by default.

AttackMaster/attackMaster.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,15 @@ API_Meta.AttackMaster={offset:Number.MAX_SAFE_INTEGER,lineCount:-1};
128128
* Fix to One Hander fighting style.
129129
* v5.3.1 12/05/2026 Correted behaviour of mods when a token is deleted to be same as RoundMaster
130130
* effects & statuses. Fixed doSetMods() to cater for deleting mob tokens with running mods.
131+
* v5.3.2 20/05/2026 Fix default encumbrance for attack macros.
131132
*/
132133

133134
var attackMaster = (function() { // eslint-disable-line no-unused-vars
134135
'use strict';
135-
var version = '5.3.1',
136+
var version = '5.3.2',
136137
author = 'Richard @ Damery',
137138
pending = null;
138-
const lastUpdate = 1777318205;
139+
const lastUpdate = 1779252799;
139140

140141
/*
141142
* Define redirections for functions moved to the RPGMaster library
@@ -3702,7 +3703,7 @@ var attackMaster = (function() { // eslint-disable-line no-unused-vars
37023703
magicattkadj: String(thac0Bar.name && thac0Bar.barName.startsWith('bar') ? (thac0 - thac0Bar.val) : ((attrLookup( charCS, fields.Magical_hitAdj ) || 0) + (attrLookup( charCS, [fields.Magical_hitAdj[0]
37033704
+ tokenID, fields.Magical_hitAdj[1], fields.Magical_hitAdj[2]] ) || 0) + (attrLookup( charCS, fields.Legacy_hitAdj ) || 0))),
37043705
twoweappenalty: String((ranger || primeWeapon < 1) ? 0 : (-1*(((mwIndex*2)+(fields.MW_table[1]==0?1:3)) == primeWeapon ? Math.floor(twPen) : Math.floor((10*twPen)%10)))),
3705-
encumbrance: String(encumberDef.attack[parseInt(attrLookup(charCS,fields.Encumbrance)) || 0]),
3706+
encumbrance: String(encumberDef.attack[parseInt(attrLookup(charCS,fields.Encumbrance)) || 0] || 0),
37063707
weapdmgadj: (tableInfo.DMG.tableLookup( fields.Dmg_adj, mwIndex ) || '0'),
37073708
weapstyledmgadj:tableInfo.DMG.tableLookup( fields.Dmg_styleAdj, mwIndex ),
37083709
magicdmgadj: String((parseInt(attrLookup(charCS,[fields.Magical_dmgAdj[0]+tokenID,fields.Magical_dmgAdj[1],undefined],{def:false}) || attrLookup( charCS, fields.Magical_dmgAdj )) || 0)
@@ -4003,7 +4004,7 @@ var attackMaster = (function() { // eslint-disable-line no-unused-vars
40034004
magicattkadj: String(thac0Bar.name && thac0Bar.barName.startsWith('bar') ? (thac0 - thac0Bar.val) : ((attrLookup( charCS, fields.Magical_hitAdj ) || 0) + (attrLookup( charCS, [fields.Magical_hitAdj[0]
40044005
+tokenID,fields.Magical_hitAdj[1], fields.Magical_hitAdj[2]] ) || 0) + (attrLookup( charCS, fields.Legacy_hitAdj ) || 0))),
40054006
twoweappenalty: String((ranger || primeWeapon < 1) ? 0 : (-1*(((rwIndex*2)+(fields.RW_table[1]==0?2:4)) == primeWeapon ? Math.floor(twPen) : Math.floor((10*twPen)%10)))),
4006-
encumbrance: String(encumberDef.attack[parseInt(attrLookup(charCS,fields.Encumbrance)) || 0]),
4007+
encumbrance: String(encumberDef.attack[parseInt(attrLookup(charCS,fields.Encumbrance)) || 0] || 0),
40074008
ammodmgadj: String((tableInfo.AMMO.tableLookup( fields.Ammo_adj, ammoIndex ) + (weapDmgAdj ? attkAdj : ''))),
40084009
ammostyledmgadj: tableInfo.AMMO.tableLookup( fields.Ammo_styleAdj, ammoIndex ),
40094010
magicdmgadj: String((parseInt(attrLookup( charCS, [fields.Magical_dmgAdj[0]+tokenID,fields.Magical_dmgAdj[1],undefined],{def:false}) || attrLookup( charCS, fields.Magical_dmgAdj )) || 0)

AttackMaster/script.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"$schema": "https://github.com/DameryDad/roll20-api-scripts/blob/AttackMaster/AttackMaster/Script.json",
33
"name": "AttackMaster",
44
"script": "attackMaster.js",
5-
"version": "5.3.1",
6-
"previousversions": ["1.036","1.038","1.039","1.041","1.042","2.046","1.3.00","1.3.01","1.3.02","1.3.03","1.4.01","1.4.02","1.4.03","1.4.04","1.4.05","1.4.06","1.4.07","1.5.01","1.5.02","1.5.03","2.1.0","2.2.0","2.3.0","2.3.1","2.3.2","2.3.3","3.0.0","3.1.2","3.2.0","3.2.1","3.3.0","3.4.0","3.5.0","4.0.1","4.0.2","4.0.3","4.0.4","5.0.0","5.0.1","5.0.2","5.0.3","5.0.4","5.0.5","5.0.6","5.3.0"],
5+
"version": "5.3.2",
6+
"previousversions": ["1.036","1.038","1.039","1.041","1.042","2.046","1.3.00","1.3.01","1.3.02","1.3.03","1.4.01","1.4.02","1.4.03","1.4.04","1.4.05","1.4.06","1.4.07","1.5.01","1.5.02","1.5.03","2.1.0","2.2.0","2.3.0","2.3.1","2.3.2","2.3.3","3.0.0","3.1.2","3.2.0","3.2.1","3.3.0","3.4.0","3.5.0","4.0.1","4.0.2","4.0.3","4.0.4","5.0.0","5.0.1","5.0.2","5.0.3","5.0.4","5.0.5","5.0.6","5.3.0","5.3.1"],
77
"description": "AttackMaster API for AD&D 2E provides functions to manage weapons, armour & shields, including taking weapons in hand and using them to attack, ranged weapon range and ammo management; penalties & bonuses for non-proficiency, proficiency, specialisation & mastery; 1-handed, 2-handed or many-handed weapons, and multi-weapon attacks.\n[AttackMaster Documentation](https://wiki.roll20.net/Script:AttackMaster) \n\n### Related APIs\nThis API works best with the RPGMaster series of APIs\n[RPGMaster Documentation](https://wiki.roll20.net/RPGMaster) \n\n### Getting Started\n* After installation, add the commands `!attk --menu` and `!attk --other-menu` as Ability Macros on Character Sheets of Characters, NPCs & Monsters that will use the API, and tick 'Show as Token Action'. These menus will then be available to Players controlling those sheets and give access to all common commands used in game-play.",
88
"authors": "Richard E.",
99
"roll20userid": "6497708",
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Enforce LF line endings for all text files in this project
2+
* text=auto eol=lf
3+
4+
# Treat these as binary to avoid any line-ending normalisation
5+
*.png binary
6+
*.jpg binary
7+
*.jpeg binary
8+
*.gif binary
9+
*.ico binary

CombatEncounterDirector/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
node_modules
3+
4+
*.zip
5+
*alpha*
6+
*beta*
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
package-lock.json
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "es5",
4+
"printWidth": 100
5+
}

0 commit comments

Comments
 (0)