Changeset 302 for dev/mods/fitting/kill_detail.php
- Timestamp:
- 12/27/07 12:43:39 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/mods/fitting/kill_detail.php
r301 r302 166 166 $dest_array[$destroyed->getLocationID()]['items'][] = array('Icon' => $item->getIcon(32), 'Name' => $item->getName(), 'Quantity' => $destroyed->getQuantity(), 'Value' => $formatted, 'single_unit' => $value, 'itemID' => $item->getID()); 167 167 168 169 168 //Fitting, KE - add destroyed items to an array of all fitted items. 170 if($destroyed->getLocationID() < 6 && ($item->get_used_launcher_group($item->getName()) == 0) 169 if($destroyed->getLocationID() < 6 && ($item->get_used_launcher_group($item->getName()) == 0)) 171 170 { 172 $count_quntity = 0; 173 while ($count_quntity < $destroyed->getQuantity()) 171 for ($count = 0; $count < $destroyed->getQuantity(); $count++) 174 172 { 175 173 $fitting_array[$destroyed->getLocationID()][]=array('Name'=>$item->getName(), 'Icon' => $item->getIcon(32), 'itemID' => $item->getID()); 176 ++$count_quntity;177 174 } 178 175 } … … 205 202 if(($dropped->getLocationID() != 4) && ($item->get_used_launcher_group($item->getName()) == 0)) 206 203 { 207 $count_quntity = 0; 208 while ($count_quntity < $dropped->getQuantity()) 204 for ($count = 0; $count < $dropped->getQuantity(); $count++) 209 205 { 210 206 $fitting_array[$dropped->getLocationID()][]=array('Name'=>$item->getName(), 'Icon' => $item->getIcon(32), 'itemID' => $item->getID()); 211 ++$count_quntity;212 207 } 213 208 }