map events or whatever

This commit is contained in:
the me 2022-08-23 02:25:43 -07:00
parent b0e718f879
commit 856b518593
28 changed files with 185 additions and 29 deletions

View file

@ -137,6 +137,8 @@ function st_moving() {
if hitting.contents[i].alignment != alignment ^^ !data.str.val {
c_moveunit(id, c_gettile(pos.x, pos.y));
c_generatecombatstack([id, hitting.contents[i]]);
waiting = true;
c_deselectunit(id);
}
}
}
@ -147,7 +149,7 @@ function st_moving() {
c_moveunit(id, c_gettile(returnpos.x, returnpos.y));
c_deselectunit(id);
}
if dir == DIR.NONE && select && stop && ARTICULATOR.hoveredunit == id{
if dir == DIR.NONE && select && stop {
c_moveunit(id, c_gettile(x, y, true));
waiting = true;
c_deselectunit(id);