From: Lukas Krickl Date: Sun, 8 Jun 2025 20:09:08 +0000 (+0200) Subject: unit: Added stub for attributes X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=10ba0405c9da25d1279ce6ef21d1683ab9e3b9b5;p=gbrg%2F.git unit: Added stub for attributes Attributes will be additions to stats such as weapon skills --- diff --git a/src/defs.s b/src/defs.s index 5ee62a5..a9121a6 100644 --- a/src/defs.s +++ b/src/defs.s @@ -114,6 +114,7 @@ ; st_def ; act_def ; act_stat_def + ; act_attr_def or act_attr_def_empty ; act_inventory_def or act_inventory_empty ; act_equipment_def or act_equipment_empty ; act_effects_def or act_effects_empty @@ -142,6 +143,7 @@ .de act_dex, stat_size .de act_moves, stat_size ; moves for each turn .de act_init, 1 ; initiative value + ; attributes ; inventory diff --git a/src/macros.inc b/src/macros.inc index 71cc5f9..5e3da34 100644 --- a/src/macros.inc +++ b/src/macros.inc @@ -203,6 +203,16 @@ .db 0, 0, 0 ; act_rt_dd_* #endmacro + ; defines an actors attributes + ; such as weapon skills +#macro act_attr_def +#endmacro + + ; default attributes +#macro act_attr_def_empty + act_attr_def +#endmacro + ; defines an actors inventory content #macro act_inventory_def #endmacro diff --git a/src/unit.s b/src/unit.s index 804d3b8..668ef1b 100644 --- a/src/unit.s +++ b/src/unit.s @@ -802,6 +802,7 @@ unit_demo_1: st_def 0x00, unit_demo_1_init, st_unit_idle act_def ACT_T_DEMO_1, 0, 2, 2, 0 act_stat_def 1, 1, 2, 3, 0, 0, 0, 4, 6 + act_attr_def_empty act_inventory_empty act_equipment_empty act_effects_empty @@ -813,6 +814,7 @@ unit_demo_2: st_def 0x00, unit_demo_1_init, st_unit_idle act_def ACT_T_DEMO_1, 0, 3, 3, 0 act_stat_def 1, 1, 2, 3, 0, 0, 0, 0, 5 + act_attr_def_empty act_inventory_empty act_equipment_empty act_effects_empty @@ -824,6 +826,7 @@ unit_demo_3: st_def 0x00, unit_demo_1_init, st_unit_idle act_def ACT_T_DEMO_1, 0, 4, 4, 0 act_stat_def 1, 1, 2, 3, 0, 0, 0, 4, 5 + act_attr_def_empty act_inventory_empty act_equipment_empty act_effects_empty