Skip to content
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.

Commit

Permalink
Mobs can attack windows
Browse files Browse the repository at this point in the history
fixes
  • Loading branch information
CakeQ authored and comma committed Jul 22, 2018
1 parent 32a6590 commit 52f77b0
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 2 deletions.
1 change: 1 addition & 0 deletions code/modules/mob/living/simple_animal/crow/crow.dm
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
response_harm = "swats"
stop_automated_movement = TRUE
universal_speak = TRUE
pass_flags = PASS_FLAG_TABLE

var/obj/item/weapon/storage/messenger/messenger_bag
var/obj/item/weapon/card/id/access_card
Expand Down
1 change: 1 addition & 0 deletions code/modules/mob/living/simple_animal/friendly/cat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
holder_type = /obj/item/weapon/holder/cat
mob_size = MOB_SMALL
possession_candidate = 1
pass_flags = PASS_FLAG_TABLE

/mob/living/simple_animal/cat/Life()
if(!..() || incapacitated() || client)
Expand Down
1 change: 1 addition & 0 deletions code/modules/mob/living/simple_animal/friendly/corgi.dm
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
holder_type = /obj/item/weapon/holder/corgi
var/obj/item/inventory_head
var/obj/item/inventory_back
pass_flags = PASS_FLAG_TABLE

//IAN! SQUEEEEEEEEE~
/mob/living/simple_animal/corgi/Ian
Expand Down
1 change: 1 addition & 0 deletions code/modules/mob/living/simple_animal/friendly/crab.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
var/obj/item/inventory_mask
possession_candidate = 1
can_escape = 1 //snip snip
pass_flags = PASS_FLAG_TABLE

/mob/living/simple_animal/crab/Life()
..()
Expand Down
3 changes: 2 additions & 1 deletion code/modules/mob/living/simple_animal/friendly/lizard.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
response_harm = "stomps on"
mob_size = MOB_MINISCULE
possession_candidate = 1
can_escape = 1
can_escape = 1
pass_flags = PASS_FLAG_TABLE
1 change: 1 addition & 0 deletions code/modules/mob/living/simple_animal/friendly/mushroom.dm
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
var/harvest_time
var/min_explode_time = 1200
var/global/total_mushrooms = 0
pass_flags = PASS_FLAG_TABLE

/mob/living/simple_animal/mushroom/New()
..()
Expand Down
1 change: 1 addition & 0 deletions code/modules/mob/living/simple_animal/friendly/slime.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
response_harm = "stomps on"
emote_see = list("jiggles", "bounces in place")
var/colour = "grey"
pass_flags = PASS_FLAG_TABLE

/mob/living/simple_animal/slime/can_force_feed(var/feeder, var/food, var/feedback)
if(feedback)
Expand Down
2 changes: 2 additions & 0 deletions code/modules/mob/living/simple_animal/friendly/spiderbot.dm
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
pass_flags = PASS_FLAG_TABLE
speak_emote = list("beeps","clicks","chirps")

pass_flags = PASS_FLAG_TABLE

/mob/living/simple_animal/spiderbot/New()
..()
add_language(LANGUAGE_GALCOM)
Expand Down
3 changes: 2 additions & 1 deletion code/modules/mob/living/simple_animal/friendly/tomato.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@
harm_intent_damage = 5
melee_damage_upper = 15
melee_damage_lower = 10
attacktext = "mauled"
attacktext = "mauled"
pass_flags = PASS_FLAG_TABLE
2 changes: 2 additions & 0 deletions code/modules/mob/living/simple_animal/hostile/carp.dm
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@

faction = "carp"

pass_flags = PASS_FLAG_TABLE

/mob/living/simple_animal/hostile/carp/Allow_Spacemove(var/check_drift = 0)
return 1 //No drifting in space for space carp! //original comments do not steal

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
speed = 3
max_gas = list("phoron" = 1, "carbon_dioxide" = 5, "methyl_bromide" = 1)
mob_size = MOB_LARGE
pass_flags = PASS_FLAG_TABLE

//nursemaids - these create webs and eggs
/mob/living/simple_animal/hostile/giant_spider/nurse
Expand Down
10 changes: 10 additions & 0 deletions code/modules/mob/living/simple_animal/hostile/hostile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -234,3 +234,13 @@
var/obj/structure/obstacle = locate(/obj/structure, get_step(src, dir))
if(istype(obstacle, /obj/structure/window) || istype(obstacle, /obj/structure/closet) || istype(obstacle, /obj/structure/table) || istype(obstacle, /obj/structure/grille))
obstacle.attack_generic(src,rand(melee_damage_lower,melee_damage_upper),attacktext)
return
if(istype(obstacle, /obj/structure/wall_frame))
var/turf/T = get_turf(obstacle)
var/obj/structure/struct = locate(/obj/structure/window) in T
if(!struct)
struct = locate(/obj/structure/grille) in T
if(struct)
struct.attack_generic(src,rand(melee_damage_lower,melee_damage_upper),attacktext)
return
obstacle.attack_generic(src,rand(melee_damage_lower,melee_damage_upper),attacktext)
1 change: 1 addition & 0 deletions code/modules/mob/living/simple_animal/hostile/mimic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ var/global/list/protected_objects = list(/obj/machinery,
var/weakref/creator // the creator
var/destroy_objects = 0
var/knockdown_people = 0
pass_flags = PASS_FLAG_TABLE

/mob/living/simple_animal/hostile/mimic/New(newloc, var/obj/o, var/mob/living/creator)
..()
Expand Down
1 change: 1 addition & 0 deletions code/modules/mob/living/simple_animal/hostile/vagrant.dm
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
var/mob/living/carbon/human/gripping = null
var/blood_per_tick = 4.25
var/health_per_tick = 0.8
pass_flags = PASS_FLAG_TABLE

/mob/living/simple_animal/hostile/vagrant/Initialize()
. = ..()
Expand Down

0 comments on commit 52f77b0

Please sign in to comment.