private void DestroyShipHandler(NameValueCollection req, kousyou_destroyship api) { bool removeEquip = req.GetInt("api_slot_dest_flag") != 0; foreach (int id in req.GetInts("api_ship_id")) { Staff.Current.Homeport.RemoveShip(Staff.Current.Homeport.Ships[id], removeEquip); } Staff.Current.Homeport.Material.UpdateMaterial(api.api_material); }
private void DestroyShipHandler(NameValueCollection req, kousyou_destroyship api) { Staff.Current.Homeport.RemoveShip(Staff.Current.Homeport.Ships[req.GetInt("api_ship_id")]); Staff.Current.Homeport.Material.UpdateMaterial(api.api_material); }