Maritime Act Article 87

Where the passenger, by his/her accord, disembarks the ship during the voyage, the passenger shall bear the full amount of the ticket fare. Where the disembarkation is due to illness or death, the passenger shall only pay a part of the ticket fare in the same proportion as the distance already covered bears to the whole voyage.
中文原文 海商法第87條
旅客在航程中自願上陸時,仍負擔全部票價,其因疾病上陸或死亡時,僅按其已運送之航程負擔票價。

English translation for reference only; the Chinese text prevails. Not legal advice.