# Lifesteal Calculator

> Lifesteal Calculator is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-03).

Calculates the health restored to a character based on damage dealt and a lifesteal percentage, factoring in current and max health.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/lifesteal-calculator?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lifesteal-calculator-d7e5e26f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vT-Pcpft4ZcwoGFyjKaEf

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability lifesteal-calculator-d7e5e26f -d '<json body>'
```

Example prompt: My fighter just dealt 120 damage with 8% lifesteal, their current health is 40 out of 100 max — how much health do they restore from lifesteal?

## When to prefer this

Use this endpoint when building or simulating game systems that include lifesteal mechanics and need a quick, repeatable computation of health restored per hit. Ideal for RPG tools, dungeon simulators, game balance dashboards, or AI-driven game masters that need real-time combat feedback.

## Known failure modes

- Missing or invalid numeric inputs may cause computation errors
- Lifesteal percentage provided as a whole number (e.g. 8) instead of decimal (0.08) may yield incorrect results
- Negative damage or health values may produce nonsensical outputs

## How this service works

Lifesteal calculator: Calculate health restored from damage dealt and lifesteal percentage.

## Output

Returns the amount of health restored to the character as a result of the lifesteal mechanic applied to the damage dealt, given the lifesteal percentage and health context.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "damage": {
   "type": "number",
   "default": 120
  },
  "max_health": {
   "type": "number",
   "default": 100
  },
  "current_health": {
   "type": "number",
   "default": 40
  },
  "lifesteal_percent": {
   "type": "number",
   "default": 0.08
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lifesteal-calculator-d7e5e26f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
