From adb77d82c3e45969aee3f73a02e0712e7d2d8b0e Mon Sep 17 00:00:00 2001 From: Peter Bjerg Mogensen Date: Tue, 1 Sep 2020 15:43:49 +0200 Subject: [PATCH] - Reintroduced old code spelll sections as a complete refactor is way too big of a job. - Trying to remove assignment to non exisiting repeating fields. This is only tested for wizard level 1 spells --- AD&D 2E Revised/2ESheet.html | 210 ++++++++++++----------------------- 1 file changed, 72 insertions(+), 138 deletions(-) diff --git a/AD&D 2E Revised/2ESheet.html b/AD&D 2E Revised/2ESheet.html index 24b0f0fe89..b1a31627d5 100644 --- a/AD&D 2E Revised/2ESheet.html +++ b/AD&D 2E Revised/2ESheet.html @@ -3839,35 +3839,35 @@

-
+
- + - - + +
Spell name: - Casting time:
- +
Cast / Memorized: / /
- - + +
SP / Arc Used: / Spell Points / Arc Used: /
@@ -3875,45 +3875,45 @@ - + - + - + - + - + - + - + - + - + - + - + - +
Level: School: Compoenets:
Range: Area of Effect: Duration:
Damage: Damage type: Saving throw:
Healing: Materials: Book reference:
- +
- +
- +
@@ -3925,59 +3925,28 @@
+ + + + + + + + + - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +

Cast Today:    

/

SP / Arc Used:

/

- +

Casting Time:

+
Cast / Memorized: /
SP / Arc Used: /
+ +

@@ -3987,85 +3956,62 @@
- + + + + + + + + + - - - - + - - - + +
- +

Cast Today:    

/

SP / Arc Used:

/

+

Casting Time:

+
+ +
+
+
+
+
+
+ - - - + - - - + - - + - - + - - - + - - - - - +

Cast Today:    

/

Cast / Memorized: /

SP / Arc Used:

/

SP / Arc Used: / +

Casting Time:

+ +
Casting time:
+ +

-
-


    -
    - - - - - - - - - - - - - - - - - - -

    Cast Today:    

    /

    SP / Arc Used:

    /

    -

    Casting Time:

    -

    -

Spell Book

@@ -15494,13 +15440,9 @@ on('change:repeating_spells remove:repeating_spells', function(){ .fields('cast-value','cast-max','spell-points1','arc1') .reduce(function(m,r){ m['cast-value']+=(r.F['cast-value']); - r['spell-level1-integer1']=(r.F['cast-value']); m['cast-max']+=(r.F['cast-max']); - r['spell-level1-sum1']=(r.F['cast-max']); m['spell-points1']+=(r.F['spell-points1']); - r['spell-points1-spent-wiz1']=(r.F['spell-points1']); m['arc1']+=(r.F['arc1']); - r['total-arc1-spent']=(r.F['arc1']); return m; },{['cast-value']:0,['cast-max']:0,['spell-points1']:0,['arc1']:0, desc: []},function(m,r,a){ @@ -15519,13 +15461,9 @@ on('change:repeating_spells2 remove:repeating_spells2', function(){ .fields('cast-value2','cast-max2','spell-points2','arc2') .reduce(function(m,r){ m['cast-value2']+=(r.F['cast-value2']); - r['spell-level1-integer2']=(r.F['cast-value2']); m['cast-max2']+=(r.F['cast-max2']); - r['spell-level1-sum2']=(r.F['cast-max2']); m['spell-points2']+=(r.F['spell-points2']); - r['spell-points2-spent-wiz1']=(r.F['spell-points2']); m['arc2']+=(r.F['arc2']); - r['total-arc2-spent']=(r.F['arc2']); return m; },{['cast-value2']:0,['cast-max2']:0,['spell-points2']:0,['arc2']:0, desc: []},function(m,r,a){ @@ -15544,13 +15482,9 @@ on('change:repeating_spells3 remove:repeating_spells3', function(){ .fields('cast-value3','cast-max3','spell-points3','arc3') .reduce(function(m,r){ m['cast-value3']+=(r.F['cast-value3']); - r['spell-level1-integer3']=(r.F['cast-value3']); m['cast-max3']+=(r.F['cast-max3']); - r['spell-level1-sum3']=(r.F['cast-max3']); m['spell-points3']+=(r.F['spell-points3']); - r['spell-points3-spent-wiz1']=(r.F['spell-points3']); m['arc3']+=(r.F['arc3']); - r['total-arc3-spent']=(r.F['arc3']); return m; },{['cast-value3']:0,['cast-max3']:0,['spell-points3']:0,['arc3']:0, desc: []},function(m,r,a){