combat forecast, baby
This commit is contained in:
parent
5ba3169744
commit
4dbbea31e4
8 changed files with 49 additions and 13 deletions
|
@ -15,6 +15,7 @@ waiting = false;
|
|||
targeting = new vec2(0, 0);
|
||||
hitpos = new vec2(0, 0);
|
||||
marked = false;
|
||||
hitting = noone;
|
||||
|
||||
continuecombat = function(me, them) {
|
||||
//if stamina returnable = true stamina-- return true
|
||||
|
@ -28,7 +29,7 @@ continuecombat = function(me, them) {
|
|||
action = {
|
||||
effect: function(me, them) {
|
||||
if irandom(99) < (me.data.hit.val) { //add avo
|
||||
them.data.hp.val -= me.data.str.val;
|
||||
them.data.hp.val -= (me.data.str.val-them.data.def.val);
|
||||
return me.data.str.val;
|
||||
} else {
|
||||
log(string(me) + " missed!");
|
||||
|
|
|
@ -12,7 +12,7 @@ var tempy = y;
|
|||
x = 0;
|
||||
y = 0;
|
||||
draw_self();
|
||||
drawstate();
|
||||
|
||||
x = tempx;
|
||||
y = tempy;
|
||||
//log(data);
|
||||
|
|
1
eastern flames/objects/o_unit/Draw_64.gml
Normal file
1
eastern flames/objects/o_unit/Draw_64.gml
Normal file
|
@ -0,0 +1 @@
|
|||
drawstate();
|
|
@ -21,6 +21,7 @@
|
|||
{"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
||||
{"isDnD":false,"eventNum":0,"eventType":3,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
||||
{"isDnD":false,"eventNum":0,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
||||
{"isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
||||
],
|
||||
"properties": [],
|
||||
"overriddenProperties": [],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue