{"uid":"cap_vT-Pcpft4ZcwoGFyjKaEf","slug":"lifesteal-calculator-d7e5e26f","name":"Lifesteal Calculator","description":"Lifesteal calculator: Calculate health restored from damage dealt and lifesteal percentage.","url":"https://market.datapackvibe.com/x402/lifesteal-calculator?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NiOkpO4bujsX-xxeeGQ-l","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the health restored to a character based on damage dealt and a lifesteal percentage, factoring in current and max health.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"RPG combat lifesteal healing check","prompt":"In my RPG, a rogue dealt 250 damage and has 12% lifesteal. Their current HP is 60 out of 150 max — how much health do they get back from that attack?"},{"title":"Game balance testing for lifesteal builds","prompt":"I'm balancing a lifesteal build where the character deals 400 damage, has 5% lifesteal, 200 max health, and 80 current health. What's the health restored?"},{"title":"Dungeon boss encounter healing calculation","prompt":"The vampire boss just hit for 180 damage with 20% lifesteal, it has 500 max health and currently sits at 320 HP — calculate how much health it leeches back."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-03T00:47:07.948Z","isFirstParty":false,"canonicalSlug":"lifesteal-calculator-d7e5e26f"}