Open Coolthulhu opened 4 years ago
Ha! Apt, but the crash is unintended. Another good experiment, thanks @Coolthulhu
Items with negative weight/volume should, when you attempt to dismantle them, be removed with a message: "%s disappears in a puff of logic." :)
Incidentally, it seems the code does not crash, but rather aborts when the game checks whether crafting didn't result in more material than it started with. When you split the -1000g sol stone into eg. 3 pieces, you get 3x -333g due to rounding, which is technically more than you started with...
Splitting expects positive volume, but sol stone is made of obsidian, which has positive density, so its negative weight means negative volume. Attempting to split a sol stone or the negative volume obsidian stone created from it will crash the game.