move you self

This commit is contained in:
the me 2022-08-16 15:28:01 -07:00
parent 9cdac2b47e
commit 4d394955fa
18 changed files with 127 additions and 22 deletions

View file

@ -11,6 +11,7 @@ attacked = 0;
inventory = [];
c_addweapon(id, wp.nothing);
equippedweapon = noone;
waiting = false;
continuecombat = function(me, them) {
//if stamina returnable = true stamina-- return true
@ -23,8 +24,14 @@ continuecombat = function(me, them) {
action = {
effect: function(me, them) {
them.data.hp.val -= me.data.str.val;
return me.data.str.val;
if irandom(99) < (me.data.hit.val) { //add avo
them.data.hp.val -= me.data.str.val;
return me.data.str.val;
} else {
log(string(me) + " missed!");
return 0;
}
}
//animation: new actionanim()

View file

@ -1,3 +1,4 @@
if waiting image_blend = c_grey else image_blend = c_white;
draw_self();
drawstate();
//log(data);