import 'package:wolf_dart/features/weapon/weapons/weapon.dart'; class Knife extends Weapon { Knife() : super( name: "Knife", idleSprite: 416, fireFrames: [417, 418, 419, 420], damage: 15, msPerFrame: 120, ); @override bool fire(int currentTime, {required int currentAmmo}) { if (state == WeaponState.idle) { state = WeaponState.firing; frameIndex = 0; lastFrameTime = currentTime; return true; } return false; } }