Jump to content

Changing materials deletes secondary and tertiary materials


Aki Art
  • Branch: Live Branch Version: Windows Pending

When a building with multiple materials is constructed, and then the material is changed afterwards, the order for reconstruction is always given with the last selected element.

In Reconstructable.RequestReconstruct, there is a hard assumption of only one element per building type, and the secondary material is lost when the new building is placed. In reality, the UI allows for up to 3 elements per buildings (some mods utilize this, please don't assume only 2 either! This limitation is found in MaterialSelectionPanel.OnPrefabInit)

image.png.396d30178ede90013f91336bb76d6f69.png 


Steps to Reproduce

1. Construct a Sun Lamp, which uses Copper and Glass

2. Change Material of the lamp to Thermium

image.png.e1b328a4ed1dcf1483b55cb7dd0632b7.png

 

2.5 Both Thermium and Glass are delivered to the lamp.

3. Deconstruct the Lamp, only the Thermium is refunded, the Glass isn't. This is inconsistent with deconstructing an original lamp, which refunds both materials.

  • Like 1



User Feedback


There are no comments to display.



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...