dninemfive / wn-9id

WARNO mod implementing the 9th Infantry Division (Motorized).
Other
0 stars 0 forks source link

Rework `.edit_weapons` #40

Open dninemfive opened 13 hours ago

dninemfive commented 13 hours ago

Currently, weapons on a unit can be edited by .edit_weapons, which provides a wrapper which automatically changes the weapons as specified and creates a new descriptor.

However, if weapons need to be changed multiple times, this breaks: the unit doesn't know where to load its new weapons, and instead writes a new weapon descriptor, which causes a duplicate namespace error on NDF compilation.

This is probably best achieved simply by changing the item in question to a wrapper, as mentioned in #16.