; and call
ret
+ ; clears tact at the current actors position
+ ; inputs:
+ ; de: actor
+act_clear_tact:
+ ld hl, act_pos_y
+ add hl, de
+ ld a, [hl+]
+ ld b, a
+ ld a, [hl]
+ ld c, a
+ call map_get_tile
+ ; get tile
+
+ ld bc, t_act
+ add hl, bc
+ ; clear value
+ xor a, a
+ ld [hl+], a
+ ld [hl], a
+
+ ret
+
+ ; sets tact at the current actors location
+ ; inputs:
+ ; de: actor
+act_set_tact:
+ push de
+ ld hl, act_pos_y
+ add hl, de
+ ld a, [hl+]
+ ld b, a
+ ld a, [hl]
+ ld c, a
+ call map_get_tile
+ ; get tile
+
+ ld bc, t_act
+ add hl, bc
+
+ ; set ptr
+ pop de
+
+ ld a, d
+ ld [hl+], a
+ ld a, e
+ ld [hl], a
+ ret
+
+
+ ; clears tprop t the current prop position
+ ; inputs:
+ ; de: actor
+act_clear_tprop:
+ ld hl, act_pos_y
+ add hl, de
+ ld a, [hl+]
+ ld b, a
+ ld a, [hl]
+ ld c, a
+ call map_get_tile
+ ; get tile
+
+ ld bc, t_prop
+ add hl, bc
+ ; clear value
+ xor a, a
+ ld [hl+], a
+ ld [hl], a
+
+ ret
+
+ ; sets tprop at the current prop location
+ ; inputs:
+ ; de: actor
+act_set_tprop:
+ push de
+ ld hl, act_pos_y
+ add hl, de
+ ld a, [hl+]
+ ld b, a
+ ld a, [hl]
+ ld c, a
+ call map_get_tile
+ ; get tile
+
+ ld bc, t_prop
+ add hl, bc
+
+ ; set ptr
+ pop de
+
+ ld a, d
+ ld [hl+], a
+ ld a, e
+ ld [hl], a
+ ret
+
; checks if the selected actor can move forward
; inputs:
; de: actor
add hl, de
ld a, [hl]
ld b, a ; b = tile flags
-
pop de
ld hl, act_dir