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

@ -1,6 +1,7 @@
function c_moveunit(targetunit, destination) {
var theguy = c_gettile(targetunit.pos.x, targetunit.pos.y);
array_remove(theguy.contents, targetunit);
log(theguy.contents);
if !array_remove(theguy.contents, targetunit) idhfnjg();
array_push(destination.contents, targetunit);
targetunit.pos.x = destination.x;
targetunit.pos.y = destination.y;