From 01cd337c66eaa239223f853b67f18a97e2d58517 Mon Sep 17 00:00:00 2001 From: Patrick_Pluto Date: Fri, 14 Jun 2024 09:42:54 +0200 Subject: [PATCH] JSON System Implemented --- Notes/rules/charackter-rules.txt | 62 -------------------------- Notes/todolist/todo.txt | 39 ----------------- assets/test-charackters/Björn | 46 -------------------- assets/test-charackters/elana | 44 ------------------- assets/test-charackters/gigachad | 72 ------------------------------- assets/test-charackters/lyra | 45 ------------------- assets/test-charackters/tharok | 43 ------------------ assets/test/gigachad.png | Bin 508 -> 0 bytes assets/test/grass.png | Bin 1877 -> 0 bytes assets/test/grass.png.import | 34 --------------- assets/test/player.png | Bin 461 -> 0 bytes assets/test/player.png.import | 34 --------------- assets/test/tharok.png | Bin 540 -> 0 bytes assets/test/water.png | Bin 2632 -> 0 bytes assets/test/water.png.import | 34 --------------- scenes/menu/main.tscn | 15 +++++-- scenes/test/map.tscn | 42 ------------------ scenes/test/player.tscn | 19 -------- scripts/menu.gd | 10 ++++- scripts/player.gd | 1 + 20 files changed, 21 insertions(+), 519 deletions(-) delete mode 100644 Notes/rules/charackter-rules.txt delete mode 100644 Notes/todolist/todo.txt delete mode 100644 assets/test-charackters/Björn delete mode 100644 assets/test-charackters/elana delete mode 100644 assets/test-charackters/gigachad delete mode 100644 assets/test-charackters/lyra delete mode 100644 assets/test-charackters/tharok delete mode 100644 assets/test/gigachad.png delete mode 100644 assets/test/grass.png delete mode 100644 assets/test/grass.png.import delete mode 100644 assets/test/player.png delete mode 100644 assets/test/player.png.import delete mode 100644 assets/test/tharok.png delete mode 100644 assets/test/water.png delete mode 100644 assets/test/water.png.import delete mode 100644 scenes/test/map.tscn delete mode 100644 scenes/test/player.tscn diff --git a/Notes/rules/charackter-rules.txt b/Notes/rules/charackter-rules.txt deleted file mode 100644 index c8040eb..0000000 --- a/Notes/rules/charackter-rules.txt +++ /dev/null @@ -1,62 +0,0 @@ -openDND - -Character-informations - -STR=Strength -DEX=Dexterity -CON=Constitution -INT=Itelligence -WIS=Wisdom -CHA=Charisma - -Skillchecks; -1. Acrobatics (Dexterity) -2. Animal Handling (Wisdom) -3. Arcana (Intelligence) -4. Athletics (Strength) -5. Deception (Charisma) -6. History (Intelligence) -7. Insight (Wisdom) -8. Intimidation (Charisma) -9. Investigation (Intelligence) -10. Medicine (Wisdom) -11. Nature (Intelligence) -12. Perception (Wisdom) -13. Performance (Charisma) -14. Persuasion (Charisma) -15. Religion (Intelligence) -16. Sleight of Hand (Dexterity) -17. Stealth (Dexterity) -18. Survival (Wisdom) - -Proficency Bonus{ - 1-4: +2 - 5-8: +3 - 9-12: +4 - 13-16: +5 - 17-20: +6 -} - -Calculation Modifier=(stat-10)/2 - -Armour Class{ - Base-AC 10 (can be modified by your class) - Dexterity-bonus plus dex (can by limited by your armour) - Armour-Bonus 0 (if not stated different in the item) - Shield: +2 -} -# Example Calculation 10+3+0+2=15 --> AC=15 - -HP{ - Hit-dice (definied by class) - Char-Level multiplier - Con-modifier -} - -#Calculation= level*(hitdice+con-modifier) - -# spellsave-dc-calculation = (10+level+magic-modifier) - - - - diff --git a/Notes/todolist/todo.txt b/Notes/todolist/todo.txt deleted file mode 100644 index dd5f7fb..0000000 --- a/Notes/todolist/todo.txt +++ /dev/null @@ -1,39 +0,0 @@ -# Will be enbeded in an open source Dynamik online tool later on - -ToDo-List - -1. Create a test map - 1.1 Distance Manager - 1.2 Tile creation - 1.3 Limit walking per turn - 1.4 Dynamik Field -2. Create test character 1-3 - 2.1 Base Stats - 2.2 Race - 2.3 Class - 2.4 Background - 2.5 Skill Checks - 2.6 Saving throws - 2.7 Dynamic AC - 2.8 Dynamic HP - 2.9 Inventory - 2.10 pdf, odf, html export -3. Simulation Dice (20, 12, 00, 10, 8, 6, 4, 2) - 3.1 20: For Attacks, Skill Checks, Saving Throws - 3.2 12: Heavy Weapon Damage* - 3.3 10: Two handed Weapon Damage* - 3.4 00: Combined with 10 1-100, for special effects and loot tables - 3.5 8: Weapon Damage* - 3.6 6: short weapon damage* - 3.7 4: Minor Weapon damage* - 3.8 2: Coinflips, Gambling in game etc. -4. combat turns - 4.1 Initiative System - 4.2 Movement, Action, Bonus-action, reaction -5. Enemies - 5.1 Stats - 5.2 Attacks - 5.3 HP - 5.4 AC - 5.5 Inventory -6. To be continiued \ No newline at end of file diff --git a/assets/test-charackters/Björn b/assets/test-charackters/Björn deleted file mode 100644 index ee1fe03..0000000 --- a/assets/test-charackters/Björn +++ /dev/null @@ -1,46 +0,0 @@ -Charackter1{ - Name: Björn - Race: Dwarf - Class: Mage (Level 1) - - Stats{ - STR 8 -1 - DEX 12 +1 - CON 10 -0 - INT 16 +3 - WIS 14 +2 - CHA 12 +1 - } - - Proficency{Arcana, History, Nature} - - Movement: 30 - Action: Cast a spell (watch spelllist) - Bonus-action: - Dagger: +dex+prof 1d4 5 - Dodge: Damage-halved - Reaction: - Counterspell: Watch Spellist - reduce-harm: Reduce damage taken by a ally by 1d10+level - - Race-feature{ - Dwarfen-resistance: Poison Damage halved - Healing-Word ability - reduce-harm - } - - Spellslots: 3x Longrest - - Spelllist{ - Level 0 (At Will Spells): - Name Bonus to hit Damage Damagetype reach - Firedagger +int+prof 1d10+int fire 120 - Icedagger +int+prof 1d10+int ice 120 - Mage-shield - 10 Temporary HP - self - Level 1: - Create-flame Dex-save 3d6 fire 80 / 20 radius - Healing-word - 1d8 heal 30 - Counterspell If roll higher than enemy == enemy spells doesn't work 30 - } - -} diff --git a/assets/test-charackters/elana b/assets/test-charackters/elana deleted file mode 100644 index 27ee243..0000000 --- a/assets/test-charackters/elana +++ /dev/null @@ -1,44 +0,0 @@ -Character2 { - Name: Elara - Race: Elf - Class: Ranger (Level 1) - - Stats { - STR 10 +0 - DEX 14 +2 - CON 12 +1 - INT 10 +0 - WIS 16 +3 - CHA 8 -1 - } - - Proficiency { Animal Handling, Stealth, Survival } - - Movement: 35 - Action: Shoot Longbow (watch weaponlist) - Bonus-action: - Dagger: +dex+prof 1d4+2 - Hide: Become invisible - Reaction: - Parry: Reduce damage taken by 1d6+level - - Race-feature { - Elven-Agility: Advantage on DEX saves - Trance: Elves don't need to sleep and meditate for 4 hours - Fey-Ancestry: Advantage on saving throws against being charmed, and magic can't put you to sleep - } - - Spellslots: 2x Longrest - - Spelllist { - Level 0 (At Will Spells): - Name Bonus to hit Damage Damagetype reach - Thornwhip +wis+prof 1d6+wis piercing 30 - Mage-hand - - - 30 - Guidance - 1d4 - touch - Level 1: - Goodberry - 1d4 heal 30 - Hunter's-Mark - 1d6 magic 90 - Entangle STR-save - Restrained 20 / 20 radius - } -} diff --git a/assets/test-charackters/gigachad b/assets/test-charackters/gigachad deleted file mode 100644 index f8ca9f8..0000000 --- a/assets/test-charackters/gigachad +++ /dev/null @@ -1,72 +0,0 @@ -Character5 { - Name: Gigachad - Race: Human - Class: Paladin (Level 20) - - Stats { - STR 20 +5 - DEX 14 +2 - CON 18 +4 - INT 10 +0 - WIS 14 +2 - CHA 20 +5 - } - - Proficiency { Athletics, Intimidation, Persuasion, Religion } - - Movement: 30 - Action: Attack with Greatsword (watch weaponlist) - Bonus-action: - Divine Smite: Expend a spell slot to deal extra radiant damage - Shield of Faith: +2 AC for 10 minutes - Lay on Hands: Heal up to 100 HP (pool: level x 5) - Reaction: - Divine Sense: Detect celestial, fiend, or undead within 60 feet - Aura of Protection: Allies within 10 feet add +cha to saving throws - - Race-feature { - Human-Determination: Gain proficiency in one additional skill - Versatility: Gain one extra feat at Level 1 - Resilience: Advantage on saving throws against being frightened - } - - Feats: - Great Weapon Master: Bonus attack on critical hit or kill, and can take a -5 penalty to hit for +10 damage - Tough: +2 HP per level - Inspiring Leader: Can spend 10 minutes inspiring allies, granting temporary HP equal to level + cha modifier - - Class Features: - Divine Health: Immune to disease - Aura of Courage: Allies within 10 feet are immune to being frightened - Aura of Devotion: Allies within 10 feet are immune to being charmed - Cleansing Touch: End one spell on yourself or an ally within touch range (5 times per long rest) - Improved Divine Smite: +1d8 radiant damage on melee attacks - Lay on Hands: Heal up to 100 HP per long rest - Sacred Oath: Oath of Devotion, Oath Spells: (Protection from Evil and Good, Sanctuary, Lesser Restoration, Zone of Truth, Beacon of Hope, Dispel Magic, Freedom of Movement, Guardian of Faith, Commune, Flame Strike, Circle of Power, Holy Weapon) - - Spellslots: 4x 1st, 3x 2nd, 3x 3rd, 3x 4th, 2x 5th (per long rest) - - Spelllist { - Level 1: - Bless - - adv on attacks and saves 30 - Shield of Faith - +2 AC - 60 - Level 2: - Lesser Restoration- - heal conditions touch - Zone of Truth - - - 60 - Level 3: - Dispel Magic - - - 120 - Beacon of Hope - - heal max 30 - Level 4: - Guardian of Faith- 20 radiant - 30 - Freedom of Movement- - - touch - Level 5: - Circle of Power - - adv on saves self (30 radius) - Holy Weapon - 2d8 radiant - 30 - } - - Weaponlist { - Greatsword: +str+prof 2d6+5 slashing - Warhammer: +str+prof 1d8+5 bludgeoning (versatile 1d10) - Javelin: +str+prof 1d6+5 piercing (range 30/120) - } -} diff --git a/assets/test-charackters/lyra b/assets/test-charackters/lyra deleted file mode 100644 index f77a603..0000000 --- a/assets/test-charackters/lyra +++ /dev/null @@ -1,45 +0,0 @@ -Character4 { - Name: Lyra - Race: Tiefling - Class: Bard (Level 1) - - Stats { - STR 8 -1 - DEX 14 +2 - CON 12 +1 - INT 12 +1 - WIS 10 +0 - CHA 16 +3 - } - - Proficiency { Performance, Persuasion, Deception } - - Movement: 30 - Action: Cast a spell (watch spelllist) - Bonus-action: - Inspiration: Grant a d6 to an ally's ability check, attack roll, or saving throw - Dagger: +dex+prof 1d4+2 - Healing Word: Restore 1d4+cha HP to an ally within 60 feet - Reaction: - Cutting Words: Use a Bardic Inspiration die to subtract from an enemy's attack roll, ability check, or damage roll - - Race-feature { - Hellish Resistance: Resistance to fire damage - Infernal Legacy: Can cast Thaumaturgy cantrip; at 3rd level, can cast Hellish Rebuke once per long rest - Darkvision: See in darkness within 60 feet - } - - Spellslots: 2x Longrest - - Spelllist { - Level 0 (At Will Spells): - Name Bonus to hit Damage Damagetype reach - Vicious Mockery - 1d4 psychic 60 - Mending - - - touch - Prestidigitation- - - 10 - Level 1: - Healing Word - 1d4+cha heal 60 - Faerie Fire Dex-save - adv on attacks 20 ft cube - Charm Person Wis-save - charmed 30 - } -} diff --git a/assets/test-charackters/tharok b/assets/test-charackters/tharok deleted file mode 100644 index 8a30341..0000000 --- a/assets/test-charackters/tharok +++ /dev/null @@ -1,43 +0,0 @@ -Character3 { - Name: Tharok - Race: Human - Class: Fighter (Level 1) - - Stats { - STR 16 +3 - DEX 12 +1 - CON 14 +2 - INT 10 +0 - WIS 12 +1 - CHA 10 +0 - } - - Proficiency { Athletics, Intimidation, Perception } - - Movement: 30 - Action: Attack with Longsword (watch weaponlist) - Bonus-action: - Second Wind: Regain 1d10+level HP - Dagger: +dex+prof 1d4+1 - Reaction: - Parry: Reduce damage taken by 1d6+level - - Race-feature { - Human-Determination: Gain proficiency in one additional skill - Versatility: Gain one extra feat at Level 1 - Resilience: Advantage on saving throws against being frightened - } - - Feats: - Great Weapon Fighting: Reroll 1s and 2s on damage dice with melee weapons wielded in two hands - - Combat Skills: - Second Wind: Once per short rest, you can use a bonus action to regain 1d10+level HP - Action Surge: Once per short rest, take one additional action on your turn - - Weaponlist { - Longsword: +str+prof 1d8+3 slashing - Greatsword: +str+prof 2d6+3 slashing - Dagger: +dex+prof 1d4+1 piercing - } -} diff --git a/assets/test/gigachad.png b/assets/test/gigachad.png deleted file mode 100644 index 60df27bfb5332b49134afdddb5ba2c39519f3de3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 508 zcmV;AT7)g!}iW-dJi}B-jzKL^SGt0BGKn zlgkM$3%!iDhuYdh-J9#Gf(@|;y7yvw#bwAaE`qoU{2<7KAo;{P*}}#cyV-2~x7Io- z-?r`iKA^S!Z#vfgDy6R78vs5(9(uB6wTB~UjA4_BE@-WLI}YItI1-`pn0$;x&RO7% zmDPUI_!QU#j4|Is67Ct1U7i4d+mv#N(Od!m5OsHM7?K2XceMzCv8?3~l9Fb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