Skip to content

Commit

Permalink
unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
rainlizard committed Jan 30, 2025
1 parent cb34ae1 commit bd4d019
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 29 deletions.
2 changes: 1 addition & 1 deletion Autoload/Version.gd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extends Node

var major_minor = "0.52"
var major_minor = "0.51"
var patch = "0000"
var full = ""
var unearth_map_format_version:float = 1.06
Expand Down
29 changes: 1 addition & 28 deletions Scenes/CfgLoader.gd
Original file line number Diff line number Diff line change
Expand Up @@ -97,33 +97,6 @@ func start(mapPath):

oCustomSlabSystem.load_unearth_custom_slabs_file()

var LIST_OF_OBJECTS_WITH_HARDCODED_SPRITES = [
"SPELLBOOK_HOE",
"SPELLBOOK_IMP",
"SPELLBOOK_OBEY",
"SPELLBOOK_SLAP",
"SPELLBOOK_SOE",
"SPELLBOOK_CTA",
"SPELLBOOK_CAVI",
"SPELLBOOK_HEAL",
"SPELLBOOK_HLDAUD",
"SPELLBOOK_LIGHTN",
"SPELLBOOK_SPDC",
"SPELLBOOK_PROT",
"SPELLBOOK_CONCL",
"SPELLBOOK_DISEASE",
"SPELLBOOK_CHKN",
"SPELLBOOK_DWAL",
"SPELLBOOK_TBMB",
"SPELLBOOK_ARMG",
"SPELLBOOK_POSS",
"SPELLBOOK_RBND",
"SPELLBOOK_FRZ",
"SPELLBOOK_SLOW",
"SPELLBOOK_FLGT",
"SPELLBOOK_VSN",
]

func load_objects_data(cfg): # 10ms
for section in cfg:
if section.begins_with("object"):
Expand All @@ -140,7 +113,7 @@ func load_objects_data(cfg): # 10ms

animID = objSection.get("AnimationID")
newSprite = get_sprite(animID, newName)
if newSprite == null or newName in LIST_OF_OBJECTS_WITH_HARDCODED_SPRITES:
if newSprite == null:
newSprite = Things.DATA_OBJECT[id][Things.SPRITE]

newGenre = objSection.get("Genre")
Expand Down

0 comments on commit bd4d019

Please sign in to comment.