looks like battle animations to me
This commit is contained in:
parent
64a74d6f36
commit
b0e718f879
12 changed files with 107 additions and 20 deletions
|
@ -28,11 +28,15 @@ continuecombat = function(me, them) {
|
|||
|
||||
action = {
|
||||
effect: function(me, them) {
|
||||
var guy = instance_create(them.x, them.y, o_damage);
|
||||
guy.hspd = random(3)-1.5;
|
||||
guy.vspd = -random(1)-3;
|
||||
if irandom(99) < (me.data.hit.val) { //add avo
|
||||
them.data.hp.val -= (me.data.str.val-them.data.def.val);
|
||||
guy.amount = (me.data.str.val-them.data.def.val);
|
||||
return me.data.str.val;
|
||||
} else {
|
||||
log(string(me) + " missed!");
|
||||
guy.amount = "Miss!";
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue