Skip to content

Commit

Permalink
Fix titles
Browse files Browse the repository at this point in the history
  • Loading branch information
neomoth committed Oct 29, 2024
1 parent 19732ff commit 0bceb2b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 5 deletions.
6 changes: 3 additions & 3 deletions NeoQOLPack/Mods/PlayerHudPatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public IEnumerable<Token> Modify(string path, IEnumerable<Token> 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"));
Expand All @@ -43,7 +43,7 @@ public IEnumerable<Token> Modify(string path, IEnumerable<Token> 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"));
Expand All @@ -52,7 +52,7 @@ public IEnumerable<Token> Modify(string path, IEnumerable<Token> 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);
}
Expand Down
2 changes: 1 addition & 1 deletion NeoQOLPack/mod.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "NeoQOLPack",
"version": "1.0.4",
"version": "1.0.5",
"description": "A collection of Quality of Life patches",
"author": "neomoth"
}
33 changes: 32 additions & 1 deletion mods/NeoQOLPack/main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0bceb2b

Please sign in to comment.