unit: Added stub for attributes
authorLukas Krickl <lukas@krickl.dev>
Sun, 8 Jun 2025 20:09:08 +0000 (22:09 +0200)
committerLukas Krickl <lukas@krickl.dev>
Sun, 8 Jun 2025 20:09:08 +0000 (22:09 +0200)
Attributes will be additions to stats such as weapon skills

src/defs.s
src/macros.inc
src/unit.s

index 5ee62a5731b5eb9db3c545290f516fdfe77a07f9..a9121a60250a7b80ae22a810c3090ba7b0c17416 100644 (file)
   ; 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
 .de act_dex, stat_size
 .de act_moves, stat_size ; moves for each turn
 .de act_init, 1 ; initiative value
+  ; attributes
 
   ; inventory
   
index 71cc5f9bc6f764a5b59cb1495e1f7fc88be956c1..5e3da3484734911d744e54721354bc4f587a8d92 100644 (file)
   .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
index 804d3b82b43e0ff36cc25a24d725476713cfc0ca..668ef1bceb093f6ef06b9d27d2fbdfb7189c3b07 100644 (file)
@@ -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