19 lines
No EOL
486 B
Text
19 lines
No EOL
486 B
Text
if (inv == 0) {
|
|
hit(other, self, other.attack);
|
|
inv = 30;
|
|
} else {
|
|
knockBack(other, self);
|
|
}
|
|
|
|
// pushback
|
|
/*
|
|
knockback = 10;
|
|
if (other.x > x && !place_meeting(x-knockback-1, y, oWall)) {
|
|
x -= knockback;
|
|
} else if (other.x < x && !place_meeting(x+knockback+1, y, oWall)) {
|
|
x += knockback;
|
|
} else if (other.y > y && !place_meeting(x, y-knockback-1, oWall)) {
|
|
y -= knockback;
|
|
} else if (other.y < y && !place_meeting(x, y+knockback+1, oWall)) {
|
|
y += knockback;
|
|
}*/ |