Line 277: |
Line 277: |
| | | |
| local remodelinfo = '' | | local remodelinfo = '' |
− | if shipInfo["remodelreq"] ~= "" then | + | if shipInfo.remodelreq and shipInfo.remodelreq ~= '' then |
− | local steel = '[[File:IcoSteel.png|18px|Steel]] ' .. shipInfo["remodelreq"][1] | + | remodelinfo = string.format('[[File:IcoSteel.png|18px|Steel]] %d [[File:IcoAmmo.png|18px|Ammo]] %d', shipInfo.remodelreq[1], shipInfo.remodelreq[2]) |
− | local ammo = '[[File:IcoAmmo.png|18px|Ammo]] ' .. shipInfo["remodelreq"][2]
| + | if shipInfo.remodelbp then |
− | remodelinfo = steel .. ' ' .. ammo | + | remodelinfo = remodelinfo .. ' ' .. string.format('[[File:IcoBlueprint.png|25px|Blueprint|link=Blueprints]] %d', shipInfo.remodelbp) |
− | local items = shipmodule.RemodelBlueprintChk(shipInfo["remodelreq"][3], shipNum)
| |
− | if items then
| |
− | remodelinfo = remodelinfo .. ' ' .. items
| |
| end | | end |
− | if shipInfo.remodeldevmat or shipInfo.remodelconmat then | + | if shipInfo.remodelcatapult then |
| + | remodelinfo = remodelinfo .. ' ' .. string.format('[[File:IcoCatapult.png|25px|Prototype Flight Deck Catapult]] %d', shipInfo.remodelcatapult) |
| + | end |
| + | if shipInfo.remodelar then |
| + | remodelinfo = remodelinfo .. ' ' .. string.format('[[File:IcoActionReport.png|25px|Action Report]] %d', shipInfo.remodelar) |
| + | end |
| + | if shipInfo.remodeldevmat or shipInfo.remodelconmat or shipInfo.remodelgunmat or shipInfo.remodelairmat then |
| remodelinfo = remodelinfo .. '<br>' | | remodelinfo = remodelinfo .. '<br>' |
| end | | end |
Line 293: |
Line 296: |
| if shipInfo.remodelconmat then | | if shipInfo.remodelconmat then |
| remodelinfo = remodelinfo .. ' ' .. string.format('[[File:IcoConmat.png|18px|Construction Material]] %d', shipInfo.remodelconmat) | | remodelinfo = remodelinfo .. ' ' .. string.format('[[File:IcoConmat.png|18px|Construction Material]] %d', shipInfo.remodelconmat) |
| + | end |
| + | if shipInfo.remodelgunmat then |
| + | remodelinfo = remodelinfo .. ' ' .. string.format('[[File:IcoGunmat.png|18px|New Model Gun Mount Improvement Material]] %d', shipInfo.remodelgunmat) |
| + | end |
| + | if shipInfo.remodelairmat then |
| + | remodelinfo = remodelinfo .. ' ' .. string.format('[[File:IcoAirmat.png|18px|New Model Aerial Armament Material]] %d', shipInfo.remodelairmat) |
| end | | end |
| end | | end |