Browse Source

Fix intermitent journal modifier failures.

For some reason, this modifier is disabling facing in its own Burger
King type way. This apparently worked before, but, now that angles are
being exported correctly, this breaks things in game. So, don't export
any facing conditions at all.
pull/406/head
Adam Johnson 9 months ago
parent
commit
b67a1a6808
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 12
      korman/properties/modifiers/gui.py

12
korman/properties/modifiers/gui.py

@ -257,13 +257,9 @@ class PlasmaJournalBookModifier(PlasmaModifierProperties, PlasmaModifierLogicWiz
clickable_region = nodes.new("PlasmaClickableRegionNode")
clickable_region.region_object = self.clickable_region
facing_object = nodes.new("PlasmaFacingTargetNode")
facing_object.directional = False
facing_object.tolerance = math.degrees(-1)
clickable = nodes.new("PlasmaClickableNode")
clickable.find_input_socket("facing").allow_simple = False
clickable.link_input(clickable_region, "satisfies", "region")
clickable.link_input(facing_object, "satisfies", "facing")
clickable.link_output(journalnode, "satisfies", "bookClickable")
clickable.clickable_object = clickable_object
@ -287,13 +283,9 @@ class PlasmaJournalBookModifier(PlasmaModifierProperties, PlasmaModifierLogicWiz
clickable_region = nodes.new("PlasmaClickableRegionNode")
clickable_region.region_object = self.clickable_region
facing_object = nodes.new("PlasmaFacingTargetNode")
facing_object.directional = False
facing_object.tolerance = math.degrees(-1)
clickable = nodes.new("PlasmaClickableNode")
clickable.find_input_socket("facing").allow_simple = False
clickable.link_input(clickable_region, "satisfies", "region")
clickable.link_input(facing_object, "satisfies", "facing")
clickable.link_output(journalnode, "satisfies", "actClickableBook")
clickable.clickable_object = clickable_object

Loading…
Cancel
Save