diff --git a/src/Constants.ts b/src/Constants.ts index a8f75656d..62718735c 100644 --- a/src/Constants.ts +++ b/src/Constants.ts @@ -259,5 +259,6 @@ export const CONSTANTS: IMap = { * Fix error message throw undefined variable error * City hall now has some generic text if you can't create a corp yet. * Deleting a file without extension now returns an appropriate error message. + * Fixed an issue where bladeburner would miscalculate the cost of hospitalization. `, } \ No newline at end of file diff --git a/src/Hospital/Hospital.ts b/src/Hospital/Hospital.ts index 1c74db774..5400b5944 100644 --- a/src/Hospital/Hospital.ts +++ b/src/Hospital/Hospital.ts @@ -19,7 +19,6 @@ export function getHospitalizationCost(p: IPlayer): number { export function calculateHospitalizationCost(p: IPlayer, damage: number): number { const oldhp = p.hp; p.hp -= damage - if (p.hp < 0) p.hp = 0; const cost = getHospitalizationCost(p); p.hp = oldhp; return cost;