diff --git a/src/activity_handlers.cpp b/src/activity_handlers.cpp index 48a5011698023..8cf8f57f97f41 100644 --- a/src/activity_handlers.cpp +++ b/src/activity_handlers.cpp @@ -100,6 +100,106 @@ #define dbg(x) DebugLog((x),D_GAME) << __FILE__ << ":" << __LINE__ << ": " +static const activity_id ACT_ADV_INVENTORY( "ACT_ADV_INVENTORY" ); +static const activity_id ACT_AIM( "ACT_AIM" ); +static const activity_id ACT_ARMOR_LAYERS( "ACT_ARMOR_LAYERS" ); +static const activity_id ACT_ATM( "ACT_ATM" ); +static const activity_id ACT_AUTODRIVE( "ACT_AUTODRIVE" ); +static const activity_id ACT_BUILD( "ACT_BUILD" ); +static const activity_id ACT_BURROW( "ACT_BURROW" ); +static const activity_id ACT_BUTCHER( "ACT_BUTCHER" ); +static const activity_id ACT_BUTCHER_FULL( "ACT_BUTCHER_FULL" ); +static const activity_id ACT_CHOP_LOGS( "ACT_CHOP_LOGS" ); +static const activity_id ACT_CHOP_PLANKS( "ACT_CHOP_PLANKS" ); +static const activity_id ACT_CHOP_TREE( "ACT_CHOP_TREE" ); +static const activity_id ACT_CHURN( "ACT_CHURN" ); +static const activity_id ACT_CLEAR_RUBBLE( "ACT_CLEAR_RUBBLE" ); +static const activity_id ACT_CONSUME_DRINK_MENU( "ACT_CONSUME_DRINK_MENU" ); +static const activity_id ACT_CONSUME_FOOD_MENU( "ACT_CONSUME_FOOD_MENU" ); +static const activity_id ACT_CONSUME_MEDS_MENU( "ACT_CONSUME_MEDS_MENU" ); +static const activity_id ACT_CRACKING( "ACT_CRACKING" ); +static const activity_id ACT_CRAFT( "ACT_CRAFT" ); +static const activity_id ACT_DIG( "ACT_DIG" ); +static const activity_id ACT_DIG_CHANNEL( "ACT_DIG_CHANNEL" ); +static const activity_id ACT_DISASSEMBLE( "ACT_DISASSEMBLE" ); +static const activity_id ACT_DISMEMBER( "ACT_DISMEMBER" ); +static const activity_id ACT_DISSECT( "ACT_DISSECT" ); +static const activity_id ACT_DROP( "ACT_DROP" ); +static const activity_id ACT_EAT_MENU( "ACT_EAT_MENU" ); +static const activity_id ACT_FERTILIZE_PLOT( "ACT_FERTILIZE_PLOT" ); +static const activity_id ACT_FETCH_REQUIRED( "ACT_FETCH_REQUIRED" ); +static const activity_id ACT_FIELD_DRESS( "ACT_FIELD_DRESS" ); +static const activity_id ACT_FILL_LIQUID( "ACT_FILL_LIQUID" ); +static const activity_id ACT_MILK( "ACT_MILK" ); +static const activity_id ACT_FILL_PIT( "ACT_FILL_PIT" ); +static const activity_id ACT_FIND_MOUNT( "ACT_FIND_MOUNT" ); +static const activity_id ACT_FIRSTAID( "ACT_FIRSTAID" ); +static const activity_id ACT_FISH( "ACT_FISH" ); +static const activity_id ACT_FORAGE( "ACT_FORAGE" ); +static const activity_id ACT_GAME( "ACT_GAME" ); +static const activity_id ACT_GENERIC_GAME( "ACT_GENERIC_GAME" ); +static const activity_id ACT_GUNMOD_ADD( "ACT_GUNMOD_ADD" ); +static const activity_id ACT_HACKING( "ACT_HACKING" ); +static const activity_id ACT_HACKSAW( "ACT_HACKSAW" ); +static const activity_id ACT_HAIRCUT( "ACT_HAIRCUT" ); +static const activity_id ACT_HAND_CRANK( "ACT_HAND_CRANK" ); +static const activity_id ACT_HEATING( "ACT_HEATING" ); +static const activity_id ACT_HOTWIRE_CAR( "ACT_HOTWIRE_CAR" ); +static const activity_id ACT_JACKHAMMER( "ACT_JACKHAMMER" ); +static const activity_id ACT_LONGSALVAGE( "ACT_LONGSALVAGE" ); +static const activity_id ACT_MAKE_ZLAVE( "ACT_MAKE_ZLAVE" ); +static const activity_id ACT_MEDITATE( "ACT_MEDITATE" ); +static const activity_id ACT_MEND_ITEM( "ACT_MEND_ITEM" ); +static const activity_id ACT_MIND_SPLICER( "ACT_MIND_SPLICER" ); +static const activity_id ACT_MOVE_ITEMS( "ACT_MOVE_ITEMS" ); +static const activity_id ACT_MOVE_LOOT( "ACT_MOVE_LOOT" ); +static const activity_id ACT_MULTIPLE_BUTCHER( "ACT_MULTIPLE_BUTCHER" ); +static const activity_id ACT_MULTIPLE_CHOP_PLANKS( "ACT_MULTIPLE_CHOP_PLANKS" ); +static const activity_id ACT_MULTIPLE_CHOP_TREES( "ACT_MULTIPLE_CHOP_TREES" ); +static const activity_id ACT_MULTIPLE_CONSTRUCTION( "ACT_MULTIPLE_CONSTRUCTION" ); +static const activity_id ACT_MULTIPLE_FARM( "ACT_MULTIPLE_FARM" ); +static const activity_id ACT_MULTIPLE_FISH( "ACT_MULTIPLE_FISH" ); +static const activity_id ACT_NULL( "ACT_NULL" ); +static const activity_id ACT_OPEN_GATE( "ACT_OPEN_GATE" ); +static const activity_id ACT_OPERATION( "ACT_OPERATION" ); +static const activity_id ACT_OXYTORCH( "ACT_OXYTORCH" ); +static const activity_id ACT_PICKAXE( "ACT_PICKAXE" ); +static const activity_id ACT_PICKUP( "ACT_PICKUP" ); +static const activity_id ACT_PLANT_SEED( "ACT_PLANT_SEED" ); +static const activity_id ACT_PLAY_WITH_PET( "ACT_PLAY_WITH_PET" ); +static const activity_id ACT_PRY_NAILS( "ACT_PRY_NAILS" ); +static const activity_id ACT_PULP( "ACT_PULP" ); +static const activity_id ACT_QUARTER( "ACT_QUARTER" ); +static const activity_id ACT_READ( "ACT_READ" ); +static const activity_id ACT_RELOAD( "ACT_RELOAD" ); +static const activity_id ACT_REPAIR_ITEM( "ACT_REPAIR_ITEM" ); +static const activity_id ACT_ROBOT_CONTROL( "ACT_ROBOT_CONTROL" ); +static const activity_id ACT_SHAVE( "ACT_SHAVE" ); +static const activity_id ACT_SKIN( "ACT_SKIN" ); +static const activity_id ACT_SOCIALIZE( "ACT_SOCIALIZE" ); +static const activity_id ACT_SPELLCASTING( "ACT_SPELLCASTING" ); +static const activity_id ACT_START_ENGINES( "ACT_START_ENGINES" ); +static const activity_id ACT_START_FIRE( "ACT_START_FIRE" ); +static const activity_id ACT_STASH( "ACT_STASH" ); +static const activity_id ACT_STUDY_SPELL( "ACT_STUDY_SPELL" ); +static const activity_id ACT_TIDY_UP( "ACT_TIDY_UP" ); +static const activity_id ACT_TOOLMOD_ADD( "ACT_TOOLMOD_ADD" ); +static const activity_id ACT_TRAIN( "ACT_TRAIN" ); +static const activity_id ACT_TRAVELLING( "ACT_TRAVELLING" ); +static const activity_id ACT_TREE_COMMUNION( "ACT_TREE_COMMUNION" ); +static const activity_id ACT_TRY_SLEEP( "ACT_TRY_SLEEP" ); +static const activity_id ACT_UNLOAD_MAG( "ACT_UNLOAD_MAG" ); +static const activity_id ACT_VEHICLE( "ACT_VEHICLE" ); +static const activity_id ACT_VEHICLE_DECONSTRUCTION( "ACT_VEHICLE_DECONSTRUCTION" ); +static const activity_id ACT_VEHICLE_REPAIR( "ACT_VEHICLE_REPAIR" ); +static const activity_id ACT_VIBE( "ACT_VIBE" ); +static const activity_id ACT_WAIT( "ACT_WAIT" ); +static const activity_id ACT_WAIT_NPC( "ACT_WAIT_NPC" ); +static const activity_id ACT_WAIT_STAMINA( "ACT_WAIT_STAMINA" ); +static const activity_id ACT_WAIT_WEATHER( "ACT_WAIT_WEATHER" ); +static const activity_id ACT_WASH( "ACT_WASH" ); +static const activity_id ACT_WEAR( "ACT_WEAR" ); + static const zone_type_id zone_type_FARM_PLOT( "FARM_PLOT" ); static const skill_id skill_computer( "computer" ); diff --git a/src/activity_item_handling.cpp b/src/activity_item_handling.cpp index 79c531de6d92a..5bc4f5ea679a1 100644 --- a/src/activity_item_handling.cpp +++ b/src/activity_item_handling.cpp @@ -51,6 +51,30 @@ #include "string_id.h" #include "cata_string_consts.h" +static const activity_id ACT_BUILD( "ACT_BUILD" ); +static const activity_id ACT_BUTCHER( "ACT_BUTCHER" ); +static const activity_id ACT_BUTCHER_FULL( "ACT_BUTCHER_FULL" ); +static const activity_id ACT_CHOP_LOGS( "ACT_CHOP_LOGS" ); +static const activity_id ACT_CHOP_PLANKS( "ACT_CHOP_PLANKS" ); +static const activity_id ACT_CHOP_TREE( "ACT_CHOP_TREE" ); +static const activity_id ACT_CHURN( "ACT_CHURN" ); +static const activity_id ACT_FETCH_REQUIRED( "ACT_FETCH_REQUIRED" ); +static const activity_id ACT_FISH( "ACT_FISH" ); +static const activity_id ACT_MOVE_ITEMS( "ACT_MOVE_ITEMS" ); +static const activity_id ACT_MOVE_LOOT( "ACT_MOVE_LOOT" ); +static const activity_id ACT_MULTIPLE_BUTCHER( "ACT_MULTIPLE_BUTCHER" ); +static const activity_id ACT_MULTIPLE_CHOP_PLANKS( "ACT_MULTIPLE_CHOP_PLANKS" ); +static const activity_id ACT_MULTIPLE_CHOP_TREES( "ACT_MULTIPLE_CHOP_TREES" ); +static const activity_id ACT_MULTIPLE_CONSTRUCTION( "ACT_MULTIPLE_CONSTRUCTION" ); +static const activity_id ACT_MULTIPLE_FARM( "ACT_MULTIPLE_FARM" ); +static const activity_id ACT_MULTIPLE_FISH( "ACT_MULTIPLE_FISH" ); +static const activity_id ACT_PICKUP( "ACT_PICKUP" ); +static const activity_id ACT_TIDY_UP( "ACT_TIDY_UP" ); +static const activity_id ACT_VEHICLE( "ACT_VEHICLE" ); +static const activity_id ACT_VEHICLE_DECONSTRUCTION( "ACT_VEHICLE_DECONSTRUCTION" ); +static const activity_id ACT_VEHICLE_REPAIR( "ACT_VEHICLE_REPAIR" ); +static const activity_id ACT_WEAR( "ACT_WEAR" ); + static const trap_str_id tr_firewood_source( "tr_firewood_source" ); static const trap_str_id tr_unfinished_construction( "tr_unfinished_construction" ); diff --git a/src/advanced_inv.cpp b/src/advanced_inv.cpp index 76447402ed75e..108995fe55f24 100644 --- a/src/advanced_inv.cpp +++ b/src/advanced_inv.cpp @@ -64,6 +64,12 @@ # include #endif +static const activity_id ACT_ADV_INVENTORY( "ACT_ADV_INVENTORY" ); +static const activity_id ACT_DROP( "ACT_DROP" ); +static const activity_id ACT_MOVE_ITEMS( "ACT_MOVE_ITEMS" ); +static const activity_id ACT_PICKUP( "ACT_PICKUP" ); +static const activity_id ACT_WEAR( "ACT_WEAR" ); + void create_advanced_inv() { advanced_inventory advinv; diff --git a/src/armor_layers.cpp b/src/armor_layers.cpp index a8dc810618923..ec57f2d872e7c 100644 --- a/src/armor_layers.cpp +++ b/src/armor_layers.cpp @@ -21,6 +21,8 @@ #include "enums.h" #include "cata_string_consts.h" +static const activity_id ACT_ARMOR_LAYERS( "ACT_ARMOR_LAYERS" ); + namespace { std::string clothing_layer( const item &worn_item ); diff --git a/src/avatar.cpp b/src/avatar.cpp index ced193ac1dcd5..c74628a7b56ca 100644 --- a/src/avatar.cpp +++ b/src/avatar.cpp @@ -66,6 +66,8 @@ #include "cata_string_consts.h" #include "ranged.h" +static const activity_id ACT_READ( "ACT_READ" ); + static const bionic_id bio_eye_optic( "bio_eye_optic" ); static const bionic_id bio_memory( "bio_memory" ); static const bionic_id bio_watch( "bio_watch" ); diff --git a/src/avatar_action.cpp b/src/avatar_action.cpp index 06fe135fff101..ab143c2ad0ab5 100644 --- a/src/avatar_action.cpp +++ b/src/avatar_action.cpp @@ -50,6 +50,8 @@ #include "rng.h" #include "cata_string_consts.h" +static const activity_id ACT_AIM( "ACT_AIM" ); + static const skill_id skill_swimming( "swimming" ); static const bionic_id bio_ups( "bio_ups" ); diff --git a/src/bionics.cpp b/src/bionics.cpp index 2b4745ae3db91..492c16d80286d 100644 --- a/src/bionics.cpp +++ b/src/bionics.cpp @@ -67,6 +67,8 @@ #include "teleport.h" #include "cata_string_consts.h" +static const activity_id ACT_OPERATION( "ACT_OPERATION" ); + static const itype_id fuel_type_battery( "battery" ); static const itype_id fuel_type_sun_light( "sunlight" ); static const itype_id fuel_type_wind( "wind" ); diff --git a/src/cata_string_consts.h b/src/cata_string_consts.h index ca4932380d2b3..bf4167fc72301 100644 --- a/src/cata_string_consts.h +++ b/src/cata_string_consts.h @@ -3,107 +3,6 @@ #define STRING_CONSTS_H #include "type_id.h" -#include "player_activity.h" - -static const activity_id ACT_ADV_INVENTORY( "ACT_ADV_INVENTORY" ); -static const activity_id ACT_AIM( "ACT_AIM" ); -static const activity_id ACT_ARMOR_LAYERS( "ACT_ARMOR_LAYERS" ); -static const activity_id ACT_ATM( "ACT_ATM" ); -static const activity_id ACT_AUTODRIVE( "ACT_AUTODRIVE" ); -static const activity_id ACT_BUILD( "ACT_BUILD" ); -static const activity_id ACT_BURROW( "ACT_BURROW" ); -static const activity_id ACT_BUTCHER( "ACT_BUTCHER" ); -static const activity_id ACT_BUTCHER_FULL( "ACT_BUTCHER_FULL" ); -static const activity_id ACT_CHOP_LOGS( "ACT_CHOP_LOGS" ); -static const activity_id ACT_CHOP_PLANKS( "ACT_CHOP_PLANKS" ); -static const activity_id ACT_CHOP_TREE( "ACT_CHOP_TREE" ); -static const activity_id ACT_CHURN( "ACT_CHURN" ); -static const activity_id ACT_CLEAR_RUBBLE( "ACT_CLEAR_RUBBLE" ); -static const activity_id ACT_CONSUME_DRINK_MENU( "ACT_CONSUME_DRINK_MENU" ); -static const activity_id ACT_CONSUME_FOOD_MENU( "ACT_CONSUME_FOOD_MENU" ); -static const activity_id ACT_CONSUME_MEDS_MENU( "ACT_CONSUME_MEDS_MENU" ); -static const activity_id ACT_CRACKING( "ACT_CRACKING" ); -static const activity_id ACT_CRAFT( "ACT_CRAFT" ); -static const activity_id ACT_DIG( "ACT_DIG" ); -static const activity_id ACT_DIG_CHANNEL( "ACT_DIG_CHANNEL" ); -static const activity_id ACT_DISASSEMBLE( "ACT_DISASSEMBLE" ); -static const activity_id ACT_DISMEMBER( "ACT_DISMEMBER" ); -static const activity_id ACT_DISSECT( "ACT_DISSECT" ); -static const activity_id ACT_DROP( "ACT_DROP" ); -static const activity_id ACT_EAT_MENU( "ACT_EAT_MENU" ); -static const activity_id ACT_FERTILIZE_PLOT( "ACT_FERTILIZE_PLOT" ); -static const activity_id ACT_FETCH_REQUIRED( "ACT_FETCH_REQUIRED" ); -static const activity_id ACT_FIELD_DRESS( "ACT_FIELD_DRESS" ); -static const activity_id ACT_FILL_LIQUID( "ACT_FILL_LIQUID" ); -static const activity_id ACT_MILK( "ACT_MILK" ); -static const activity_id ACT_FILL_PIT( "ACT_FILL_PIT" ); -static const activity_id ACT_FIND_MOUNT( "ACT_FIND_MOUNT" ); -static const activity_id ACT_FIRSTAID( "ACT_FIRSTAID" ); -static const activity_id ACT_FISH( "ACT_FISH" ); -static const activity_id ACT_FORAGE( "ACT_FORAGE" ); -static const activity_id ACT_GAME( "ACT_GAME" ); -static const activity_id ACT_GENERIC_GAME( "ACT_GENERIC_GAME" ); -static const activity_id ACT_GUNMOD_ADD( "ACT_GUNMOD_ADD" ); -static const activity_id ACT_HACKING( "ACT_HACKING" ); -static const activity_id ACT_HACKSAW( "ACT_HACKSAW" ); -static const activity_id ACT_HAIRCUT( "ACT_HAIRCUT" ); -static const activity_id ACT_HAND_CRANK( "ACT_HAND_CRANK" ); -static const activity_id ACT_HEATING( "ACT_HEATING" ); -static const activity_id ACT_HOTWIRE_CAR( "ACT_HOTWIRE_CAR" ); -static const activity_id ACT_JACKHAMMER( "ACT_JACKHAMMER" ); -static const activity_id ACT_LONGSALVAGE( "ACT_LONGSALVAGE" ); -static const activity_id ACT_MAKE_ZLAVE( "ACT_MAKE_ZLAVE" ); -static const activity_id ACT_MEDITATE( "ACT_MEDITATE" ); -static const activity_id ACT_MEND_ITEM( "ACT_MEND_ITEM" ); -static const activity_id ACT_MIND_SPLICER( "ACT_MIND_SPLICER" ); -static const activity_id ACT_MOVE_ITEMS( "ACT_MOVE_ITEMS" ); -static const activity_id ACT_MOVE_LOOT( "ACT_MOVE_LOOT" ); -static const activity_id ACT_MULTIPLE_BUTCHER( "ACT_MULTIPLE_BUTCHER" ); -static const activity_id ACT_MULTIPLE_CHOP_PLANKS( "ACT_MULTIPLE_CHOP_PLANKS" ); -static const activity_id ACT_MULTIPLE_CHOP_TREES( "ACT_MULTIPLE_CHOP_TREES" ); -static const activity_id ACT_MULTIPLE_CONSTRUCTION( "ACT_MULTIPLE_CONSTRUCTION" ); -static const activity_id ACT_MULTIPLE_FARM( "ACT_MULTIPLE_FARM" ); -static const activity_id ACT_MULTIPLE_FISH( "ACT_MULTIPLE_FISH" ); -static const activity_id ACT_NULL( "ACT_NULL" ); -static const activity_id ACT_OPEN_GATE( "ACT_OPEN_GATE" ); -static const activity_id ACT_OPERATION( "ACT_OPERATION" ); -static const activity_id ACT_OXYTORCH( "ACT_OXYTORCH" ); -static const activity_id ACT_PICKAXE( "ACT_PICKAXE" ); -static const activity_id ACT_PICKUP( "ACT_PICKUP" ); -static const activity_id ACT_PLANT_SEED( "ACT_PLANT_SEED" ); -static const activity_id ACT_PLAY_WITH_PET( "ACT_PLAY_WITH_PET" ); -static const activity_id ACT_PRY_NAILS( "ACT_PRY_NAILS" ); -static const activity_id ACT_PULP( "ACT_PULP" ); -static const activity_id ACT_QUARTER( "ACT_QUARTER" ); -static const activity_id ACT_READ( "ACT_READ" ); -static const activity_id ACT_RELOAD( "ACT_RELOAD" ); -static const activity_id ACT_REPAIR_ITEM( "ACT_REPAIR_ITEM" ); -static const activity_id ACT_ROBOT_CONTROL( "ACT_ROBOT_CONTROL" ); -static const activity_id ACT_SHAVE( "ACT_SHAVE" ); -static const activity_id ACT_SKIN( "ACT_SKIN" ); -static const activity_id ACT_SOCIALIZE( "ACT_SOCIALIZE" ); -static const activity_id ACT_SPELLCASTING( "ACT_SPELLCASTING" ); -static const activity_id ACT_START_ENGINES( "ACT_START_ENGINES" ); -static const activity_id ACT_START_FIRE( "ACT_START_FIRE" ); -static const activity_id ACT_STASH( "ACT_STASH" ); -static const activity_id ACT_STUDY_SPELL( "ACT_STUDY_SPELL" ); -static const activity_id ACT_TIDY_UP( "ACT_TIDY_UP" ); -static const activity_id ACT_TOOLMOD_ADD( "ACT_TOOLMOD_ADD" ); -static const activity_id ACT_TRAIN( "ACT_TRAIN" ); -static const activity_id ACT_TRAVELLING( "ACT_TRAVELLING" ); -static const activity_id ACT_TREE_COMMUNION( "ACT_TREE_COMMUNION" ); -static const activity_id ACT_TRY_SLEEP( "ACT_TRY_SLEEP" ); -static const activity_id ACT_UNLOAD_MAG( "ACT_UNLOAD_MAG" ); -static const activity_id ACT_VEHICLE( "ACT_VEHICLE" ); -static const activity_id ACT_VEHICLE_DECONSTRUCTION( "ACT_VEHICLE_DECONSTRUCTION" ); -static const activity_id ACT_VEHICLE_REPAIR( "ACT_VEHICLE_REPAIR" ); -static const activity_id ACT_VIBE( "ACT_VIBE" ); -static const activity_id ACT_WAIT( "ACT_WAIT" ); -static const activity_id ACT_WAIT_NPC( "ACT_WAIT_NPC" ); -static const activity_id ACT_WAIT_STAMINA( "ACT_WAIT_STAMINA" ); -static const activity_id ACT_WAIT_WEATHER( "ACT_WAIT_WEATHER" ); -static const activity_id ACT_WASH( "ACT_WASH" ); -static const activity_id ACT_WEAR( "ACT_WEAR" ); static const efftype_id effect_adrenaline( "adrenaline" ); static const efftype_id effect_adrenaline_mycus( "adrenaline_mycus" ); diff --git a/src/character.cpp b/src/character.cpp index 0e72c7ca47c9f..aa2dcebd4fe91 100644 --- a/src/character.cpp +++ b/src/character.cpp @@ -68,6 +68,13 @@ #include "vitamin.h" #include "vpart_position.h" +static const activity_id ACT_DROP( "ACT_DROP" ); +static const activity_id ACT_MOVE_ITEMS( "ACT_MOVE_ITEMS" ); +static const activity_id ACT_STASH( "ACT_STASH" ); +static const activity_id ACT_TREE_COMMUNION( "ACT_TREE_COMMUNION" ); +static const activity_id ACT_TRY_SLEEP( "ACT_TRY_SLEEP" ); +static const activity_id ACT_WAIT_STAMINA( "ACT_WAIT_STAMINA" ); + static const trait_id trait_DEBUG_NODMG( "DEBUG_NODMG" ); static const skill_id skill_dodge( "dodge" ); diff --git a/src/construction.cpp b/src/construction.cpp index 08a3d14771df3..fd033d9f4bcab 100644 --- a/src/construction.cpp +++ b/src/construction.cpp @@ -54,6 +54,9 @@ #include "units.h" #include "cata_string_consts.h" +static const activity_id ACT_BUILD( "ACT_BUILD" ); +static const activity_id ACT_MULTIPLE_CONSTRUCTION( "ACT_MULTIPLE_CONSTRUCTION" ); + static const trap_str_id tr_firewood_source( "tr_firewood_source" ); static const trap_str_id tr_practice_target( "tr_practice_target" ); static const trap_str_id tr_unfinished_construction( "tr_unfinished_construction" ); diff --git a/src/crafting.cpp b/src/crafting.cpp index d89cc4e82dfe5..47b9a1d75e26e 100644 --- a/src/crafting.cpp +++ b/src/crafting.cpp @@ -70,6 +70,9 @@ #include "weather.h" #include "cata_string_consts.h" +static const activity_id ACT_CRAFT( "ACT_CRAFT" ); +static const activity_id ACT_DISASSEMBLE( "ACT_DISASSEMBLE" ); + static const skill_id skill_electronics( "electronics" ); static const skill_id skill_tailor( "tailor" ); diff --git a/src/faction_camp.cpp b/src/faction_camp.cpp index 0539e5bb9b82e..3b5640e728886 100644 --- a/src/faction_camp.cpp +++ b/src/faction_camp.cpp @@ -75,6 +75,8 @@ #include "weather.h" #include "cata_string_consts.h" +static const activity_id ACT_MOVE_LOOT( "ACT_MOVE_LOOT" ); + static const zone_type_id zone_type_camp_food( "CAMP_FOOD" ); static const zone_type_id zone_type_camp_storage( "CAMP_STORAGE" ); diff --git a/src/game_inventory.cpp b/src/game_inventory.cpp index 10cdd27c3364c..e4792c2c3fb13 100644 --- a/src/game_inventory.cpp +++ b/src/game_inventory.cpp @@ -48,6 +48,11 @@ #include "point.h" #include "cata_string_consts.h" +static const activity_id ACT_EAT_MENU( "ACT_EAT_MENU" ); +static const activity_id ACT_CONSUME_FOOD_MENU( "ACT_CONSUME_FOOD_MENU" ); +static const activity_id ACT_CONSUME_DRINK_MENU( "ACT_CONSUME_DRINK_MENU" ); +static const activity_id ACT_CONSUME_MEDS_MENU( "ACT_CONSUME_MEDS_MENU" ); + static const fault_id fault_bionic_salvaged( "fault_bionic_salvaged" ); static const skill_id skill_computer( "computer" ); diff --git a/src/gates.cpp b/src/gates.cpp index 8addeb83f991b..d33274b8ec7ae 100644 --- a/src/gates.cpp +++ b/src/gates.cpp @@ -31,7 +31,8 @@ #include "type_id.h" #include "colony.h" #include "point.h" -#include "cata_string_consts.h" + +static const activity_id ACT_OPEN_GATE( "ACT_OPEN_GATE" ); // Gates namespace @@ -320,7 +321,7 @@ void doors::close_door( map &m, Character &who, const tripoint &closep ) items_in_way.size() == 1 ? items_in_way.only_item().tname() : _( "stuff" ) ); who.mod_moves( -std::min( items_in_way.stored_volume() / ( max_nudge / 50 ), 100 ) ); - if( m.has_flag( flag_NOITEM, closep ) ) { + if( m.has_flag( "NOITEM", closep ) ) { // Just plopping items back on their origin square will displace them to adjacent squares // since the door is closed now. for( auto &elem : items_in_way ) { diff --git a/src/handle_action.cpp b/src/handle_action.cpp index a1537ebff895a..b0d6df6452da3 100644 --- a/src/handle_action.cpp +++ b/src/handle_action.cpp @@ -68,6 +68,21 @@ #include "item.h" #include "cata_string_consts.h" +static const activity_id ACT_FERTILIZE_PLOT( "ACT_FERTILIZE_PLOT" ); +static const activity_id ACT_MOVE_LOOT( "ACT_MOVE_LOOT" ); +static const activity_id ACT_MULTIPLE_BUTCHER( "ACT_MULTIPLE_BUTCHER" ); +static const activity_id ACT_MULTIPLE_CHOP_PLANKS( "ACT_MULTIPLE_CHOP_PLANKS" ); +static const activity_id ACT_MULTIPLE_CHOP_TREES( "ACT_MULTIPLE_CHOP_TREES" ); +static const activity_id ACT_MULTIPLE_CONSTRUCTION( "ACT_MULTIPLE_CONSTRUCTION" ); +static const activity_id ACT_MULTIPLE_FARM( "ACT_MULTIPLE_FARM" ); +static const activity_id ACT_PULP( "ACT_PULP" ); +static const activity_id ACT_SPELLCASTING( "ACT_SPELLCASTING" ); +static const activity_id ACT_VEHICLE_DECONSTRUCTION( "ACT_VEHICLE_DECONSTRUCTION" ); +static const activity_id ACT_VEHICLE_REPAIR( "ACT_VEHICLE_REPAIR" ); +static const activity_id ACT_WAIT( "ACT_WAIT" ); +static const activity_id ACT_WAIT_STAMINA( "ACT_WAIT_STAMINA" ); +static const activity_id ACT_WAIT_WEATHER( "ACT_WAIT_WEATHER" ); + static const skill_id skill_melee( "melee" ); static const quality_id qual_CUT( "CUT" ); diff --git a/src/iexamine.cpp b/src/iexamine.cpp index 38c8e92a572af..dd6312550e65f 100644 --- a/src/iexamine.cpp +++ b/src/iexamine.cpp @@ -88,6 +88,15 @@ #include "point.h" #include "cata_string_consts.h" +static const activity_id ACT_ATM( "ACT_ATM" ); +static const activity_id ACT_BUILD( "ACT_BUILD" ); +static const activity_id ACT_CLEAR_RUBBLE( "ACT_CLEAR_RUBBLE" ); +static const activity_id ACT_CRACKING( "ACT_CRACKING" ); +static const activity_id ACT_FORAGE( "ACT_FORAGE" ); +static const activity_id ACT_HACKING( "ACT_HACKING" ); +static const activity_id ACT_PICKUP( "ACT_PICKUP" ); +static const activity_id ACT_PLANT_SEED( "ACT_PLANT_SEED" ); + static const trap_str_id tr_unfinished_construction( "tr_unfinished_construction" ); static const skill_id skill_computer( "computer" ); diff --git a/src/iuse.cpp b/src/iuse.cpp index 74ae044d48adf..9ae8b65c3793d 100644 --- a/src/iuse.cpp +++ b/src/iuse.cpp @@ -102,6 +102,34 @@ #include "teleport.h" #include "cata_string_consts.h" +static const activity_id ACT_BURROW( "ACT_BURROW" ); +static const activity_id ACT_CHOP_LOGS( "ACT_CHOP_LOGS" ); +static const activity_id ACT_CHOP_PLANKS( "ACT_CHOP_PLANKS" ); +static const activity_id ACT_CHOP_TREE( "ACT_CHOP_TREE" ); +static const activity_id ACT_CHURN( "ACT_CHURN" ); +static const activity_id ACT_CLEAR_RUBBLE( "ACT_CLEAR_RUBBLE" ); +static const activity_id ACT_CRAFT( "ACT_CRAFT" ); +static const activity_id ACT_DIG( "ACT_DIG" ); +static const activity_id ACT_DIG_CHANNEL( "ACT_DIG_CHANNEL" ); +static const activity_id ACT_FILL_PIT( "ACT_FILL_PIT" ); +static const activity_id ACT_FISH( "ACT_FISH" ); +static const activity_id ACT_GAME( "ACT_GAME" ); +static const activity_id ACT_GENERIC_GAME( "ACT_GENERIC_GAME" ); +static const activity_id ACT_HACKSAW( "ACT_HACKSAW" ); +static const activity_id ACT_HAIRCUT( "ACT_HAIRCUT" ); +static const activity_id ACT_HAND_CRANK( "ACT_HAND_CRANK" ); +static const activity_id ACT_HEATING( "ACT_HEATING" ); +static const activity_id ACT_JACKHAMMER( "ACT_JACKHAMMER" ); +static const activity_id ACT_MEDITATE( "ACT_MEDITATE" ); +static const activity_id ACT_MIND_SPLICER( "ACT_MIND_SPLICER" ); +static const activity_id ACT_OXYTORCH( "ACT_OXYTORCH" ); +static const activity_id ACT_PICKAXE( "ACT_PICKAXE" ); +static const activity_id ACT_PRY_NAILS( "ACT_PRY_NAILS" ); +static const activity_id ACT_ROBOT_CONTROL( "ACT_ROBOT_CONTROL" ); +static const activity_id ACT_SHAVE( "ACT_SHAVE" ); +static const activity_id ACT_VIBE( "ACT_VIBE" ); +static const activity_id ACT_WASH( "ACT_WASH" ); + static const skill_id skill_computer( "computer" ); static const skill_id skill_cooking( "cooking" ); static const skill_id skill_electronics( "electronics" ); diff --git a/src/iuse_actor.cpp b/src/iuse_actor.cpp index de7f51cffadde..1c2d7a501817a 100644 --- a/src/iuse_actor.cpp +++ b/src/iuse_actor.cpp @@ -77,6 +77,14 @@ #include "clothing_mod.h" #include "cata_string_consts.h" +static const activity_id ACT_FIRSTAID( "ACT_FIRSTAID" ); +static const activity_id ACT_MAKE_ZLAVE( "ACT_MAKE_ZLAVE" ); +static const activity_id ACT_RELOAD( "ACT_RELOAD" ); +static const activity_id ACT_REPAIR_ITEM( "ACT_REPAIR_ITEM" ); +static const activity_id ACT_SPELLCASTING( "ACT_SPELLCASTING" ); +static const activity_id ACT_STUDY_SPELL( "ACT_STUDY_SPELL" ); +static const activity_id ACT_START_FIRE( "ACT_START_FIRE" ); + static const fault_id fault_bionic_salvaged( "fault_bionic_salvaged" ); static const bionic_id bio_syringe( "bio_syringe" ); diff --git a/src/monattack.cpp b/src/monattack.cpp index 8cb4fb09bb850..353ff8496d5b0 100644 --- a/src/monattack.cpp +++ b/src/monattack.cpp @@ -74,6 +74,8 @@ #include "units.h" #include "cata_string_consts.h" +static const activity_id ACT_RELOAD( "ACT_RELOAD" ); + static const skill_id skill_gun( "gun" ); static const skill_id skill_launcher( "launcher" ); static const skill_id skill_melee( "melee" ); diff --git a/src/monexamine.cpp b/src/monexamine.cpp index b66d291f7e740..5a986dd073529 100644 --- a/src/monexamine.cpp +++ b/src/monexamine.cpp @@ -38,6 +38,9 @@ #include "point.h" #include "cata_string_consts.h" +static const activity_id ACT_MILK( "ACT_MILK" ); +static const activity_id ACT_PLAY_WITH_PET( "ACT_PLAY_WITH_PET" ); + static const skill_id skill_survival( "survival" ); static const species_id ZOMBIE( "ZOMBIE" ); diff --git a/src/mutation.cpp b/src/mutation.cpp index be6c9f4be32f9..40fe47e63a8d0 100644 --- a/src/mutation.cpp +++ b/src/mutation.cpp @@ -28,6 +28,8 @@ #include "bionics.h" #include "cata_string_consts.h" +static const activity_id ACT_TREE_COMMUNION( "ACT_TREE_COMMUNION" ); + namespace io { diff --git a/src/npc.cpp b/src/npc.cpp index 9257c301088b6..49b3333098f0c 100644 --- a/src/npc.cpp +++ b/src/npc.cpp @@ -65,6 +65,8 @@ #include "stomach.h" #include "cata_string_consts.h" +static const activity_id ACT_READ( "ACT_READ" ); + static const skill_id skill_archery( "archery" ); static const skill_id skill_barter( "barter" ); static const skill_id skill_bashing( "bashing" ); diff --git a/src/npcmove.cpp b/src/npcmove.cpp index 276cfb511e5d1..901c4240e727a 100644 --- a/src/npcmove.cpp +++ b/src/npcmove.cpp @@ -63,6 +63,8 @@ #include "stomach.h" #include "cata_string_consts.h" +static const activity_id ACT_PULP( "ACT_PULP" ); + static const ammotype ammo_reactor_slurry( "reactor_slurry" ); static const ammotype ammo_plutonium( "plutonium" ); diff --git a/src/npctalk.cpp b/src/npctalk.cpp index 5af7267617ae3..a3a6a4d9b5d96 100644 --- a/src/npctalk.cpp +++ b/src/npctalk.cpp @@ -74,6 +74,11 @@ #include "point.h" #include "cata_string_consts.h" +static const activity_id ACT_AIM( "ACT_AIM" ); +static const activity_id ACT_SOCIALIZE( "ACT_SOCIALIZE" ); +static const activity_id ACT_TRAIN( "ACT_TRAIN" ); +static const activity_id ACT_WAIT_NPC( "ACT_WAIT_NPC" ); + static const itype_id fuel_type_animal( "animal" ); static const zone_type_id zone_type_npc_investigate_only( "NPC_INVESTIGATE_ONLY" ); diff --git a/src/npctalk_funcs.cpp b/src/npctalk_funcs.cpp index 9c857e56f54bb..d59cc247fa597 100644 --- a/src/npctalk_funcs.cpp +++ b/src/npctalk_funcs.cpp @@ -50,6 +50,20 @@ #include "point.h" #include "cata_string_consts.h" +static const activity_id ACT_FIND_MOUNT( "ACT_FIND_MOUNT" ); +static const activity_id ACT_MOVE_LOOT( "ACT_MOVE_LOOT" ); +static const activity_id ACT_MULTIPLE_BUTCHER( "ACT_MULTIPLE_BUTCHER" ); +static const activity_id ACT_MULTIPLE_CHOP_PLANKS( "ACT_MULTIPLE_CHOP_PLANKS" ); +static const activity_id ACT_MULTIPLE_CHOP_TREES( "ACT_MULTIPLE_CHOP_TREES" ); +static const activity_id ACT_MULTIPLE_CONSTRUCTION( "ACT_MULTIPLE_CONSTRUCTION" ); +static const activity_id ACT_MULTIPLE_FARM( "ACT_MULTIPLE_FARM" ); +static const activity_id ACT_MULTIPLE_FISH( "ACT_MULTIPLE_FISH" ); +static const activity_id ACT_VEHICLE_DECONSTRUCTION( "ACT_VEHICLE_DECONSTRUCTION" ); +static const activity_id ACT_VEHICLE_REPAIR( "ACT_VEHICLE_REPAIR" ); +static const activity_id ACT_WAIT_NPC( "ACT_WAIT_NPC" ); +static const activity_id ACT_SOCIALIZE( "ACT_SOCIALIZE" ); +static const activity_id ACT_TRAIN( "ACT_TRAIN" ); + static const mtype_id mon_chicken( "mon_chicken" ); static const mtype_id mon_cow( "mon_cow" ); static const mtype_id mon_horse( "mon_horse" ); diff --git a/src/overmap_ui.cpp b/src/overmap_ui.cpp index 125f21dd0de84..dd318e546abad 100644 --- a/src/overmap_ui.cpp +++ b/src/overmap_ui.cpp @@ -61,6 +61,9 @@ #include "player_activity.h" #include "cata_string_consts.h" +static const activity_id ACT_AUTODRIVE( "ACT_AUTODRIVE" ); +static const activity_id ACT_TRAVELLING( "ACT_TRAVELLING" ); + static const mongroup_id GROUP_FOREST( "GROUP_FOREST" ); #if defined(__ANDROID__) diff --git a/src/player_hardcoded_effects.cpp b/src/player_hardcoded_effects.cpp index 599099ca5daaf..5922d7679c81e 100644 --- a/src/player_hardcoded_effects.cpp +++ b/src/player_hardcoded_effects.cpp @@ -39,6 +39,8 @@ #include #include +static const activity_id ACT_FIRSTAID( "ACT_FIRSTAID" ); + const vitamin_id vitamin_iron( "iron" ); static const mongroup_id GROUP_NETHER( "GROUP_NETHER" ); diff --git a/src/ranged.cpp b/src/ranged.cpp index 8713d4a81937a..6e393475d1b99 100644 --- a/src/ranged.cpp +++ b/src/ranged.cpp @@ -65,6 +65,8 @@ #include "skill.h" #include "cata_string_consts.h" +static const activity_id ACT_AIM( "ACT_AIM" ); + static const trap_str_id tr_practice_target( "tr_practice_target" ); static const fault_id fault_gun_blackpowder( "fault_gun_blackpowder" ); diff --git a/src/savegame_json.cpp b/src/savegame_json.cpp index 80bbe15850bce..00e2ca13f295a 100644 --- a/src/savegame_json.cpp +++ b/src/savegame_json.cpp @@ -99,6 +99,8 @@ struct oter_type_t; struct mutation_branch; +static const activity_id ACT_AIM( "ACT_AIM" ); + static const std::array obj_type_name = { { "OBJECT_NONE", "OBJECT_ITEM", "OBJECT_ACTOR", "OBJECT_PLAYER", "OBJECT_NPC", "OBJECT_MONSTER", "OBJECT_VEHICLE", "OBJECT_TRAP", "OBJECT_FIELD", "OBJECT_TERRAIN", "OBJECT_FURNITURE"