Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(replaceWeapon) {
- var xpos = weaponList[weaponIndex].x;
- var ypos = weaponList[weaponIndex].y;
- var oldWeapon = weaponList[weaponIndex].part;
- systemLog.push('Part <b class="rarity-' + weaponList[weaponIndex].part.quality + '-text"> ' + weaponList[weaponIndex].part.name + '</b> Was replaced with <b class="rarity-' + part.quality + '-text"> ' + part.name + '</b>');
- Construction.removeFromSetup(weaponConstruction, weaponList[weaponIndex].part, weaponList[weaponIndex].x, weaponList[weaponIndex].y);
- Construction.addToSetup(weaponConstruction, part, xpos, ypos);
- userActions.saveConstruction();
- for(var i = 0; i < listLength; i++) {
- if(oldWeapon == inventoryList[i]) {
- inventoryActions.scrapPart(inventoryList[i]);
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement