From 0a701bfcfdbddcbaeb034808e82bf31a8fad1634 Mon Sep 17 00:00:00 2001 From: Andreas Johansson Date: Mon, 9 Aug 2021 18:20:00 +0300 Subject: [PATCH] Stargate RPG v.1.73 remove history skill --- Stargate-RPG/Readme.md | 6 +++++- Stargate-RPG/sheet.json | 2 +- Stargate-RPG/src/js/sheetworker.js | 13 ++++++------- Stargate-RPG/src/pug/core.pug | 9 ++++++--- Stargate-RPG/stargate.html | 21 ++++++++------------- Stargate-RPG/stargate_preview.png | Bin 368464 -> 382571 bytes 6 files changed, 26 insertions(+), 25 deletions(-) diff --git a/Stargate-RPG/Readme.md b/Stargate-RPG/Readme.md index 6ad8ecdde0..d35decb3c3 100644 --- a/Stargate-RPG/Readme.md +++ b/Stargate-RPG/Readme.md @@ -1,9 +1,13 @@ ## Stargate RPG -Offical Roll20 Character sheet for "Stargate RPG" by Wyvern Gaming (Quickstart/Beta Sheet: February 2020, GenCon Release: Aug 2020) created by Andreas J. [@anduh_](https://twitter.com/anduh_) +Offical Roll20 Character sheet for "Stargate RPG" by Wyvern Gaming, sheet created by Andreas J. [@anduh_](https://twitter.com/anduh_) +- [Stargate Core Rulebook](https://stargatetherpg.com/files/file/74-stargate-sg-1-roleplaying-game-core-rulebook/) ### Changelog +**v.1.73 (2021-08-09)** +* Remove History Skill (was skill in old beta rules) + **v.1.72(2021-06)** * update in-sheet changelog * page navigation made always visible diff --git a/Stargate-RPG/sheet.json b/Stargate-RPG/sheet.json index 45fd95663a..709d58d2d7 100644 --- a/Stargate-RPG/sheet.json +++ b/Stargate-RPG/sheet.json @@ -4,7 +4,7 @@ "authors": "Andreas J.", "roll20userid": "1223200", "preview": "stargate_preview.png", - "instructions": "Official character sheet for the 'Stargate RPG' by Wyvern Gaming.\n\n* [Character Sheet Documentation](https://wiki.roll20.net/Stargate)", + "instructions": "Official character sheet for the [Stargate RPG](https://stargatetherpg.com/) by Wyvern Gaming.\n\n* [Character Sheet Documentation](https://wiki.roll20.net/Stargate)\n* Get [Stargate Core Rulebook](https://stargatetherpg.com/files/file/74-stargate-sg-1-roleplaying-game-core-rulebook/)", "useroptions": [ { "attribute": "show_name", diff --git a/Stargate-RPG/src/js/sheetworker.js b/Stargate-RPG/src/js/sheetworker.js index 9aa83849ac..f2a74de7cf 100644 --- a/Stargate-RPG/src/js/sheetworker.js +++ b/Stargate-RPG/src/js/sheetworker.js @@ -1,11 +1,11 @@ //current sheet version -const currentversion = "1.72"; +const currentversion = "1.73"; const int = score => parseInt(score, 10) || 0; const stats = ["str", "dex", "con", "wis", "int", "cha"]; -const skillslist = ["acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "history", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival"]; +const skillslist = ["acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival"]; const statmods = ["str_mod", "dex_mod", "con_mod", "wis_mod", "int_mod", "cha_mod", "prof"]; // Sheet Version @@ -116,7 +116,7 @@ skillslist.forEach(skillcheckbox => { console.log("xbox defined"); console.log("xbox is " + xbox); - let getlist = [ xbox, "acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "history", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival", "acrobatics_c", "animalhandling_c", "athletics_c", "culture_c", "deception_c", "engineering_c", "history_c", "insight_c", "intimidation_c", "investigation_c", "medicine_c", "nature_c", "perception_c", "performance_c", "persuasion_c", "pilot_c", "science_c", "sleight_c", "stealth_c", "survival_c", "prof"]; + let getlist = [ xbox, "acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival", "acrobatics_c", "animalhandling_c", "athletics_c", "culture_c", "deception_c", "engineering_c", "history_c", "insight_c", "intimidation_c", "investigation_c", "medicine_c", "nature_c", "perception_c", "performance_c", "persuasion_c", "pilot_c", "science_c", "sleight_c", "stealth_c", "survival_c", "prof"]; console.log("def getlist"); getAttrs(getlist, values => { @@ -188,7 +188,7 @@ on(`change:prof`, eventInfo => { console.log("prof change"); let profold = int(eventInfo.previousValue); console.log("eventinfo: " + eventInfo.previousValue); - let getlist = ["acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "history", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival", "acrobatics_c", "animalhandling_c", "athletics_c", "culture_c", "deception_c", "engineering_c", "history_c", "insight_c", "intimidation_c", "investigation_c", "medicine_c", "nature_c", "perception_c", "performance_c", "persuasion_c", "pilot_c", "science_c", "sleight_c", "stealth_c", "survival_c", "str_save", "dex_save", "con_save", "wis_save", "int_save", "cha_save","str_save_c", "dex_save_c", "con_save_c", "wis_save_c", "int_save_c", "cha_save_c", "prof", "determination", "determination_max"]; + let getlist = ["acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival", "acrobatics_c", "animalhandling_c", "athletics_c", "culture_c", "deception_c", "engineering_c", "history_c", "insight_c", "intimidation_c", "investigation_c", "medicine_c", "nature_c", "perception_c", "performance_c", "persuasion_c", "pilot_c", "science_c", "sleight_c", "stealth_c", "survival_c", "str_save", "dex_save", "con_save", "wis_save", "int_save", "cha_save","str_save_c", "dex_save_c", "con_save_c", "wis_save_c", "int_save_c", "cha_save_c", "prof", "determination", "determination_max"]; getAttrs(getlist, values => { @@ -210,7 +210,7 @@ on(`change:prof`, eventInfo => { console.log("profold:" + profold + " profnew:" + profnew + " proffdiff: " + profdiff); - let xboxlist = ["acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "history", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival","str_save", "dex_save", "con_save", "wis_save", "int_save", "cha_save"]; + let xboxlist = ["acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival","str_save", "dex_save", "con_save", "wis_save", "int_save", "cha_save"]; xboxlist.forEach(number => { @@ -250,7 +250,7 @@ statmods.forEach(statmod => { console.log("old mod: " + oldstatmod); - let getlist = ["str_mod", "dex_mod", "con_mod", "wis_mod", "int_mod", "cha_mod", "acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "history", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival", "str_save", "dex_save", "con_save", "wis_save", "int_save", "cha_save", "prof", "init", "moxie", "ac", "ac_extra", "determination","determination_max"]; + let getlist = ["str_mod", "dex_mod", "con_mod", "wis_mod", "int_mod", "cha_mod", "acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival", "str_save", "dex_save", "con_save", "wis_save", "int_save", "cha_save", "prof", "init", "moxie", "ac", "ac_extra", "determination","determination_max"]; getAttrs(getlist, values => { @@ -289,7 +289,6 @@ statmods.forEach(statmod => { break; case "int_mod": update["engineering"] = int(values["engineering"]) + moddiff; - update["history"] = int(values["history"]) + moddiff; update["investigation"] = int(values["investigation"]) + moddiff; update["nature"] = int(values["nature"]) + moddiff; update["science"] = int(values["science"]) + moddiff; diff --git a/Stargate-RPG/src/pug/core.pug b/Stargate-RPG/src/pug/core.pug index 3db123b537..d940d14de6 100644 --- a/Stargate-RPG/src/pug/core.pug +++ b/Stargate-RPG/src/pug/core.pug @@ -1,5 +1,5 @@ //- SHEET VERSION -- var version = "1.72"; +- var version = "1.73"; input(type="hidden" name="attr_version" value=`${version}`) //- variables & mixin - var url = "https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Stargate-RPG/images/"; @@ -7,7 +7,7 @@ input(type="hidden" name="attr_version" value=`${version}`) - var pages = ["character", "background", "npc", "settings"]; //- var attr-abr = ["str", "dex", "con", "wis", "int", "cha"]; //- kye-value instead? - var attrnames = {str: "strength", dex: "dexterity", con: "constitution", wis: "wisdom", int: "intelligence", cha: "charisma"}; -- var skills = [{"attr": "acrobatics","name": "Acrobatics","keyattr": "dex"},{"attr": "animalhandling","name": "Animal Handling","keyattr": "wis"},{"attr": "athletics","name": "Athletics","keyattr": "str"},{"attr": "culture","name": "Culture","keyattr": "wis"},{"attr": "deception","name": "Deception","keyattr": "cha"},{"attr": "engineering","name": "Engineering","keyattr": "int"},{"attr": "history","name": "History","keyattr": "int"},{"attr": "insight","name": "Insight","keyattr": "wis"},{"attr": "intimidation","name": "Intimidation","keyattr": "cha"},{"attr": "investigation","name": "Investigation","keyattr": "int"},{"attr": "medicine","name": "Medicine","keyattr": "wis"},{"attr": "nature","name": "Nature","keyattr": "int"},{"attr": "perception","name": "Perception","keyattr": "wis"},{"attr": "performance","name": "performance","keyattr": "cha"},{"attr": "persuasion","name": "Persuasion","keyattr": "cha"},{"attr": "pilot","name": "Pilot","keyattr": "dex"},{"attr": "science","name": "Science","keyattr": "int"},{"attr": "sleight","name": "Sleight of Hand","keyattr": "dex"},{"attr": "stealth","name": "Stealth","keyattr": "dex"},{"attr": "survival","name": "Survival","keyattr": "wis"}]; +- var skills = [{"attr": "acrobatics","name": "Acrobatics","keyattr": "dex"},{"attr": "animalhandling","name": "Animal Handling","keyattr": "wis"},{"attr": "athletics","name": "Athletics","keyattr": "str"},{"attr": "culture","name": "Culture","keyattr": "wis"},{"attr": "deception","name": "Deception","keyattr": "cha"},{"attr": "engineering","name": "Engineering","keyattr": "int"},{"attr": "insight","name": "Insight","keyattr": "wis"},{"attr": "intimidation","name": "Intimidation","keyattr": "cha"},{"attr": "investigation","name": "Investigation","keyattr": "int"},{"attr": "medicine","name": "Medicine","keyattr": "wis"},{"attr": "nature","name": "Nature","keyattr": "int"},{"attr": "perception","name": "Perception","keyattr": "wis"},{"attr": "performance","name": "performance","keyattr": "cha"},{"attr": "persuasion","name": "Persuasion","keyattr": "cha"},{"attr": "pilot","name": "Pilot","keyattr": "dex"},{"attr": "science","name": "Science","keyattr": "int"},{"attr": "sleight","name": "Sleight of Hand","keyattr": "dex"},{"attr": "stealth","name": "Stealth","keyattr": "dex"},{"attr": "survival","name": "Survival","keyattr": "wis"}]; - var condition = {1: "Disadv ability checks", 2: "Speed Halved", 3: "Disadv Attacks, Saves", 4: "Max HP Halved", 5: "Speed Zero", 6: "Death"}; //- var skill-at = []; //- var skill-name = []; @@ -190,7 +190,7 @@ main.character input.w110.mr15(name=`attr_attack${num}_special` type="text") //- --------------------------------------------------------------------------------- -//- --------------------------- BACKGORUND ---------------------------------------------- +//- --------------------------- BACKGROUND ---------------------------------------------- //- --------------------------------------------------------------------------------- main.background section.racial_abilities.columnflex.nowrap.center @@ -277,6 +277,9 @@ main.settings button.txt-btn(name="roll_help" type="roll" value="@{whisper}&{template:stargate} {{title=[(Link)Sheet Userguide](https://wiki.roll20.net/Stargate) }} {{subtitle=Roll20 Wiki}} {{desc= (Right-click to open in a new tab)\n**Official Stargate RPG**\n**Roll20 Character Sheet**\n created by **Andreas J.**([@anduh_](https://twitter.com/anduh_)) }}") Sheet Documentation br h1 Changelog + label "v.1.73 (Aug 9th)" + span + |* Remove History Skill (was skill in old beta rules) label "v.1.72 (June)" span |* code refactor diff --git a/Stargate-RPG/stargate.html b/Stargate-RPG/stargate.html index 4a6a3300be..989cfb9b89 100644 --- a/Stargate-RPG/stargate.html +++ b/Stargate-RPG/stargate.html @@ -1,5 +1,5 @@ - +
@@ -119,11 +119,6 @@ (int)
-
- - - (int) -
@@ -526,6 +521,7 @@ **Roll20 Character Sheet** created by **Andreas J.**([@anduh_](https://twitter.com/anduh_)) }}">Sheet Documentation

Changelog

+ * Remove History Skill (was skill in old beta rules) * code refactor
* page navigation made always visible
* replace page buttons
* add datalists for race, origin, class
* refactor sheet in PUG & SCSS
* update the sheet to work with CSE
* more stats to track on Settings page @@ -624,12 +620,12 @@