diff --git a/D&D_5e_Shaped/gulpfile.js b/D&D_5e_Shaped/gulpfile.js index 925b6bd520..b4fd18e5a1 100644 --- a/D&D_5e_Shaped/gulpfile.js +++ b/D&D_5e_Shaped/gulpfile.js @@ -1,10 +1,33 @@ var gulp = require('gulp'), - include = require('gulp-include'); + include = require('gulp-include'), + inject = require('gulp-inject'); gulp.task('include', function() { gulp.src('precompiled/D&D_5e.html') .pipe( include() ) + .pipe( inject(gulp.src(['precompiled/components/meleewpn.html']), { + starttag: '', + transform: function (filePath, file) { + var template = file.contents.toString('utf8'); + var s = ""; + for (var i = 0; i < 7; i++) { + s += template.replace(/\x7B\x7Bnum\x7D\x7D/g, i.toString()); + } + return s; + } + })) + .pipe( inject(gulp.src(['precompiled/components/rangedwpn.html']), { + starttag: '', + transform: function (filePath, file) { + var template = file.contents.toString('utf8'); + var s = ""; + for (var i = 0; i < 7; i++) { + s += template.replace(/\x7B\x7Bnum\x7D\x7D/g, i.toString()); + } + return s; + } + })) .pipe( gulp.dest('./') ) }); \ No newline at end of file diff --git a/D&D_5e_Shaped/precompiled/components/meleewpn.html b/D&D_5e_Shaped/precompiled/components/meleewpn.html new file mode 100644 index 0000000000..14a6deb0b2 --- /dev/null +++ b/D&D_5e_Shaped/precompiled/components/meleewpn.html @@ -0,0 +1,121 @@ +
+
+ +
+ + + + + + + + + + + Emote + Attack + Reach + Dmg + Secondary + Crit + Bonus + Bonuses + + + +
+
+
+ +
+
+
+
+
+ +
Emote
+
+
+
+
+ +
Prof
+
+
+ +
Atk Stat
+
+
+ +
+Atk
+
+
+ +
To Hit
+
+
+ +
Reach
+
+
+ +
Dmg Dice
+
+
+ +
Dmg Stat
+
+
+ +
+Dmg
+
+
+ +
Dmg Mod
+
+
+ +
Dmg Type
+
+
+ +
2nd Dmg Dice
+
+
+ +
2nd +Dmg
+
+
+ +
2nd Dmg Type
+
+
+ +
Bonus Crit Dmg
+
+
+ +
Crit Range
+
+
+
+ diff --git a/D&D_5e_Shaped/precompiled/components/rangedwpn.html b/D&D_5e_Shaped/precompiled/components/rangedwpn.html new file mode 100644 index 0000000000..384e704ac9 --- /dev/null +++ b/D&D_5e_Shaped/precompiled/components/rangedwpn.html @@ -0,0 +1,128 @@ +
+
+ +
+ + + + + + + + + + + Emote + Attack + Range + Dmg + Secondary + Crit + Bonus + Bonuses + + + +
+
+
+ +
+
+
+
+
+ +
Emote
+
+
+
+
+ +
Prof
+
+
+ +
Atk Stat
+
+
+ +
+Atk
+
+
+ +
To Hit
+
+
+ +
+ Range + Reichweite +
+
+
+ +
Ammo
+
+
+ +
Dmg Dice
+
+
+ +
Dmg Stat
+
+
+ +
+Dmg
+
+
+ +
Dmg Mod
+
+
+ +
Dmg Type
+
+
+ +
2nd Dmg Dice
+
+
+ +
2nd +Dmg
+
+
+ +
2nd Dmg Type
+
+
+ +
Bonus Crit Dmg
+
+
+ +
Crit Range
+
+
+
+ diff --git a/D&D_5e_Shaped/precompiled/pages/weapons.html b/D&D_5e_Shaped/precompiled/pages/weapons.html index fd6f98ba1a..55257b645d 100644 --- a/D&D_5e_Shaped/precompiled/pages/weapons.html +++ b/D&D_5e_Shaped/precompiled/pages/weapons.html @@ -49,1753 +49,18 @@
-
-
- -
- - - - - - - - - - - Emote - Attack - Reach - Dmg - Secondary - Crit - Bonus - Bonuses - - - -
-
-
- -
-
-
-
-
- -
Emote
-
-
-
-
- -
Prof
-
-
- -
Atk Stat
-
-
- -
+Atk
-
-
- -
To Hit
-
-
- -
Reach
-
-
- -
Dmg Dice
-
-
- -
Dmg Stat
-
-
- -
+Dmg
-
-
- -
Dmg Mod
-
-
- -
Dmg Type
-
-
- -
2nd Dmg Dice
-
-
- -
2nd +Dmg
-
-
- -
2nd Dmg Type
-
-
- -
Bonus Crit Dmg
-
-
- -
Crit Range
-
-
-
- -
-
- -
- - - - - - - - - - - Emote - Attack - Reach - Dmg - Secondary - Crit - Bonus - Bonuses - - - -
-
-
- -
-
-
-
-
- -
Emote
-
-
-
-
- -
Prof
-
-
- -
Atk Stat
-
-
- -
+Atk
-
-
- -
To Hit
-
-
- -
Reach
-
-
- -
Dmg Dice
-
-
- -
Dmg Stat
-
-
- -
+Dmg
-
-
- -
Dmg Mod
-
-
- -
Dmg Type
-
-
- -
2nd Dmg Dice
-
-
- -
2nd +Dmg
-
-
- -
2nd Dmg Type
-
-
- -
Bonus Crit Dmg
-
-
- -
Crit Range
-
-
-
- -
-
- -
- - - - - - - - - - - Emote - Attack - Reach - Dmg - Secondary - Crit - Bonus - Bonuses - - - -
-
-
- -
-
-
-
-
- -
Emote
-
-
-
-
- -
Prof
-
-
- -
Atk Stat
-
-
- -
+Atk
-
-
- -
To Hit
-
-
- -
Reach
-
-
- -
Dmg Dice
-
-
- -
Dmg Stat
-
-
- -
+Dmg
-
-
- -
Dmg Mod
-
-
- -
Dmg Type
-
-
- -
2nd Dmg Dice
-
-
- -
2nd +Dmg
-
-
- -
2nd Dmg Type
-
-
- -
Bonus Crit Dmg
-
-
- -
Crit Range
-
-
-
- -
-
- -
- - - - - - - - - - - Emote - Attack - Reach - Dmg - Secondary - Crit - Bonus - Bonuses - - - -
-
-
- -
-
-
-
-
- -
Emote
-
-
-
-
- -
Prof
-
-
- -
Atk Stat
-
-
- -
+Atk
-
-
- -
To Hit
-
-
- -
Reach
-
-
- -
Dmg Dice
-
-
- -
Dmg Stat
-
-
- -
+Dmg
-
-
- -
Dmg Mod
-
-
- -
Dmg Type
-
-
- -
2nd Dmg Dice
-
-
- -
2nd +Dmg
-
-
- -
2nd Dmg Type
-
-
- -
Bonus Crit Dmg
-
-
- -
Crit Range
-
-
-
- -
-
- -
- - - - - - - - - - - Emote - Attack - Reach - Dmg - Secondary - Crit - Bonus - Bonuses - - - -
-
-
- -
-
-
-
-
- -
Emote
-
-
-
-
- -
Prof
-
-
- -
Atk Stat
-
-
- -
+Atk
-
-
- -
To Hit
-
-
- -
Reach
-
-
- -
Dmg Dice
-
-
- -
Dmg Stat
-
-
- -
+Dmg
-
-
- -
Dmg Mod
-
-
- -
Dmg Type
-
-
- -
2nd Dmg Dice
-
-
- -
2nd +Dmg
-
-
- -
2nd Dmg Type
-
-
- -
Bonus Crit Dmg
-
-
- -
Crit Range
-
-
-
- -
-
- -
- - - - - - - - - - - Emote - Attack - Reach - Dmg - Secondary - Crit - Bonus - Bonuses - - - -
-
-
- -
-
-
-
-
- -
Emote
-
-
-
-
- -
Prof
-
-
- -
Atk Stat
-
-
- -
+Atk
-
-
- -
To Hit
-
-
- -
Reach
-
-
- -
Dmg Dice
-
-
- -
Dmg Stat
-
-
- -
+Dmg
-
-
- -
Dmg Mod
-
-
- -
Dmg Type
-
-
- -
2nd Dmg Dice
-
-
- -
2nd +Dmg
-
-
- -
2nd Dmg Type
-
-
- -
Bonus Crit Dmg
-
-
- -
Crit Range
-
-
-
- -
-
- -
- - - - - - - - - - - Emote - Attack - Reach - Dmg - Secondary - Crit - Bonus - Bonuses - - - -
-
-
- -
-
-
-
-
- -
Emote
-
-
-
-
- -
Prof
-
-
- -
Atk Stat
-
-
- -
+Atk
-
-
- -
To Hit
-
-
- -
Reach
-
-
- -
Dmg Dice
-
-
- -
Dmg Stat
-
-
- -
+Dmg
-
-
- -
Dmg Mod
-
-
- -
Dmg Type
-
-
- -
2nd Dmg Dice
-
-
- -
2nd +Dmg
-
-
- -
2nd Dmg Type
-
-
- -
Bonus Crit Dmg
-
-
- -
Crit Range
-
-
-
+ + +

