Save file functionality

This commit is contained in:
2024-06-18 11:33:55 -04:00
parent 082b1353bc
commit 3a1b69a987
30 changed files with 428 additions and 1346 deletions

View File

@@ -1,611 +0,0 @@
extends Node
const Rarity = {
"COMMON":0.8,
"UNCOMMON": 0.4,
"RARE": 0.2,
"SUPERRARE": 0.1,
"LEGENDARY": 0.05
}
var members = {
"squire": {
"name": "Squire",
"description": "Someone who does things for someone else, not very impressive.",
"perSec": 1,
"clickAdd": 1,
"scoreMultiplier": 1,
"isObtained": true,
"memberAmount": 1,
"texturePath": "res://Images/Members/Squire.png",
"tier": 1,
"rarity": Rarity.COMMON
},
"archer": {
"name": "Archer",
"description": "Better at accurate clicks than consistent damage",
"perSec": 2,
"clickAdd": 2,
"scoreMultiplier": 1,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Archer.png",
"tier": 1,
"rarity": Rarity.COMMON
},
"mage": {
"name": "Mage",
"description": "A good mix of DPS and click power",
"perSec": 3,
"clickAdd": 3,
"scoreMultiplier": 1,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Mage.png",
"tier": 1,
"rarity": Rarity.COMMON
},
"warrior": {
"name": "Warrior",
"description": "Strong and brave fighter",
"perSec": 4,
"clickAdd": 4,
"scoreMultiplier": 1,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Warrior.png",
"tier": 1,
"rarity": Rarity.COMMON
},
"healer": {
"name": "Healer",
"description": "Skilled in healing magic",
"perSec": 5,
"clickAdd": 5,
"scoreMultiplier": 1,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Healer.png",
"tier": 1,
"rarity": Rarity.COMMON
},
"knight": {
"name": "Knight",
"description": "Valiant defender of the realm",
"perSec": 6,
"clickAdd": 6,
"scoreMultiplier": 1,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Knight.png",
"tier": 1,
"rarity": Rarity.COMMON
},
"assassin": {
"name": "Assassin",
"description": "Expert in stealth and quick kills",
"perSec": 7,
"clickAdd": 7,
"scoreMultiplier": 1,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Assassin.png",
"tier": 1,
"rarity": Rarity.COMMON
},
"paladin": {
"name": "Paladin",
"description": "Holy warrior with healing abilities",
"perSec": 8,
"clickAdd": 8,
"scoreMultiplier": 1,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Paladin.png",
"tier": 1,
"rarity": Rarity.COMMON
},
"ranger": {
"name": "Ranger",
"description": "Skilled in ranged combat and survival",
"perSec": 9,
"clickAdd": 9,
"scoreMultiplier": 1,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Ranger.png",
"tier": 1,
"rarity": Rarity.COMMON
},
"bard": {
"name": "Bard",
"description": "Musical magician with supportive abilities",
"perSec": 10,
"clickAdd": 10,
"scoreMultiplier": 1,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Bard.png",
"tier": 1,
"rarity": Rarity.COMMON
},
"crusader": {
"name": "Crusader",
"description": "Devout warrior on a holy quest",
"perSec": 11,
"clickAdd": 11,
"scoreMultiplier": 1.1,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Crusader.png",
"tier": 2,
"rarity": Rarity.UNCOMMON
},
"druid": {
"name": "Druid",
"description": "Nature mage with control over the elements",
"perSec": 12,
"clickAdd": 12,
"scoreMultiplier": 1.1,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Druid.png",
"tier": 2,
"rarity": Rarity.UNCOMMON
},
"samurai": {
"name": "Samurai",
"description": "Noble warrior with unmatched skill",
"perSec": 13,
"clickAdd": 13,
"scoreMultiplier": 1.1,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Samurai.png",
"tier": 2,
"rarity": Rarity.UNCOMMON
},
"ninja": {
"name": "Ninja",
"description": "Stealthy assassin with deadly precision",
"perSec": 14,
"clickAdd": 14,
"scoreMultiplier": 1.1,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Ninja.png",
"tier": 2,
"rarity": Rarity.UNCOMMON
},
"summoner": {
"name": "Summoner",
"description": "Mage with the ability to summon creatures",
"perSec": 15,
"clickAdd": 15,
"scoreMultiplier": 1.1,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Summoner.png",
"tier": 2,
"rarity": Rarity.UNCOMMON
},
"shaman": {
"name": "Shaman",
"description": "Spiritual healer and magic user",
"perSec": 16,
"clickAdd": 16,
"scoreMultiplier": 1.1,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Shaman.png",
"tier": 2,
"rarity": Rarity.UNCOMMON
},
"necromancer": {
"name": "Necromancer",
"description": "Dark mage with control over the dead",
"perSec": 17,
"clickAdd": 17,
"scoreMultiplier": 1.1,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Necromancer.png",
"tier": 2,
"rarity": Rarity.UNCOMMON
},
"berserker": {
"name": "Berserker",
"description": "Fierce warrior with unstoppable rage",
"perSec": 18,
"clickAdd": 18,
"scoreMultiplier": 1.1,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Berserker.png",
"tier": 2,
"rarity": Rarity.UNCOMMON
},
"monk": {
"name": "Monk",
"description": "Master of martial arts and inner peace",
"perSec": 19,
"clickAdd": 19,
"scoreMultiplier": 1.1,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Monk.png",
"tier": 2,
"rarity": Rarity.UNCOMMON
},
"alchemist": {
"name": "Alchemist",
"description": "Skilled in the art of potion-making",
"perSec": 20,
"clickAdd": 20,
"scoreMultiplier": 1.1,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Alchemist.png",
"tier": 2,
"rarity": Rarity.UNCOMMON
},
"barbarian": {
"name": "Barbarian",
"description": "Savage warrior with immense strength",
"perSec": 21,
"clickAdd": 21,
"scoreMultiplier": 1.2,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Barbarian.png",
"tier": 3,
"rarity": Rarity.RARE
},
"illusionist": {
"name": "Illusionist",
"description": "Mage with mastery over illusions",
"perSec": 22,
"clickAdd": 22,
"scoreMultiplier": 1.2,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Illusionist.png",
"tier": 3,
"rarity": Rarity.RARE
},
"warlock": {
"name": "Warlock",
"description": "Dark mage with forbidden knowledge",
"perSec": 23,
"clickAdd": 23,
"scoreMultiplier": 1.2,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Warlock.png",
"tier": 3,
"rarity": Rarity.RARE
},
"pirate": {
"name": "Pirate",
"description": "Swashbuckling rogue of the seas",
"perSec": 24,
"clickAdd": 24,
"scoreMultiplier": 1.2,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Pirate.png",
"tier": 3,
"rarity": Rarity.RARE
},
"gladiator": {
"name": "Gladiator",
"description": "Champion of the arena",
"perSec": 25,
"clickAdd": 25,
"scoreMultiplier": 1.2,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Gladiator.png",
"tier": 3,
"rarity": Rarity.RARE
},
"rune_master": {
"name": "Rune Master",
"description": "Mage with mastery over runic magic",
"perSec": 26,
"clickAdd": 26,
"scoreMultiplier": 1.2,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Rune_Master.png",
"tier": 3,
"rarity": Rarity.RARE
},
"beastmaster": {
"name": "Beastmaster",
"description": "Warrior with control over beasts",
"perSec": 27,
"clickAdd": 27,
"scoreMultiplier": 1.2,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Beastmaster.png",
"tier": 3,
"rarity": Rarity.RARE
},
"elementalist": {
"name": "Elementalist",
"description": "Mage with control over the elements",
"perSec": 28,
"clickAdd": 28,
"scoreMultiplier": 1.2,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Elementalist.png",
"tier": 3,
"rarity": Rarity.RARE
},
"shadow_knight": {
"name": "Shadow Knight",
"description": "Dark warrior with control over shadows",
"perSec": 29,
"clickAdd": 29,
"scoreMultiplier": 1.2,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Shadow_Knight.png",
"tier": 3,
"rarity": Rarity.RARE
},
"archmage": {
"name": "Archmage",
"description": "Supreme master of magical arts",
"perSec": 30,
"clickAdd": 30,
"scoreMultiplier": 1.2,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Archmage.png",
"tier": 3,
"rarity": Rarity.RARE
},
"dark_paladin": {
"name": "Dark Paladin",
"description": "Corrupted knight with dark powers",
"perSec": 31,
"clickAdd": 31,
"scoreMultiplier": 1.3,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Dark_Paladin.png",
"tier": 4,
"rarity": Rarity.SUPERRARE
},
"demon_hunter": {
"name": "Demon Hunter",
"description": "Expert in slaying demonic creatures",
"perSec": 32,
"clickAdd": 32,
"scoreMultiplier": 1.3,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Demon_Hunter.png",
"tier": 4,
"rarity": Rarity.SUPERRARE
},
"spirit_guardian": {
"name": "Spirit Guardian",
"description": "Protector of the spiritual realm",
"perSec": 33,
"clickAdd": 33,
"scoreMultiplier": 1.3,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Spirit_Guardian.png",
"tier": 4,
"rarity": Rarity.SUPERRARE
},
"phoenix": {
"name": "Phoenix",
"description": "Immortal bird of fire and rebirth",
"perSec": 34,
"clickAdd": 34,
"scoreMultiplier": 1.3,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Phoenix.png",
"tier": 4,
"rarity": Rarity.SUPERRARE
},
"dragon_rider": {
"name": "Dragon Rider",
"description": "Warrior who rides a mighty dragon",
"perSec": 35,
"clickAdd": 35,
"scoreMultiplier": 1.3,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Dragon_Rider.png",
"tier": 4,
"rarity": Rarity.SUPERRARE
},
"soul_reaper": {
"name": "Soul Reaper",
"description": "Harvester of souls from the afterlife",
"perSec": 36,
"clickAdd": 36,
"scoreMultiplier": 1.3,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Soul_Reaper.png",
"tier": 4,
"rarity": Rarity.SUPERRARE
},
"stormcaller": {
"name": "Stormcaller",
"description": "Mage with control over storms",
"perSec": 37,
"clickAdd": 37,
"scoreMultiplier": 1.3,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Stormcaller.png",
"tier": 4,
"rarity": Rarity.SUPERRARE
},
"blade_dancer": {
"name": "Blade Dancer",
"description": "Agile warrior with deadly precision",
"perSec": 38,
"clickAdd": 38,
"scoreMultiplier": 1.3,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Blade_Dancer.png",
"tier": 4,
"rarity": Rarity.SUPERRARE
},
"celestial_mage": {
"name": "Celestial Mage",
"description": "Mage with power over celestial bodies",
"perSec": 39,
"clickAdd": 39,
"scoreMultiplier": 1.3,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Celestial_Mage.png",
"tier": 4,
"rarity": Rarity.SUPERRARE
},
"void_walker": {
"name": "Void Walker",
"description": "Mage with control over void magic",
"perSec": 40,
"clickAdd": 40,
"scoreMultiplier": 1.3,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Void_Walker.png",
"tier": 4,
"rarity": Rarity.SUPERRARE
},
"eternal_knight": {
"name": "Eternal Knight",
"description": "Immortal protector of the realm",
"perSec": 41,
"clickAdd": 41,
"scoreMultiplier": 1.4,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Eternal_Knight.png",
"tier": 5,
"rarity": Rarity.LEGENDARY
},
"chaos_warrior": {
"name": "Chaos Warrior",
"description": "Warrior with control over chaos",
"perSec": 42,
"clickAdd": 42,
"scoreMultiplier": 1.4,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Chaos_Warrior.png",
"tier": 5,
"rarity": Rarity.LEGENDARY
},
"starfall_mage": {
"name": "Starfall Mage",
"description": "Mage with control over falling stars",
"perSec": 43,
"clickAdd": 43,
"scoreMultiplier": 1.4,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Starfall_Mage.png",
"tier": 5,
"rarity": Rarity.LEGENDARY
},
"abyssal_warlock": {
"name": "Abyssal Warlock",
"description": "Dark mage with control over the abyss",
"perSec": 44,
"clickAdd": 44,
"scoreMultiplier": 1.4,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Abyssal_Warlock.png",
"tier": 5,
"rarity": Rarity.LEGENDARY
},
"lunar_knight": {
"name": "Lunar Knight",
"description": "Warrior with power over the moon",
"perSec": 45,
"clickAdd": 45,
"scoreMultiplier": 1.4,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Lunar_Knight.png",
"tier": 5,
"rarity": Rarity.LEGENDARY
},
"cosmic_mage": {
"name": "Cosmic Mage",
"description": "Mage with control over cosmic energy",
"perSec": 46,
"clickAdd": 46,
"scoreMultiplier": 1.4,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Cosmic_Mage.png",
"tier": 5,
"rarity": Rarity.LEGENDARY
},
"shadow_assassin": {
"name": "Shadow Assassin",
"description": "Master assassin with control over shadows",
"perSec": 47,
"clickAdd": 47,
"scoreMultiplier": 1.4,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Shadow_Assassin.png",
"tier": 5,
"rarity": Rarity.LEGENDARY
},
"firelord": {
"name": "Firelord",
"description": "Mage with mastery over fire",
"perSec": 48,
"clickAdd": 48,
"scoreMultiplier": 1.4,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Firelord.png",
"tier": 5,
"rarity": Rarity.LEGENDARY
},
"ice_queen": {
"name": "Ice Queen",
"description": "Mage with mastery over ice",
"perSec": 49,
"clickAdd": 49,
"scoreMultiplier": 1.4,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Ice_Queen.png",
"tier": 5,
"rarity": Rarity.LEGENDARY
},
"celeste_the_starcaller": {
"name": "Celeste the Starcaller",
"description": "Mage with control over stars",
"perSec": 50,
"clickAdd": 50,
"scoreMultiplier": 1.4,
"isObtained": false,
"memberAmount": 1,
"texturePath": "res://Images/Members/Celeste_the_Starcaller.png",
"tier": 5,
"rarity": Rarity.LEGENDARY
}
}