if (!GameplayState.gamePaused())
util_knife--;
if (util_knife < 1)
{
util_knife = 0;
Rectangle rect = new Rectangle(GameplayState.player.pl_center.getX()+(GameplayState.player.util_facing?20:-55), GameplayState.player.pl_center.getY()-30, 35, 60);
Graphics g = Game.app.getGraphics();
g.setLineWidth(1);
g.setColor(Color.red);
g.draw(rect);
for (int i = 0; i < MonsterHandler.monster_array.size(); ++i)
{
Monster mob = MonsterHandler.monster_array.get(i);
if ((rect.intersects(mob.hitbox) || rect.contains(mob.hitbox)) && mob.state != MS.DEAD && mob.state != MS.NULL)
{
util_knife = (byte) (40-Elements.extractLevel(ITEM.P_UPG_KNIFE)*5);
Particle.addNew(PT.KNIFE, (int) GameplayState.player.pl_center.getX(), (int) GameplayState.player.pl_center.getY());
mob.onDamage(25+Elements.extractLevel(ITEM.P_UPG_KNIFE)*8, true, false);
break;