Skip to content

Commit 7dd3300

Browse files
Moving birds into their own modpack.
1 parent 62c031d commit 7dd3300

File tree

26 files changed

+171
-115
lines changed

26 files changed

+171
-115
lines changed

code/datums/ai/hunter.dm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
prey.gib()
3333
else
3434
qdel(prey)
35+
set_target(null)
36+
resume_wandering()
3537

3638
/datum/mob_controller/passive/hunter/get_target(atom/new_target)
3739
if(isnull(hunt_target))
@@ -81,10 +83,8 @@
8183
if(prey.stat != DEAD)
8284
return
8385
// Eat the mob.
84-
set_target(null)
85-
resume_wandering()
8686
consume_prey(prey)
8787

8888
// Stub for hawks to return to their handler and dock with the mothership.
89-
/datum/mob_controller/passive/hunter/proc/handle_friend_hunting(mob/friend)
89+
/datum/mob_controller/passive/hunter/proc/handle_friend_hunting(mob/user)
9090
return FALSE

code/datums/storage/subtypes_backpack.dm

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,3 @@
2525
max_w_class = ITEM_SIZE_NORMAL
2626
max_storage_space = 15
2727
cant_hold = list(/obj/item/backpack/satchel/flat) //muh recursive backpacks
28-
29-
/datum/storage/backpack/crow
30-
storage_slots = 7
31-
max_w_class = ITEM_SIZE_SMALL

code/modules/clothing/shirts/_shirts.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/obj/item/clothing/shirt
2+
name = "shirt"
23
abstract_type = /obj/item/clothing/shirt
34
body_parts_covered = SLOT_UPPER_BODY|SLOT_ARMS
45
permeability_coefficient = 0.90

code/modules/mob/living/simple_animal/crow/crow.dm

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/datum/storage/backpack/crow
2+
storage_slots = 7
3+
max_w_class = ITEM_SIZE_SMALL
4+
15
/obj/item/backpack/messenger/corvid_couriers
26
name = "corvid messenger bag"
37
desc = "A small green-grey messenger bag with a blue Corvid Couriers logo on it."
@@ -7,6 +11,7 @@
711
storage = /datum/storage/backpack/crow
812
material = /decl/material/solid/organic/cloth
913

14+
// TODO: Merge with /mob/living/simple_animal/passive/bird/crow
1015
/mob/living/simple_animal/crow
1116
name = "crow"
1217
desc = "A large crow. Caw caw."
@@ -15,7 +20,7 @@
1520
mob_size = MOB_SIZE_SMALL
1621
speak_emote = list("caws")
1722
ai = /datum/mob_controller/crow
18-
natural_weapon = /obj/item/natural_weapon/crow_claws
23+
natural_weapon = /obj/item/natural_weapon/bird_claws
1924
universal_speak = TRUE
2025

2126
/datum/mob_controller/crow
@@ -34,7 +39,7 @@
3439
/mob/living/simple_animal/crow/get_bodytype()
3540
return GET_DECL(/decl/bodytype/animal/crow)
3641

37-
/obj/item/natural_weapon/crow_claws
42+
/obj/item/natural_weapon/bird_claws
3843
name = "claws"
3944
gender = PLURAL
4045
attack_verb = "clawed"

code/modules/mob/living/simple_animal/friendly/cat.dm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
/datum/mob_controller/passive/hunter/cat/consume_prey(mob/living/prey)
1616
next_hunt = world.time + rand(1 SECONDS, 10 SECONDS)
17+
set_target(null)
18+
resume_wandering()
1719

1820
/datum/mob_controller/passive/hunter/cat/can_hunt(mob/living/victim)
1921
return istype(victim, /mob/living/simple_animal/passive/mouse) && !victim.stat

code/modules/mob_holder/_holder.dm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
AM.vis_flags |= (VIS_INHERIT_ID|VIS_INHERIT_LAYER|VIS_INHERIT_PLANE)
2525
add_vis_contents(AM)
2626

27+
/obj/item/holder/examined_by(mob/user, distance, infix, suffix)
28+
for(var/atom/thing in get_contained_external_atoms())
29+
thing.examined_by(user, distance, infix, suffix)
30+
return TRUE
31+
2732
// No scooping mobs and handing them to people who can't scoop them.
2833
/obj/item/holder/equipped(mob/user, slot)
2934
. = ..()

code/modules/mob_holder/holder_mobs.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
var/obj/item/holder/H = new holder_type(get_turf(src))
2323
H.w_class = get_object_size()
2424
if(initiator == src)
25-
if(!target.equip_to_slot_if_possible(H, slot_back_str, del_on_fail=0, disable_warning=1))
25+
if(!target.equip_to_slot_if_possible(H, slot_back_str, del_on_fail=0, disable_warning=1) && !target.put_in_hands(H))
2626
if(!silent)
2727
to_chat(initiator, SPAN_WARNING("You can't climb onto [target]!"))
2828
return FALSE

maps/karzerfeste/karzerfeste.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "../../mods/content/mouse_highlights/_mouse_highlight.dme"
66
#include "../../mods/content/scaling_descriptors.dm"
77
#include "../../mods/species/drakes/_drakes.dme" // include before _fantasy.dme so overrides work
8+
#include "../../mods/content/birds/_birds.dme"
89
#include "../../mods/content/fantasy/_fantasy.dme"
910
#include "../../mods/pyrelight/_pyrelight.dme" // include after _fantasy.dme so overrides work
1011

mods/content/birds/_birds.dm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/decl/modpack/birds
2+
name = "Birds"

mods/content/birds/_birds.dme

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#ifndef MODPACK_BIRDS
2+
#define MODPACK_BIRDS
3+
// BEGIN_INCLUDE
4+
#include "_birds.dm"
5+
#include "bird.dm"
6+
#include "bird_crow.dm"
7+
#include "bird_hawk.dm"
8+
#include "bird_pigeon.dm"
9+
#include "hutch.dm"
10+
// END_INCLUDE
11+
#endif

0 commit comments

Comments
 (0)