fp: Fix attack boxes persisting and decrement health
This commit is contained in:
+10
-1
@@ -141,6 +141,11 @@ struct FP_GameInventory
|
||||
uint32_t kennels_base_price;
|
||||
uint32_t churchs_base_price;
|
||||
|
||||
uint32_t stamina_base_price;
|
||||
uint32_t health_base_price;
|
||||
uint32_t mobile_plan_base_price;
|
||||
uint32_t attack_base_price;
|
||||
|
||||
uint8_t airports;
|
||||
uint8_t clubs;
|
||||
uint8_t kennels;
|
||||
@@ -199,7 +204,6 @@ struct FP_GameEntity
|
||||
uint64_t wave_cooldown_timestamp_s;
|
||||
|
||||
uint64_t flags;
|
||||
uint64_t hp;
|
||||
FP_GameDirection direction;
|
||||
Dqn_V2 local_pos;
|
||||
Dqn_f64 alive_time_s;
|
||||
@@ -213,6 +217,10 @@ struct FP_GameEntity
|
||||
|
||||
Dqn_usize coins;
|
||||
FP_GameInventory inventory;
|
||||
uint16_t hp;
|
||||
uint16_t hp_cap;
|
||||
uint16_t stamina;
|
||||
uint16_t stamina_cap;
|
||||
};
|
||||
|
||||
struct FP_GameEntityIterator
|
||||
@@ -295,6 +303,7 @@ struct FP_Game
|
||||
|
||||
Dqn_f32 meters_to_pixels;
|
||||
uint64_t clock_ms;
|
||||
uint64_t update_counter;
|
||||
Dqn_PCG32 rng;
|
||||
|
||||
bool debug_ui;
|
||||
|
||||
Reference in New Issue
Block a user