#include "../game/game.h"
#include "../movement/movement.h"
#include "../inventory/inventory.h"
+#include "../recharge/recharge.h"
static bool use_broken_sword(struct itemstack *stack)
{
static bool use_sword(struct itemstack *stack)
{
+ if (! is_charged())
+ return false;
+
int x, y;
x = player.x;
y = player.y;
if (rand() % 100 == 0)
stack->item = &broken_sword;
+
+ recharge(1.0, "⚔ ");
}
return false;