combat forecast, baby
This commit is contained in:
parent
5ba3169744
commit
4dbbea31e4
8 changed files with 49 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue