From 7d9b8ac6e037e374b548bbbbb33472b127fff0ad Mon Sep 17 00:00:00 2001 From: Brandon Cornejo Date: Sun, 10 Jan 2021 20:45:43 -0600 Subject: [PATCH] Gp/Xp spoil share calculator page --- acks/templates/base.html | 1 + acks/templates/shares_calc.html | 145 ++++++++++++++++++++++++++++++++ acks/views.py | 3 + 3 files changed, 149 insertions(+) create mode 100644 acks/templates/shares_calc.html diff --git a/acks/templates/base.html b/acks/templates/base.html index ee26bd3..e17b76f 100644 --- a/acks/templates/base.html +++ b/acks/templates/base.html @@ -2,6 +2,7 @@ ('/npc/spells', 'spells', 'Spells', false), ('/worldmap', 'worldmap', 'Maps', false), ('/player_tokens', 'tokens', 'Tokens', false), + ('/shares_calculator', 'shares_calc', 'Spoil Shares', false), ('https://reddit.com/r/PalismaACKS/wiki', 'redditwiki', 'Wiki', true), ] %} {% set judge_bar = [ diff --git a/acks/templates/shares_calc.html b/acks/templates/shares_calc.html new file mode 100644 index 0000000..ee0b2cd --- /dev/null +++ b/acks/templates/shares_calc.html @@ -0,0 +1,145 @@ +{% extends "base.html" %} +{% set active_page = "shares_calc" %} + +{% block title %}Spoil Shares Calculator{% endblock %} +{% block content %} +
+

Adventurer Conqueror KingSpoil Shares Calculator

+
+ +
+
+

Session Info

+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+

Henchmen GP Shares

+ + + + + + + + +
Bonus XP RateShare Per-Henchman
+
+
+

Player XP Shares

+ + + + + + + + +
Bonus XP RateShare Per-Player
+ +

Player GP Share

+ +
+
+{% endblock %} + +{% block head %} + +{% endblock %} + +{% block scripts %} + +{% endblock %} diff --git a/acks/views.py b/acks/views.py index f235558..ddf322b 100644 --- a/acks/views.py +++ b/acks/views.py @@ -95,3 +95,6 @@ def generate_wandering_monster(): monster = wandering_monster.generate_wilderness_monster(data['check_mod'], data['terrain_type'], data['reaction_mod'], data['surprise_mod']) return monster +@default_views.route('/shares_calculator') +def shares_calculator(): + return render_template('shares_calc.html')