Skip to content

Commit

Permalink
Cats reforged (literally refractor of mobs, ai and some minor quality…
Browse files Browse the repository at this point in the history
… of life shit.
  • Loading branch information
Syndicat-Meow committed Dec 26, 2024
1 parent e02822d commit 273d2a0
Show file tree
Hide file tree
Showing 244 changed files with 3,544 additions and 1,589 deletions.
2 changes: 1 addition & 1 deletion _maps/RandomRuins/SpaceRuins/derelict_sulaco.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@
/turf/open/floor/carpet,
/area/ruin/space/has_grav/derelictsulaco)
"BQ" = (
/mob/living/simple_animal/pet/cat{
/mob/living/basic/pet/cat{
name = "Jonesy";
desc = "Old and grumpy cat- wait, how the hell is he still alive?!"
},
Expand Down
2 changes: 1 addition & 1 deletion _maps/RandomRuins/SpaceRuins/mrow_thats_right.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
/obj/structure/bed/dogbed{
name = "kitty bed"
},
/mob/living/simple_animal/pet/cat/space,
/mob/living/basic/pet/cat/space,
/turf/open/floor/carpet,
/area/ruin/space/has_grav/powered/cat_man)
"aS" = (
Expand Down
4 changes: 2 additions & 2 deletions _maps/map_files/Deltastation/DeltaStation2.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -72656,7 +72656,7 @@
dir = 1
},
/obj/item/radio/intercom/directional/south,
/mob/living/simple_animal/pet/cat/runtime,
/mob/living/basic/pet/cat/runtime,
/turf/open/floor/iron,
/area/station/command/heads_quarters/cmo)
"rlC" = (
Expand Down Expand Up @@ -77673,7 +77673,7 @@
/turf/open/floor/plating,
/area/station/maintenance/port/aft)
"sxb" = (
/mob/living/simple_animal/pet/cat{
/mob/living/basic/pet/cat{
name = "Kattail"
},
/obj/structure/cable,
Expand Down
2 changes: 1 addition & 1 deletion _maps/map_files/IceBoxStation/IceBoxStation.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -70144,7 +70144,7 @@
/obj/structure/bed/dogbed/runtime,
/obj/item/toy/cattoy,
/obj/machinery/newscaster/directional/north,
/mob/living/simple_animal/pet/cat/runtime,
/mob/living/basic/pet/cat/runtime,
/turf/open/floor/iron/dark,
/area/station/command/heads_quarters/cmo)
"wwo" = (
Expand Down
2 changes: 1 addition & 1 deletion _maps/map_files/MetaStation/MetaStation.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -26162,7 +26162,7 @@
},
/obj/structure/bed/dogbed/runtime,
/obj/item/toy/cattoy,
/mob/living/simple_animal/pet/cat/runtime,
/mob/living/basic/pet/cat/runtime,
/turf/open/floor/iron/white,
/area/station/command/heads_quarters/cmo)
"jgt" = (
Expand Down
2 changes: 1 addition & 1 deletion _maps/map_files/NorthStar/north_star.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -17862,7 +17862,7 @@
dir = 4
},
/obj/structure/bed/dogbed/runtime,
/mob/living/simple_animal/pet/cat/runtime,
/mob/living/basic/pet/cat/runtime,
/turf/open/floor/carpet/royalblue,
/area/station/command/heads_quarters/cmo)
"eHD" = (
Expand Down
4 changes: 2 additions & 2 deletions _maps/map_files/generic/CentCom.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -21452,7 +21452,7 @@
/turf/open/floor/iron/dark/herringbone,
/area/centcom/central_command_areas/evacuation)
"grU" = (
/mob/living/simple_animal/pet/cat/kitten{
/mob/living/basic/pet/cat/kitten{
name = "Kbity :3";
desc = "D'aaawwww. Fortune's best friend"
},
Expand Down Expand Up @@ -26383,7 +26383,7 @@
/turf/open/floor/iron/dark,
/area/centcom/central_command_areas/medical)
"twW" = (
/mob/living/simple_animal/pet/cat/cak{
/mob/living/basic/pet/cat/cak{
name = "Truffle";
desc = "She is a cat made out of cake. How the hell did this thing end up alive, much less here?!"
},
Expand Down
4 changes: 2 additions & 2 deletions _maps/map_files/tramstation/tramstation.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -5808,7 +5808,7 @@
/obj/structure/bed/dogbed/runtime,
/obj/machinery/light/directional/north,
/obj/structure/sign/clock/directional/north,
/mob/living/simple_animal/pet/cat/runtime,
/mob/living/basic/pet/cat/runtime,
/turf/open/floor/iron/dark,
/area/station/command/heads_quarters/cmo)
"aOF" = (
Expand Down Expand Up @@ -36246,7 +36246,7 @@
desc = "A comfy-looking cat bed. You can even strap your pet in, in case the gravity turns off.";
name = "cat bed"
},
/mob/living/simple_animal/pet/cat/jerry,
/mob/living/basic/pet/cat/jerry,
/turf/open/floor/iron,
/area/station/maintenance/tram/mid)
"kxX" = (
Expand Down
2 changes: 1 addition & 1 deletion _maps/shuttles/emergency_hugcage.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
/turf/open/floor/mineral/titanium/blue,
/area/shuttle/escape)
"Hf" = (
/mob/living/simple_animal/pet/cat/kitten,
/mob/living/basic/pet/cat/kitten,
/turf/open/floor/mineral/titanium/blue,
/area/shuttle/escape)
"IH" = (
Expand Down
2 changes: 1 addition & 1 deletion _maps/virtual_domains/pipedream.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -1644,7 +1644,7 @@
/turf/open/floor/plating,
/area/virtual_domain/powered)
"Ym" = (
/mob/living/simple_animal/pet/cat/space,
/mob/living/basic/pet/cat/space,
/obj/structure/bed/dogbed{
name = "cat bed"
},
Expand Down
10 changes: 10 additions & 0 deletions code/__DEFINES/ai/ai.dm
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@
///Flags for ai_behavior new()
#define AI_CONTROLLER_INCOMPATIBLE (1<<0)

//Return flags for ai_behavior/perform()
///Update this behavior's cooldown
#define AI_BEHAVIOR_DELAY (1<<0)
///Finish the behavior successfully
#define AI_BEHAVIOR_SUCCEEDED (1<<1)
///Finish the behavior unsuccessfully
#define AI_BEHAVIOR_FAILED (1<<1)

#define AI_BEHAVIOR_INSTANT (NONE)

///Does this task require movement from the AI before it can be performed?
#define AI_BEHAVIOR_REQUIRE_MOVEMENT (1<<0)
///Does this require the current_movement_target to be adjacent and in reach?
Expand Down
12 changes: 12 additions & 0 deletions code/__DEFINES/ai/ai_blackboard.dm
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,18 @@
///list of foods this mob likes
#define BB_BASIC_FOODS "BB_basic_foods"

///key holding any food we've found
#define BB_TARGET_FOOD "BB_TARGET_FOOD"

///key holding emotes we play after eating
#define BB_EAT_EMOTES "BB_eat_emotes"

///key holding the next time we eat
#define BB_NEXT_FOOD_EAT "BB_next_food_eat"

///key holding our eating cooldown
#define BB_EAT_FOOD_COOLDOWN "BB_eat_food_cooldown"

/// Blackboard key for a held item
#define BB_SIMPLE_CARRY_ITEM "BB_SIMPLE_CARRY_ITEM"

Expand Down
4 changes: 4 additions & 0 deletions code/__DEFINES/ai/bot_keys.dm
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
#define BB_NEAR_DEATH_SPEECH "near_death_speech"
///in crit patient we must alert medbay about
#define BB_PATIENT_IN_CRIT "patient_in_crit"
///how much time interval before we clear list
#define BB_UNREACHABLE_LIST_COOLDOWN "unreachable_list_cooldown"
///can we clear the list now
#define BB_CLEAR_LIST_READY "clear_list_ready"

// cleanbots
///key that holds the foaming ability
Expand Down
1 change: 1 addition & 0 deletions code/__DEFINES/ai/monkey.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
#define BB_MONKEY_TARGET_MONKEYS "BB_monkey_target_monkeys"
#define BB_MONKEY_DISPOSING "BB_monkey_disposing"
#define BB_MONKEY_RECRUIT_COOLDOWN "BB_monkey_recruit_cooldown"
#define BB_RESISTING "BB_resisting"
46 changes: 46 additions & 0 deletions code/__DEFINES/ai/monsters.dm
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@
#define BB_MINEBOT_DUMP_ABILITY "minebot_dump_ability"
/// key that stores our target turf
#define BB_TARGET_MINERAL_TURF "target_mineral_turf"
///key that holds our missile ability
#define BB_MINEBOT_MISSILE_ABILITY "minebot_missile_ability"
///key that holds our landmine ability
#define BB_MINEBOT_LANDMINE_ABILITY "minebot_landmine_ability"
/// key that stores list of the turfs we ignore
#define BB_BLACKLIST_MINERAL_TURFS "blacklist_mineral_turfs"
/// key that stores the previous blocked wall
Expand All @@ -130,6 +134,20 @@
#define BB_AUTOMATED_MINING "automated_mining"
/// key that stores the nearest dead human
#define BB_NEARBY_DEAD_MINER "nearby_dead_miner"
///key that holds the drone we defend
#define BB_DRONE_DEFEND "defend_drone"
///key that holds the minimum distance before we flee
#define BB_MINIMUM_SHOOTING_DISTANCE "minimum_shooting_distance"
///key that holds the miner we must befriend
#define BB_MINER_FRIEND "miner_friend"
///key that holds the missile target
#define BB_MINEBOT_MISSILE_TARGET "minebot_missile_target"
///should we auto protect?
#define BB_MINEBOT_AUTO_DEFEND "minebot_auto_defend"
///should we repair drones?
#define BB_MINEBOT_REPAIR_DRONE "minebot_repair_drone"
///should we plant mines?
#define BB_MINEBOT_PLANT_MINES "minebot_plant_mines"

//seedling keys
/// the water can we will pick up
Expand Down Expand Up @@ -217,3 +235,31 @@
#define BB_WIZARD_BLINK_SPELL "BB_wizard_blink_spell"
/// Key for the next time we can cast a spell
#define BB_WIZARD_SPELL_COOLDOWN "BB_wizard_spell_cooldown"

//cat AI keys
/// key that holds the target we will battle over our turf
#define BB_TRESSPASSER_TARGET "tresspasser_target"
/// key that holds angry meows
#define BB_HOSTILE_MEOWS "hostile_meows"
/// key that holds the mouse target
#define BB_MOUSE_TARGET "mouse_target"
/// key that holds our dinner target
#define BB_CAT_FOOD_TARGET "cat_food_target"
/// key that holds the food we must deliver
#define BB_FOOD_TO_DELIVER "food_to_deliver"
/// key that holds things we can hunt
#define BB_HUNTABLE_PREY "huntable_prey"
/// key that holds target kitten to feed
#define BB_KITTEN_TO_FEED "kitten_to_feed"
/// key that holds our hungry meows
#define BB_HUNGRY_MEOW "hungry_meows"
/// key that holds maximum distance food is to us so we can pursue it
#define BB_MAX_DISTANCE_TO_FOOD "max_distance_to_food"
/// key that holds the stove we must turn off
#define BB_STOVE_TARGET "stove_target"
/// key that holds the donut we will decorate
#define BB_DONUT_TARGET "donut_target"
/// key that holds our home...
#define BB_CAT_HOME "cat_home"
/// key that holds the human we will beg
#define BB_HUMAN_BEG_TARGET "human_beg_target"
3 changes: 3 additions & 0 deletions code/__DEFINES/ai/pet_commands.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
#define BB_PET_TARGETING_STRATEGY "BB_pet_targeting"
/// Typecache of weakrefs to mobs this mob is friends with, will follow their instructions and won't attack them
#define BB_FRIENDS_LIST "BB_friends_list"

///mothroach next meal key!
#define BB_MOTHROACH_NEXT_EAT "mothroach_next_eat"
5 changes: 4 additions & 1 deletion code/__DEFINES/ai/pets.dm
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,7 @@
#define BB_HOARD_LOCATION_RANGE "hoard_location_range"
/// key that holds items we arent interested in hoarding
#define BB_IGNORE_ITEMS "ignore_items"

///the name of our trick
#define BB_TRICK_NAME "trick_name"
///the sequence of our trick
#define BB_TRICK_SEQUENCE "trick_sequence"
6 changes: 6 additions & 0 deletions code/__DEFINES/basic_mobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
/// Above this speed we stop gliding because it looks silly
#define END_GLIDE_SPEED 10

///hunger cooldown for basic mobs
#define EAT_FOOD_COOLDOWN 45 SECONDS

///mook attack status flags
#define MOOK_ATTACK_NEUTRAL 0
#define MOOK_ATTACK_WARMUP 1
Expand All @@ -28,3 +31,6 @@

///keeps track of how many gutlunches are born
GLOBAL_VAR_INIT(gutlunch_count, 0)

///Pet customization settings saved for every client
GLOBAL_LIST_EMPTY(customized_pets)
10 changes: 10 additions & 0 deletions code/__DEFINES/dcs/signals/signals_atom/signals_atom_x_act.dm
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@
#define COMPONENT_BLOCK_TOOL_ATTACK (1<<0)
///for any rightclick tool behaviors: (mob/living/user, obj/item/I)
#define COMSIG_ATOM_SECONDARY_TOOL_ACT(tooltype) "tool_secondary_act_[tooltype]"

/// Sent from [atom/proc/ranged_item_interaction], when this atom is left-clicked on by a mob with an item while not adjacent
#define COMSIG_ATOM_RANGED_ITEM_INTERACTION "atom_ranged_item_interaction"
/// Sent from [atom/proc/ranged_item_interaction], when this atom is right-clicked on by a mob with an item while not adjacent
#define COMSIG_ATOM_RANGED_ITEM_INTERACTION_SECONDARY "atom_ranged_item_interaction_secondary"
/// Sent from [atom/proc/ranged_item_interaction], when a mob is using this item while left-clicking on by an atom while not adjacent
#define COMSIG_RANGED_ITEM_INTERACTING_WITH_ATOM "ranged_item_interacting_with_atom"
/// Sent from [atom/proc/ranged_item_interaction], when a mob is using this item while right-clicking on by an atom while not adjacent
#define COMSIG_RANGED_ITEM_INTERACTING_WITH_ATOM_SECONDARY "ranged_item_interacting_with_atom_secondary"

// We have the same returns here as COMSIG_ATOM_TOOL_ACT
// #define COMPONENT_BLOCK_TOOL_ATTACK (1<<0)
#define COMSIG_ATOM_DOOR_OPEN "atom_door_open"
2 changes: 2 additions & 0 deletions code/__DEFINES/dcs/signals/signals_fish.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#define COMSIG_FISH_LIFE "fish_life"
///From /datum/fish_trait/eat_fish: (predator)
#define COMSIG_FISH_EATEN_BY_OTHER_FISH "fish_eaten_by_other_fish"
///From /obj/item/fish/generate_reagents_to_add, which returns a holder when the fish is eaten or composted for example: (list/reagents)
#define COMSIG_GENERATE_REAGENTS_TO_ADD "generate_reagents_to_add"
///From /obj/item/fish/feed: (fed_reagents, fed_reagent_type)
#define COMSIG_FISH_FED "fish_on_fed"

Expand Down
11 changes: 10 additions & 1 deletion code/__DEFINES/dcs/signals/signals_mob/signals_mob_living.dm
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,12 @@
#define COMSIG_LIVING_WALL_EXITED "living_wall_exited"
///From base of mob/living/ZImpactDamage() (mob/living, levels, turf/t)
#define COMSIG_LIVING_Z_IMPACT "living_z_impact"
#define NO_Z_IMPACT_DAMAGE (1<<0)
/// Just for the signal return, does not run normal living handing of z fall damage for mobs
#define ZIMPACT_CANCEL_DAMAGE (1<<0)
/// Do not show default z-impact message
#define ZIMPACT_NO_MESSAGE (1<<1)
/// Do not do the spin animation when landing
#define ZIMPACT_NO_SPIN (1<<2)

/// From mob/living/try_speak(): (message, ignore_spam, forced)
#define COMSIG_LIVING_TRY_SPEECH "living_vocal_speech"
Expand Down Expand Up @@ -215,6 +220,10 @@
/// From /datum/ai/behavior/climb_tree/perform() : (mob/living/basic/living_pawn)
#define COMSIG_LIVING_CLIMB_TREE "living_climb_tree"

///from /mob/living/proc/check_block(): (atom/hit_by, damage, attack_text, attack_type, armour_penetration, damage_type)
#define COMSIG_LIVING_CHECK_BLOCK "living_check_block"
#define SUCCESSFUL_BLOCK (1<<0)

/// Sent on a mob from /datum/component/mob_chain when component is attached with it as the "front" : (mob/living/basic/tail)
#define COMSIG_MOB_GAINED_CHAIN_TAIL "living_gained_chain_tail"
/// Sent on a mob from /datum/component/mob_chain when component is detached from it as the "front" : (mob/living/basic/tail)
Expand Down
Loading

0 comments on commit 273d2a0

Please sign in to comment.