Skip to content

Commit

Permalink
1 (#36794)
Browse files Browse the repository at this point in the history
  • Loading branch information
boy2mantwicethefam authored Jul 23, 2024
1 parent 7c9c4ef commit d493bd1
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions code/modules/mob/living/carbon/carbon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
if(check_shields(0, M))
return 0
M.unarmed_attack_mob(src)
return 1

/mob/living/carbon/relaymove(var/mob/user, direction)
if(user in src.stomach_contents)
Expand Down
1 change: 1 addition & 0 deletions code/modules/mob/living/carbon/slime/slime.dm
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@

/mob/living/carbon/slime/attack_animal(mob/living/simple_animal/M)
M.unarmed_attack_mob(src)
return 1

/mob/living/carbon/slime/attack_paw(mob/living/carbon/monkey/M)
if(!(istype(M, /mob/living/carbon/monkey)))
Expand Down
3 changes: 2 additions & 1 deletion code/modules/mob/living/silicon/ai/ai.dm
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ var/static/list/ai_icon_states = list(
"Xerxes" = "ai-xerxes",
"Yes Man" = "yes-man",
)

/mob/living/silicon/ai/verb/pick_icon()
set category = "AI Commands"
set name = "Set AI Core Display"
Expand Down Expand Up @@ -579,6 +579,7 @@ var/static/list/ai_icon_states = list(

/mob/living/silicon/ai/attack_animal(mob/living/simple_animal/M as mob)
M.unarmed_attack_mob(src)
return 1

/mob/living/silicon/ai/reset_view(atom/A)
if(camera_light_on)
Expand Down
1 change: 1 addition & 0 deletions code/modules/mob/living/silicon/robot/robot.dm
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,7 @@

/mob/living/silicon/robot/attack_animal(mob/living/simple_animal/M)
M.unarmed_attack_mob(src)
return 1

/mob/living/silicon/robot/attack_hand(mob/living/user)
add_fingerprint(user)
Expand Down
1 change: 1 addition & 0 deletions code/modules/mob/living/simple_animal/constructs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@
update_icons()
else
M.unarmed_attack_mob(src)
return 1

/mob/living/simple_animal/construct/attackby(var/obj/item/O as obj, var/mob/user as mob)
user.delayNextAttack(8)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
user.forceMove(src)
src.update_icon()
else
..()
return ..()

/mob/living/simple_animal/spiderbot/proc/transfer_personality(var/obj/item/device/mmi/M as obj)
src.mind = M.brainmob.mind
Expand Down
4 changes: 2 additions & 2 deletions code/modules/mob/living/simple_animal/hostile/monster.dm
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@
/mob/living/simple_animal/hostile/monster/cyber_horror/UnarmedAttack(atom/A)
if(ismob(A))
delayNextAttack(10)
if(A.attack_animal(src)) //Returns 0 if blocked
if(A.attack_animal(src)) //Returns 0 if blocked, returns 1 if the attack went through
var/mob/living/L = A
if(L.reagents)
if(istype(L) && L.reagents)
if(prob(nanobot_chance))
visible_message("<b><span class='warning'>[src] injects something into [L]!</span>")
L.reagents.add_reagent(MEDNANOBOTS, 2)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/simple_animal/hostile/mushroom.dm
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
M.LevelUp(level_gain)
M.health = M.maxHealth
qdel(src)
return
return 1
..()

/mob/living/simple_animal/hostile/mushroom/revive(refreshbutcher = 1)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/simple_animal/parrot.dm
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@

//Simple animals
/mob/living/simple_animal/parrot/attack_animal(mob/living/simple_animal/M as mob)
..() //goodbye immortal parrots
. = ..() //goodbye immortal parrots

if(client)
return
Expand Down
1 change: 1 addition & 0 deletions code/modules/mob/living/simple_animal/simple_animal.dm
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ var/global/list/animal_count = list() //Stores types, and amount of animals of t

/mob/living/simple_animal/attack_animal(mob/living/simple_animal/M)
M.unarmed_attack_mob(src)
return 1

/mob/living/simple_animal/bullet_act(var/obj/item/projectile/Proj)
if(!Proj)
Expand Down

0 comments on commit d493bd1

Please sign in to comment.