combat forecast, baby

This commit is contained in:
the me 2022-08-22 23:49:38 -07:00
parent 5ba3169744
commit 4dbbea31e4
8 changed files with 49 additions and 13 deletions

View file

@ -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!");

View file

@ -12,7 +12,7 @@ var tempy = y;
x = 0;
y = 0;
draw_self();
drawstate();
x = tempx;
y = tempy;
//log(data);

View file

@ -0,0 +1 @@
drawstate();

View file

@ -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": [],