Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rainlizard committed Jun 5, 2024
1 parent ce578a7 commit c8c1011
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Autoload/Slabs.gd
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var auto_wall_updates_these = {
WALL_WITH_TWINS:null,
WALL_WITH_WOMAN:null,
WALL_WITH_PAIR:null,
WALL_DAMAGED:null,
WALL_UNDECORATED:null,
}

enum {
Expand All @@ -47,7 +47,7 @@ enum {
WALL_WITH_TWINS = 6,
WALL_WITH_WOMAN = 7,
WALL_WITH_PAIR = 8,
WALL_DAMAGED = 9,
WALL_UNDECORATED = 9,
PATH = 10,
CLAIMED_GROUND = 11,
LAVA = 12,
Expand Down Expand Up @@ -323,7 +323,7 @@ WALL_WITH_BANNER,
WALL_WITH_TWINS,
WALL_WITH_WOMAN,
WALL_WITH_PAIR,
WALL_DAMAGED,
WALL_UNDECORATED,
TREASURE_ROOM_WALL,
LAIR_WALL,
HATCHERY_WALL,
Expand Down
2 changes: 1 addition & 1 deletion Scenes/SlabPalette.gd
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ extends Node
# Slabset.dat[slabVariation + dir.ne][1] = fixUsingColumn

#func edit_damaged_wall():
# var slabVariation = 28 * Slabs.WALL_DAMAGED
# var slabVariation = 28 * Slabs.WALL_UNDECORATED
#
# var dmgWall1 = oDataClm.index_entry([25,82,123,120,77,0,0,0], 27)
# var dmgWall2 = oDataClm.index_entry([25,82,124,121,77,0,0,0], 27)
Expand Down
5 changes: 3 additions & 2 deletions Scenes/SlabPlacement.gd
Original file line number Diff line number Diff line change
Expand Up @@ -478,12 +478,12 @@ func set_torch_side(xSlab, ySlab, slabID, slabsetIndexGroup, constructedColumns,
var torchSubtileToKeep = torchSubtileToKeepMap[torchDirection]

#Slabs.WALL_WITH_TORCH = 5
#Slabs.WALL_DAMAGED = 9
#Slabs.WALL_UNDECORATED = 9
#Slabs.EARTH_WITH_TORCH = 3
#Slabs.EARTH = 2
var IdDiff
if slabID == Slabs.WALL_WITH_TORCH:
IdDiff = Slabs.WALL_WITH_TORCH - Slabs.WALL_DAMAGED
IdDiff = Slabs.WALL_WITH_TORCH - Slabs.WALL_UNDECORATED
elif slabID == Slabs.EARTH_WITH_TORCH:
IdDiff = Slabs.EARTH_WITH_TORCH - Slabs.EARTH
else:
Expand All @@ -495,6 +495,7 @@ func set_torch_side(xSlab, ySlab, slabID, slabsetIndexGroup, constructedColumns,
for i in 9:
undecoratedGroup[i] = slabsetIndexGroup[i] - variDiff

# This code REMOVES torches, it doesn't add torches. It sets columns to the undecorated columns.
for subtile in [7, 3, 1, 5]: # S W N E
if torchSubtileToKeep != subtile:
# Wall Torch Cube: 119
Expand Down

0 comments on commit c8c1011

Please sign in to comment.