mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-04 22:59:42 +02:00
v0.51.1 (#835)
* infiltration use buttons instead of a links * minor accessibility patch * Hospitalization will not cost more than 10% of the players money. * Adde hospitalization netscript function * Removed the suggestion that the combat path will lead to Daedalus, it still will. But new players should not be told that this is a viable path to completing a BitNode. * getMemberInformation now returns everything about the member. * New netscript function to get the players hacknet server hash capacity * yesno dialog box will not keep older messages anymore * v0.51.1
This commit is contained in:
+6
-3
@@ -8,6 +8,7 @@ import { Factions, factionExists } from "./Faction/Factions";
|
||||
import { joinFaction, displayFactionContent } from "./Faction/FactionHelpers";
|
||||
import { Player } from "./Player";
|
||||
import { hackWorldDaemon, redPillFlag } from "./RedPill";
|
||||
import { calculateHospitalizationCost } from "./Hospital/Hospital";
|
||||
|
||||
import { Page, routing } from "./ui/navigationTracking";
|
||||
import { numeralWrapper } from "./ui/numeralFormat";
|
||||
@@ -728,9 +729,10 @@ Bladeburner.prototype.completeAction = function() {
|
||||
damage = action.hpLoss * difficultyMultiplier;
|
||||
damage = Math.ceil(addOffset(damage, 10));
|
||||
this.hpLost += damage;
|
||||
const cost = calculateHospitalizationCost(Player, damage);
|
||||
if (Player.takeDamage(damage)) {
|
||||
++this.numHosp;
|
||||
this.moneyLost += (CONSTANTS.HospitalCostPerHp * Player.max_hp);
|
||||
this.moneyLost += cost;
|
||||
}
|
||||
}
|
||||
var logLossText = "";
|
||||
@@ -800,9 +802,10 @@ Bladeburner.prototype.completeAction = function() {
|
||||
if (action.hpLoss) {
|
||||
damage = action.hpLoss * difficultyMultiplier;
|
||||
damage = Math.ceil(addOffset(damage, 10));
|
||||
const cost = calculateHospitalizationCost(Player, damage);
|
||||
if (Player.takeDamage(damage)) {
|
||||
++this.numHosp;
|
||||
this.moneyLost += (CONSTANTS.HospitalCostPerHp * Player.max_hp);
|
||||
this.moneyLost += cost;
|
||||
}
|
||||
}
|
||||
teamLossMax = Math.floor(teamCount);
|
||||
@@ -1771,7 +1774,7 @@ Bladeburner.prototype.updateOverviewContent = function() {
|
||||
Stamina Penalty: {formatNumber((1-this.calculateStaminaPenalty())*100, 1)}%<br /><br />
|
||||
Team Size: {formatNumber(this.teamSize, 0)}<br />
|
||||
Team Members Lost: {formatNumber(this.teamLost, 0)}<br /><br />
|
||||
Num Times Hospitalized: this.numHosp<br />
|
||||
Num Times Hospitalized: {this.numHosp}<br />
|
||||
Money Lost From Hospitalizations: {Money(this.moneyLost)}<br /><br />
|
||||
Current City: {this.city}<br />
|
||||
</>, DomElems.overviewGen1);
|
||||
|
||||
Reference in New Issue
Block a user