BF2.US bf2-rsdeveloper wiki Parity Discord bf2.us
Battlefield Heroes
On this page

+10 hit points item: the feature checklist

Heroes

+10 hit points item is a Battlefield Heroes item. This page is its checklist from the project's feature ledger: every step of the original's code behind it and every situation it must work in, each with the proof that stands for it, or none. The ledger's status today: 1 of 39 lines checked.

checked

Situations: 0 of 14 checked for what the game does, 0 of 14 for what a player sees. The original's code: 1 of 11 checked (3 functions and 8 inner calls). By the ledger's rule this feature is not called done, fixed or the same as the original. The ledger was written on 2026-11-28 11:55.

The owner's report

The ledger names the owner's open report on this feature: R-0108.

What a check is

Every line has a kind: W, what the game does with nothing to see (a number, a speed, a refusal), or S, what a player sees or hears. A W line is checked by a test written from the original's code or by a play with a recorded pass; an S line only by a recorded play whose pixels an assert reads, or that a person looked at and wrote so. A scenario that merely exists, a test that merely calls the Rust function and a read of the listing are not checks. All feature checklists explains the rule.

What it is for a player#

An item a hero can own: while it is among his kit's abilities his hit point limit is 10 above his class's, and he is set to the new limit when he gets it (a Soldier's 110 becomes 120)

That is this wiki's own line about it, taken at build time from the page that tells it.

the name a player knows+10 hit points item
kinditem
in the game's dataIncreaseHPLimit (9040): statModifier.value 10, operation Add
the owner's reportR-0108
its row in the sweepsnotes/bfheroes/widget_sweep.md, the row The increase-HP item (R-0108)

The original's entry functions#

Where the original starts doing it (BFHeroes.exe 1.126). The code behind the feature is everything these reach.

AddressWhat it is, in the ledger's wordsFollowed
0x007212b7the soldier's hit point limit: worked out again each time he is given a generic abilitywhole
0x0071f75dthe component by its namewhole
0x00723d91the soldier takes one of his kit's generic abilities: it goes on his list and the limit is worked out againwhole

The situations#

Every situation the ledger's matrix names for a feature of this kind, with its two lines side by side. "Has a scenario, no recorded pass" and "passed on a branch not landed" are the ledger's words for a play that is not a check yet.

SituationWhat the game does (W)What a player sees (S)Note
used on footopen: not checkedopen: not checked
used at the wheel of a vehicleopen: not checkedopen: not checked
used from a passenger's or a gunner's seatopen: not checkedopen: not checked
the user dies while it runsopen: not checkedopen: not checked
after the user respawnsopen: not checkedopen: not checked
the round ends while it runs, and the next round starts cleanopen: not checkedopen: not checked
the map changes while it runsopen: not checkedopen: not checked
a player who joins while it runs sees itopen: not checkedopen: not checked
watching a team mate who uses it (after dying, or as a spectator)open: not checkedopen: not checked
team mates against enemies (who gets it and who does not)open: not checkedopen: not checked
in water (swimming)open: not checkedopen: not checked
on a ladderopen: not checkedopen: not checked
while another effect runs on the same heroopen: not checkedopen: not checked
bought at the workbench and used in a played game, not only in a testopen: not checkedopen: not checked

Recorded plays#

The ledger names no played scenario for this feature.

The code behind it#

6 functions of the original reachable from the entries, as the ledger's tool walked them: each with its kind, the port's place, the proof that stands for it and that proof's kind. "Checked" is the ledger's tick; a row that is no line of the checklist (library code, shared engine code that is tested in its own game) says so.

The original's functionKindReachedOursProofIts kindChecked
0x007212b7 FUN_007212b7Sentry, depth 0crates/bf2-client/app/src/client/heroes_hud.rs:2804 (fn kit_abilities)scenario bfh_booster_hp (PASS in run 20261022_162726_bfheroes) (+1 more)play with a recorded pass, state assertsopen
0x0071f75d FUN_0071f75dWentry, depth 0crates/bfh-game/src/abilities/generic.rs:454 (fn stat_modifier)bfh_server_refresh_entitlementthe counter's weaker proofopen
0x00723d91 FUN_00723d91Wentry, depth 0crates/bfh-game/src/uncalled.rs:2947 (fn soldier_add_generic_ability)crates/bfh-game/tests/uncalled_bfh126.rs:6655 (fn soldier_add_generic_ability_lists_it_and_adds_it_as_a_child_only_when_its_dword_34_is_zero)test from the original's codeyes
0x009f0895 __EH_prolog3W0x007212b7, depth 1CRT / compiler name (scope_rules.LIBNAME)not a line
0x009f096d __EH_epilog3W0x007212b7, depth 1CRT / compiler name (scope_rules.LIBNAME)not a line
0x004faa7e FUN_004faa7eW0x00723d91, depth 11.89 twin 0x0050f813 is library code (coverage_bfh boilerplate)not a line

Inner calls#

A call through a virtual table has no line in the call graph; the ledger lists every one it met: 8 here, 8 of them open lines (nobody has named what they call, or what they call is not checked).

What is open#

In a player's words, as the ledger writes them:

  • used on foot (what it does): not checked
  • used on foot (what you see): not checked
  • used at the wheel of a vehicle (what it does): not checked
  • used at the wheel of a vehicle (what you see): not checked
  • used from a passenger's or a gunner's seat (what it does): not checked
  • used from a passenger's or a gunner's seat (what you see): not checked
  • the user dies while it runs (what it does): not checked
  • the user dies while it runs (what you see): not checked
  • after the user respawns (what it does): not checked
  • after the user respawns (what you see): not checked
  • the round ends while it runs, and the next round starts clean (what it does): not checked
  • the round ends while it runs, and the next round starts clean (what you see): not checked
  • the map changes while it runs (what it does): not checked
  • the map changes while it runs (what you see): not checked
  • a player who joins while it runs sees it (what it does): not checked
  • a player who joins while it runs sees it (what you see): not checked
  • watching a team mate who uses it (after dying, or as a spectator) (what it does): not checked
  • watching a team mate who uses it (after dying, or as a spectator) (what you see): not checked
  • team mates against enemies (who gets it and who does not) (what it does): not checked
  • team mates against enemies (who gets it and who does not) (what you see): not checked
  • in water (swimming) (what it does): not checked
  • in water (swimming) (what you see): not checked
  • on a ladder (what it does): not checked
  • on a ladder (what you see): not checked
  • while another effect runs on the same hero (what it does): not checked
  • while another effect runs on the same hero (what you see): not checked
  • bought at the workbench and used in a played game, not only in a test (what it does): not checked
  • bought at the workbench and used in a played game, not only in a test (what you see): not checked

And 10 lines about the original's code:

  • a step of the original (FUN_007212b7): played and passed, but no test written from the original and nothing read the screen
  • a step of the original (FUN_0071f75d): in ours, but no test written from the original's code holds it
  • an inner call of the original (in 0x007212b7, slot 0x10) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x007212b7, slot 0x38) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x007212b7, slot 0xb8) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x007212b7, slot 0x144) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0071f75d, slot 0xc) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0071f75d, slot 0x10) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x00723d91, slot 0x54) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x00723d91, slot 0xf0) is not followed yet: nobody has named what it calls

How it is tested#

This page is the answer: the tables above name each test and each played scenario that stands for a line, with its kind. The ledger's own tool refuses a status that disagrees with its rows, a tick the rule does not give, and a proof that is not in the tree (feature_ledger.py --check). The wiki's test checks that this page says done only where the ledger does.

In the code#

WhatWhere
this feature's ledgernotes/bfheroes/features/item/hp_limit.toml (its ticks: the folder notes/bfheroes/features/item/hp_limit.ticks)
the ledger's rulenotes/bfheroes/features/README.md
the recorded resultsnotes/bfheroes/features/records/<run>.tsv
the tool that walks the original's call graph and computes the statustools/bfheroes/feature_ledger.py
the counter the ledger was made withbfheroes e7ed773 2026-11-28T11:50:06
this page's makertools/devwiki/features.py
Source: tools/devwiki/features.py · built from bf2-rs e3b4f05 · part of the Battlefield 2 / 2142 / Heroes reimplementation. Not affiliated with EA or DICE.