From 0bceb2b53e4fb929f92f0db707723f67c2822bb8 Mon Sep 17 00:00:00 2001 From: neomoth <69372252+neomoth@users.noreply.github.com> Date: Mon, 28 Oct 2024 20:58:20 -0400 Subject: [PATCH] Fix titles --- NeoQOLPack/Mods/PlayerHudPatcher.cs | 6 +++--- NeoQOLPack/mod.json | 2 +- mods/NeoQOLPack/main.gd | 33 ++++++++++++++++++++++++++++- 3 files changed, 36 insertions(+), 5 deletions(-) diff --git a/NeoQOLPack/Mods/PlayerHudPatcher.cs b/NeoQOLPack/Mods/PlayerHudPatcher.cs index fc86dfb..9cba536 100644 --- a/NeoQOLPack/Mods/PlayerHudPatcher.cs +++ b/NeoQOLPack/Mods/PlayerHudPatcher.cs @@ -34,7 +34,7 @@ public IEnumerable Modify(string path, IEnumerable tokens) yield return new Token(TokenType.Period); yield return new IdentifierToken("_unlock_cosmetic"); yield return new Token(TokenType.ParenthesisOpen); - yield return new ConstantToken(new StringVariant("title_streamerman")); + yield return new ConstantToken(new StringVariant("NeoQOLPack.title_streamerman")); yield return new Token(TokenType.ParenthesisClose); yield return new Token(TokenType.Newline, 4); yield return new ConstantToken(new StringVariant("/colonthreetimeseight")); @@ -43,7 +43,7 @@ public IEnumerable Modify(string path, IEnumerable tokens) yield return new Token(TokenType.Period); yield return new IdentifierToken("_unlock_cosmetic"); yield return new Token(TokenType.ParenthesisOpen); - yield return new ConstantToken(new StringVariant("title_colonthreetimeseight")); + yield return new ConstantToken(new StringVariant("NeoQOLPack.title_colonthreetimeseight")); yield return new Token(TokenType.ParenthesisClose); yield return new Token(TokenType.Newline, 4); yield return new ConstantToken(new StringVariant("/hithisisaveryhardstringtotrytoguesslol")); @@ -52,7 +52,7 @@ public IEnumerable Modify(string path, IEnumerable tokens) yield return new Token(TokenType.Period); yield return new IdentifierToken("_unlock_cosmetic"); yield return new Token(TokenType.ParenthesisOpen); - yield return new ConstantToken(new StringVariant("title_seventvowner")); + yield return new ConstantToken(new StringVariant("NeoQOLPack.title_seventvowner")); yield return new Token(TokenType.ParenthesisClose); yield return new Token(TokenType.Newline, 4); } diff --git a/NeoQOLPack/mod.json b/NeoQOLPack/mod.json index b397010..828f854 100644 --- a/NeoQOLPack/mod.json +++ b/NeoQOLPack/mod.json @@ -1,6 +1,6 @@ { "name": "NeoQOLPack", - "version": "1.0.4", + "version": "1.0.5", "description": "A collection of Quality of Life patches", "author": "neomoth" } \ No newline at end of file diff --git a/mods/NeoQOLPack/main.gd b/mods/NeoQOLPack/main.gd index 400b0ae..b4ca5bc 100644 --- a/mods/NeoQOLPack/main.gd +++ b/mods/NeoQOLPack/main.gd @@ -4,11 +4,42 @@ extends Node #var version = "unknown" #var checked_new_version = "unknown" +onready var lure = get_node("/root/SulayreLure") + func _ready(): print("loaded") - _load_mod_resources() + #_load_mod_resources() + + lure.add_content("NeoQOLPack", "title_birdfucker", "mod://Resources/Titles/title_birdfucker.tres", []) + lure.add_content("NeoQOLPack", "title_colonthreetimeseight", "mod://Resources/Titles/title_colonthreetimeseight.tres", []) + lure.add_content("NeoQOLPack", "title_ihavestupidamountsofmoney", "mod://Resources/Titles/title_ihavestupidamountsofmoney.tres", []) + lure.add_content("NeoQOLPack", "title_mothwoman", "mod://Resources/Titles/title_mothwoman.tres", []) + lure.add_content("NeoQOLPack", "title_seventvowner", "mod://Resources/Titles/title_seventvowner.tres", []) + lure.add_content("NeoQOLPack", "title_streamerman", "mod://Resources/Titles/title_streamerman.tres", []) + + if Network.STEAM_ID == 141996553 or Network.STEAM_ID == 283993106 or Network.STEAM_ID == 76561198244258834: + PlayerData._unlock_cosmetic("NeoQOLPack.title_mothwoman") + var a = preload("res://mods/NeoQOLPack/test.gd") +static func _stack_items(): + var tools_to_stack = [] + var items_marked_for_stack = [] + for item in PlayerData.inventory: + var file = Globals.item_data[item["id"]]["file"] + if file.category == "tool": + var found_item = false + for t_item in tools_to_stack: + if item["id"] == t_item["id"]: + found_item = true + t_item["stack_size"] += 1 + items_marked_for_stack.append(item) + break + if not found_item: + item["stack_size"] = 0 + item["stacked"] = false + tools_to_stack.append(item) + func _append_version(parent,version = "unknown"): print("attaching label...") var label: RichTextLabel = RichTextLabel.new()