UrtZ Posted January 10, 2020 Share Posted January 10, 2020 I wanted to make a modlet, that adjusts scrapping: number of parts in breaking tools/weapons should correspond with their quality as well, as in crafting: better tool - more parts But i cant find scrapping recepie or some else config of this action. Or, if someone already did that mod, link to modlet will be nice. Link to comment Share on other sites More sharing options...
n2n1 Posted January 10, 2020 Share Posted January 10, 2020 this line determines how much scrap will be: <property name="Weight" value="XX" /> and this forbids completely: <property name="NoScrapping" value="true"/> Or code it can be calculated based on the content of the recipe. (maybe outdated) Link to comment Share on other sites More sharing options...
UrtZ Posted January 10, 2020 Author Share Posted January 10, 2020 on first, thought so, but: <item name="gunPistol"> <property name="Material" value="MHandGunParts"/> <property name="Weight" value="4"/> <item name="gun44Magnum"> <property name="Material" value="MHandGunParts"/> <property name="Weight" value="6"/> and both guns give 3 parts on scrapping. No logics. UPD: pistol - 3 and magnum - 4 buffed magnums' weight to 100 - gives 75 parts. so, you're right, and strange digits because of rounding to integer value Link to comment Share on other sites More sharing options...
UrtZ Posted January 10, 2020 Author Share Posted January 10, 2020 I'm not so good in programming... The fail was: "Weight" - is a property, and I don't know the way to add passive effect to a property. :/ Link to comment Share on other sites More sharing options...
n2n1 Posted January 11, 2020 Share Posted January 11, 2020 Yes, there are rounding to integers. By the way, at a scrap you receive 75% from weight, but at melting -100%. I haven't tried to control it with passive effects, but the effects on recipes - only affect the amount of ingredients. (as far as i know). Perhaps, can somehow adapt this effect to the recipe that affect to the scrapping (there lines at beginning of the xml)...but hardly - there are no numerical values... Working with crafting is not yet covered by the new system. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.