From 7487d3d3904f3f9ccf690fb4c1ce90360c272a7b Mon Sep 17 00:00:00 2001 From: Brandon Cornejo Date: Sat, 1 May 2021 15:58:54 -0500 Subject: [PATCH] Scavenge powercard, shares calculator page, handbook points at detailed TOC --- acks/templates/base.html | 2 +- acks/templates/shares_calc.html | 2 +- roll20/macros/scavengcard.macro | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 roll20/macros/scavengcard.macro diff --git a/acks/templates/base.html b/acks/templates/base.html index 03967b7..0915b95 100644 --- a/acks/templates/base.html +++ b/acks/templates/base.html @@ -17,7 +17,7 @@ {% set navigation_bar = [ ('/', 'index', 'Home', false), - ('/handbook', 'handbook', 'Handbook', false), + ('/handbook#detailed-table-of-contents', 'handbook', 'Handbook', false), (player_bar, 'section', 'Player Resources', false), (judge_bar, 'section', 'Judge Resources', false), ('https://reddit.com/r/PalismaACKS', 'subreddit', '/r/PalismaACKS', true), diff --git a/acks/templates/shares_calc.html b/acks/templates/shares_calc.html index b956271..2c87165 100644 --- a/acks/templates/shares_calc.html +++ b/acks/templates/shares_calc.html @@ -51,7 +51,7 @@
-

Henchmen GP Shares

+

Henchmen XP Shares

diff --git a/roll20/macros/scavengcard.macro b/roll20/macros/scavengcard.macro new file mode 100644 index 0000000..c19a1d1 --- /dev/null +++ b/roll20/macros/scavengcard.macro @@ -0,0 +1,32 @@ +!scriptcard {{ + --#title|Scavenge Gear + + --:Initialize Roll Vars| + --&EqType|?{Equipment Type?|Bladed Weapon,Scavenge-Blade|Blunt Weapon,Scavenge-Blunt|Armour and Equipment,Scavenge-Other} + --=Quantity|?{Quantity?|1} + --=Roll| + --=RollCount|0 + + --?[&EqType] -eq Scavenge-Blade|>Blade;[$Quantity] + --?[&EqType] -eq Scavenge-Blunt|>Blunt;[$Quantity] + --?[&EqType] -eq Scavenge-Other|>Other;[$Quantity] + + --:Loop| + --=RollCount|[$RollCount] + 1 + -->RollTable| + --+[$RollCount]|[$Roll.tableEntryText] + --?[$RollCount] -lt [$Quantity]|Loop + + --X| End macro + + --:Blade| --+Bladed Weapon(s)|Rolling [%1%] times --<| + --:Blunt| --+Blunt Weapon(s)|Rolling [%1%] times --<| + --:Other| --+Armour/Other|Rolling [%1%] times --<| + +--:FUNCTIONS| + + --:RollTable| + --=Roll|[T#[&EqType]] + --<| + +}}