brenoepics / morningstar

An open-source Arcturus Community Fork.
GNU General Public License v3.0
3 stars 2 forks source link

fixed WIRED Condition: Furni States and Positions Match bug - [merged] #1097

Closed brenoepics closed 1 year ago

brenoepics commented 4 years ago

In GitLab by @skeletor on Jan 18, 2020, 09:12

Merges patch-wired-cnd-snapshot -> dev

Fixes morningstar/Arcturus-Community#248

The bug is due to the fact that any newly created item that has not been interacted with before starts with extradata=""

When we use the wired condition on this object, it will save the matching extradata as "" rather than "0", so when the state of the furni is changed, the default state is never detected.

brenoepics commented 4 years ago

In GitLab by @Harmonic on Jan 21, 2020, 17:50

merged

brenoepics commented 4 years ago

In GitLab by @Harmonic on Jan 21, 2020, 17:50

mentioned in commit 89ded239bc393a03613ae7df77dfb86abb846c36

brenoepics commented 4 years ago

In GitLab by @Harmonic on Jan 21, 2020, 17:50

Added for 2.3.0. Checked by Beny, and while not the cleanest method, doing otherwise would require recoding half of the wired.