-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix vanilla Cassette Beasts v1.1.3 bootleg partner bug * Add super-early class patcher mechanism * Fix eye color in Redkrab's world sprite * Add glass resource, as a common shared mod currency item * Replace post_init callbacks with preloader singleton_setup_completed * Replace Magikrab scene override with instance editing in callback * Add a safe and reasonable mod updates notification system
- Loading branch information
Showing
26 changed files
with
835 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
extends "res://global/save_state/Party.gd" | ||
|
||
|
||
func remap_partner_tapes() -> void: | ||
for partner in partners: | ||
if is_partner_unlocked(partner.partner_id): | ||
continue | ||
|
||
# BUGFIX: Set partner levels for new custom partners | ||
if initial_partner_levels.has(partner.partner_id): | ||
partner.level = initial_partner_levels[partner.partner_id] | ||
|
||
assert (partner.tapes.size() == 1) | ||
if partner.tapes.size() != 1: | ||
continue | ||
var tape = partner.tapes[0] | ||
if tape.form == partner.partner_signature_species: | ||
tape.form = MonsterForms.get_species_mapping(tape.form) | ||
|
||
# BUGFIX: Only clear bootleg in type randomizer runs | ||
if MonsterForms.type_rand_seed != null: | ||
tape.type_override = [] | ||
|
||
tape.type_native = MonsterForms.get_type_mapping(tape.form) | ||
tape.assign_initial_stickers(true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
extends Reference | ||
|
||
|
||
func _init() -> void: | ||
var dt: Dictionary = Datatables.load("res://data/items/").table | ||
var item: BaseItem = load("res://mods/cat_modutils/items/modutils_glass.tres") | ||
dt[Datatables.get_db_key(item)] = item | ||
|
||
# Finish init later | ||
assert(not SceneManager.preloader.singleton_setup_complete) | ||
yield(SceneManager.preloader, "singleton_setup_completed") | ||
|
||
var item_desc: Translation | ||
var locale: String = TranslationServer.get_locale() | ||
for l in TranslationServer.get_loaded_locales(): | ||
item_desc = Translation.new() | ||
item_desc.locale = l | ||
item_desc.add_message("MODUTILS_ITEM_GLASS_DESCRIPTION", | ||
tr("MODUTILS_ITEM_DESCRIPTION_FOOTER") % tr("ITEM_PLASTIC_DESCRIPTION")) | ||
TranslationServer.add_translation(item_desc) | ||
TranslationServer.set_locale(locale) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="StreamTexture" | ||
path="res://.import/glass.png-3c3eef8883d3b7734f8a1b6656eb899b.stex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://mods/cat_modutils/items/glass.png" | ||
dest_files=[ "res://.import/glass.png-3c3eef8883d3b7734f8a1b6656eb899b.stex" ] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/lossy_quality=0.7 | ||
compress/hdr_mode=0 | ||
compress/bptc_ldr=0 | ||
compress/normal_map=0 | ||
flags/repeat=0 | ||
flags/filter=false | ||
flags/mipmaps=false | ||
flags/anisotropic=false | ||
flags/srgb=0 | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/HDR_as_SRGB=false | ||
process/invert_color=false | ||
process/normal_map_invert_y=false | ||
stream=false | ||
size_limit=0 | ||
detect_3d=false | ||
svg/scale=1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[gd_resource type="Resource" load_steps=3 format=2] | ||
|
||
[ext_resource path="res://data/BaseItem.gd" type="Script" id=1] | ||
[ext_resource path="res://mods/cat_modutils/items/glass.png" type="Texture" id=2] | ||
|
||
[resource] | ||
script = ExtResource( 1 ) | ||
name = "MODUTILS_ITEM_GLASS_NAME" | ||
aux_name = "" | ||
icon = ExtResource( 2 ) | ||
description = "MODUTILS_ITEM_GLASS_DESCRIPTION" | ||
category = "resources" | ||
base_stack_limit = 0 | ||
stack_limit_category = "" | ||
consume_on_use = false | ||
discardable = true | ||
value = 500 | ||
usable_contexts = 0 | ||
battle_usage = 0 | ||
sort_order = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.