move you self
This commit is contained in:
parent
9cdac2b47e
commit
4d394955fa
18 changed files with 127 additions and 22 deletions
|
@ -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()
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
if waiting image_blend = c_grey else image_blend = c_white;
|
||||
draw_self();
|
||||
drawstate();
|
||||
//log(data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue