When a base decays once the Tool Cupboard runs out, piece or layer by layer
calculate_decayWhen a base decays once the Tool Cupboard runs out, piece or layer by layer. The decay page's maths (https://rust.wiki/calculators/decay): with no upkeep, an outside piece goes from full
health to nothing in 1 h (twig), 3 h (wood), 5 h (stone), 8 h (sheet metal) or 12 h (armoured); inside pieces
decay at a tenth of that. destroyed_in_hours counts from now (upkeep first). For layers, each layer behind
the outer one decays at 10% until the one in front is gone, then at full speed. Vanilla server defaults.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "calculate_decay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grade | No | Building grade: twig, wood, stone, metal, hqm. | stone |
| inside | No | True = the piece is inside the base (decays at 10% speed). | |
| layers | No | Optional honeycomb: comma-separated grades from the outside in (max 6). | |
| health_pct | No | The piece's health left, %. | |
| upkeep_hours | No | Hours of upkeep left in the Tool Cupboard. |