public override void OnResponse(NetState state, RelayInfo info) { if (info.ButtonID == 2) { m_Boat.EndDryDock(m_From); } }
public override void OnResponse(NetState state, RelayInfo info) { if (info.ButtonID == 2) { int doubloonsInHold = m_Boat.GetHoldDoubloonTotal(m_Boat); if (!Banker.CanDepositUniqueCurrency(m_From, typeof(Doubloon), doubloonsInHold)) { m_From.SendMessage("Your bankbox would not be able to hold all of the doubloons from your ship's hold. You must clear out some items from your bank before you may dock this ship."); } else { m_Boat.MoveHoldDoubloonsToBank(m_From, false); m_Boat.EndDryDock(m_From, doubloonsInHold); } } }