I realized that the previous attempt was misusing the item's locked state when attempting to create the chest that the item would go into, which was absurd. I hadn't realized that I was also misspelling "olocked" as "locked". This fix was already in progress before the mail about the previous commit. I did try switching to 'lckd = nil' for the attempt to retain the chest's random locked/unlocked state but that resulted in all the chests being created locked. Using separate box=... expressions does work as intended. Doing something with totable() doesn't seem to be necessary. The indentation seems to be messed up compared to the rest of the file (initial indent of 5 with increments of 4 rather than 3 and 3); I have't done anything to try to fix it.
24 KiB
24 KiB