.str "attack"
.db 0
-str_am_eat:
-.str "eat"
+str_am_shoot:
+.str "shoot"
.db 0
str_am_rest:
action_menu_str_table:
dw str_am_attack
dw str_am_pick_up
- dw str_am_eat
+ dw str_am_shoot
dw str_am_rest
action_menu_str_table_end:
action_menu_action_table:
dw st_action_attack_init
dw st_action_attack_init
- dw st_action_attack_init
+ dw st_action_shoot_init
dw st_action_rest
action_menu_action_table_end:
; cast a ray in direction
; hit first actor found
; and attacking actor plays a small shoot animation
+
+unit_action_shoot_pick_direction_init:
+ ld hl, STR_ATTACK_DIRECTION
+ ld de, UI_STATUS_LINE
+ call puts
+ call ui_request_redraw
+ ldnull bc
+ ret
+
+unit_action_shoot_pick_direction:
+ ld bc, st_unit_delay_to_active_template
+ jp unit_action_pick_direction
+
+st_action_shoot_init:
+ st_def 0x00, unit_action_shoot_pick_direction_init, st_action_shoot_pick_direction
+st_action_shoot_pick_direction:
+ st_def 0x00, unit_action_shoot_pick_direction, st_action_shoot_pick_direction