-
-
- -
- - - - - - - - - - - Emote - Attack - Range - Dmg - Secondary - Crit - Bonus - Bonuses - - - -
-
-
- -
-
-
-
-
- -
Emote
-
-
-
-
- -
Prof
-
-
- -
Atk Stat
-
-
- -
+Atk
-
-
- -
To Hit
-
-
- -
- Range - Reichweite -
-
-
- -
Ammo
-
-
- -
Dmg Dice
-
-
- -
Dmg Stat
-
-
- -
+Dmg
-
-
- -
Dmg Mod
-
-
- -
Dmg Type
-
-
- -
2nd Dmg Dice
-
-
- -
2nd +Dmg
-
-
- -
2nd Dmg Type
-
-
- -
Bonus Crit Dmg
-
-
- -
Crit Range
-
-
-
- -
-
- -
- - - - - - - - - - - Emote - Attack - Range - Dmg - Secondary - Crit - Bonus - Bonuses - - - -
-
-
- -
-
-
-
-
- -
Emote
-
-
-
-
- -
Prof
-
-
- -
Atk Stat
-
-
- -
+Atk
-
-
- -
To Hit
-
-
- -
- Range - Reichweite -
-
-
- -
Ammo
-
-
- -
Dmg Dice
-
-
- -
Dmg Stat
-
-
- -
+Dmg
-
-
- -
Dmg Mod
-
-
- -
Dmg Type
-
-
- -
2nd Dmg Dice
-
-
- -
2nd +Dmg
-
-
- -
2nd Dmg Type
-
-
- -
Bonus Crit Dmg
-
-
- -
Crit Range
-
-
-
- -
-
- -
- - - - - - - - - - - Emote - Attack - Range - Dmg - Secondary - Crit - Bonus - Bonuses - - - -
-
-
- -
-
-
-
-
- -
Emote
-
-
-
-
- -
Prof
-
-
- -
Atk Stat
-
-
- -
+Atk
-
-
- -
To Hit
-
-
- -
- Range - Reichweite -
-
-
- -
Ammo
-
-
- -
Dmg Dice
-
-
- -
Dmg Stat
-
-
- -
+Dmg
-
-
- -
Dmg Mod
-
-
- -
Dmg Type
-
-
- -
2nd Dmg Dice
-
-
- -
2nd +Dmg
-
-
- -
2nd Dmg Type
-
-
- -
Bonus Crit Dmg
-
-
- -
Crit Range
-
-
-
- -
-
- -
- - - - - - - - - - - Emote - Attack - Range - Dmg - Secondary - Crit - Bonus - Bonuses - - - -
-
-
- -
-
-
-
-
- -
Emote
-
-
-
-
- -
Prof
-
-
- -
Atk Stat
-
-
- -
+Atk
-
-
- -
To Hit
-
-
- -
- Range - Reichweite -
-
-
- -
Ammo
-
-
- -
Dmg Dice
-
-
- -
Dmg Stat
-
-
- -
+Dmg
-
-
- -
Dmg Mod
-
-
- -
Dmg Type
-
-
- -
2nd Dmg Dice
-
-
- -
2nd +Dmg
-
-
- -
2nd Dmg Type
-
-
- -
Bonus Crit Dmg
-
-
- -
Crit Range
-
-
-
- -
-
- -
- - - - - - - - - - - Emote - Attack - Range - Dmg - Secondary - Crit - Bonus - Bonuses - - - -
-
-
- -
-
-
-
-
- -
Emote
-
-
-
-
- -
Prof
-
-
- -
Atk Stat
-
-
- -
+Atk
-
-
- -
To Hit
-
-
- -
- Range - Reichweite -
-
-
- -
Ammo
-
-
- -
Dmg Dice
-
-
- -
Dmg Stat
-
-
- -
+Dmg
-
-
- -
Dmg Mod
-
-
- -
Dmg Type
-
-
- -
2nd Dmg Dice
-
-
- -
2nd +Dmg
-
-
- -
2nd Dmg Type
-
-
- -
Bonus Crit Dmg
-
-
- -
Crit Range
-
-
-
- -
-
- -
- - - - - - - - - - - Emote - Attack - Range - Dmg - Secondary - Crit - Bonus - Bonuses - - - -
-
-
- -
-
-
-
-
- -
Emote
-
-
-
-
- -
Prof
-
-
- -
Atk Stat
-
-
- -
+Atk
-
-
- -
To Hit
-
-
- -
- Range - Reichweite -
-
-
- -
Ammo
-
-
- -
Dmg Dice
-
-
- -
Dmg Stat
-
-
- -
+Dmg
-
-
- -
Dmg Mod
-
-
- -
Dmg Type
-
-
- -
2nd Dmg Dice
-
-
- -
2nd +Dmg
-
-
- -
2nd Dmg Type
-
-
- -
Bonus Crit Dmg
-
-
- -
Crit Range
-
-
-
- -
-
- -
- - - - - - - - - - - Emote - Attack - Range - Dmg - Secondary - Crit - Bonus - Bonuses - - - -
-
-
- -
-
-
-
-
- -
Emote
-
-
-
-
- -
Prof
-
-
- -
Atk Stat
-
-
- -
+Atk
-
-
- -
To Hit
-
-
- -
- Range - Reichweite -
-
-
- -
Ammo
-
-
- -
Dmg Dice
-
-
- -
Dmg Stat
-
-
- -
+Dmg
-
-
- -
Dmg Mod
-
-
- -
Dmg Type
-
-
- -
2nd Dmg Dice
-
-
- -
2nd +Dmg
-
-
- -
2nd Dmg Type
-
-
- -
Bonus Crit Dmg
-
-
- -
Crit Range
-
-
-
+ + +