Repairing broken items. More...
Go to the source code of this file.
Functions | |
| s32 | Shop_RepairPrice (s32 inventoryEntry) |
| Returns what a repair costs: a quarter of the price for a broken item, nothing for one that is not broken. | |
| s32 | Shop_SelectUnit (void) |
| Runs the repair counter's member choice; always returns 0. | |
| s32 | Shop_SelectRepair (s32 unitId) |
| Lets the player choose items to repair from the member's grid, one at a time, with each one's repair price, until B or the inventory is empty. | |
| void | Shop_RepairItem (s32 unitId, s32 slot) |
| Repairs the item in slot: refuses one that cannot break, is not broken or is equipped and cursed on, or that the coins do not cover; asks, then takes the item away for the smith's three hammer blows, gives it back mended, charges the price and offers to equip it. | |
Repairing broken items.
Part of shop.c, the shop object, compiled only through it.
Definition in file repair.c.
Returns what a repair costs: a quarter of the price for a broken item, nothing for one that is not broken.
Called by the repair list and Shop_RepairItem.
Definition at line 10 of file repair.c.
Referenced by Shop_RepairItem(), Shop_RepairPrice(), and Shop_SelectRepair().
| s32 Shop_SelectUnit | ( | void | ) |
Runs the repair counter's member choice; always returns 0.
Called by Shop_Run for Repair.
Definition at line 21 of file repair.c.
Referenced by Shop_Run(), and Shop_SelectUnit().
Lets the player choose items to repair from the member's grid, one at a time, with each one's repair price, until B or the inventory is empty.
Returns -1 when cancelled, 0 when the inventory ran out. Called by Shop_PickUnit.
Definition at line 30 of file repair.c.
Referenced by Shop_PickUnit(), and Shop_SelectRepair().
Repairs the item in slot: refuses one that cannot break, is not broken or is equipped and cursed on, or that the coins do not cover; asks, then takes the item away for the smith's three hammer blows, gives it back mended, charges the price and offers to equip it.
Called by Shop_SelectRepair.
Definition at line 136 of file repair.c.
Referenced by Shop_RepairItem(), and Shop_SelectRepair().