Skip to content

Commit

Permalink
removed orientation for creatures
Browse files Browse the repository at this point in the history
  • Loading branch information
rainlizard committed Nov 11, 2023
1 parent f0b50c4 commit 27c04a7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Scenes/Instances.gd
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ func place_new_thing(newThingType, newSubtype, newPosition, newOwnership): # Pla
id.creatureName = oPlacingSettings.creatureName
id.creatureGold = oPlacingSettings.creatureGold
id.creatureInitialHealth = oPlacingSettings.creatureInitialHealth
id.orientation = oPlacingSettings.orientation
#id.orientation = oPlacingSettings.orientation
id.index = get_free_index_number()
Things.TYPE.EFFECTGEN:
id.effectRange = oPlacingSettings.effectRange
Expand Down
2 changes: 1 addition & 1 deletion Scenes/PlacingSettings.gd
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func update_placing_tab():
availableFields.append(FIELDS.INITIAL_HEALTH)
availableFields.append(FIELDS.CREATURE_GOLD)
availableFields.append(FIELDS.CREATURE_NAME)
availableFields.append(FIELDS.ORIENTATION)
#availableFields.append(FIELDS.ORIENTATION)
Things.TYPE.EFFECTGEN:
availableFields = [FIELDS.ID, FIELDS.TYPE, FIELDS.EFFECT_RANGE, FIELDS.ORIENTATION]
if oCurrentFormat.selected != 0: # Classic format
Expand Down
2 changes: 1 addition & 1 deletion Scenes/ReadData.gd
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ func read_tngfx(buffer):
id.creatureName = c.get_value(section, "CreatureName", "")
id.creatureGold = c.get_value(section, "CreatureGold", -1)
id.creatureInitialHealth = c.get_value(section, "CreatureInitialHealth", -1)
id.orientation = c.get_value(section, "Orientation", -1)
#id.orientation = c.get_value(section, "Orientation", -1)
Things.TYPE.EFFECTGEN:
id.effectRange = c.get_value(section, "EffectRange")[0] + (c.get_value(section, "EffectRange")[1] / 256.0)
id.sensitiveTile = c.get_value(section, "ParentTile")
Expand Down
4 changes: 2 additions & 2 deletions Scenes/ThingInstance.gd
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ func load_default_kfx_values():
creatureInitialHealth = 100
if creatureGold == null or creatureGold == -1:
creatureGold = 0
if orientation == null or orientation == -1:
orientation = 0
# if orientation == null or orientation == -1:
# orientation = 0
Things.TYPE.EFFECTGEN:
if orientation == null or orientation == -1:
orientation = 0
Expand Down

0 comments on commit 27c04a7

Please sign in to comment.