Advertisement
SydneyMakers

Untitled

Oct 9th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if(replaceWeapon) {
  2.     var xpos = weaponList[weaponIndex].x;
  3.     var ypos = weaponList[weaponIndex].y;
  4.     var oldWeapon = weaponList[weaponIndex].part;
  5.     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>');
  6.     Construction.removeFromSetup(weaponConstruction, weaponList[weaponIndex].part, weaponList[weaponIndex].x, weaponList[weaponIndex].y);
  7.     Construction.addToSetup(weaponConstruction, part, xpos, ypos);
  8.     userActions.saveConstruction();
  9.     for(var i = 0; i < listLength; i++) {
  10.         if(oldWeapon == inventoryList[i]) {
  11.             inventoryActions.scrapPart(inventoryList[i]);
  12.             break;
  13.         }
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement