Skip to content

Commit

Permalink
more improve
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoonij committed Sep 22, 2024
1 parent a8069a4 commit 8d0c82b
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
4 changes: 3 additions & 1 deletion code/_onclick/other_mobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
if(atom.grab_attack(src, pulling))
changeNext_move(grab_state > GRAB_PASSIVE ? CLICK_CD_GRABBING : CLICK_CD_PULLING)
return TRUE

return FALSE

/mob/living/carbon/human/beforeAdjacentClick(atom/A, params)
Expand Down Expand Up @@ -125,6 +126,7 @@

/mob/living/simple_animal/hostile/OnUnarmedAttack(atom/atom, proximity_flag)
GiveTarget(atom)

if(target)
return AttackingTarget()

Expand All @@ -146,7 +148,7 @@
if(atom.grab_attack(src, pulling))
changeNext_move(grab_state > GRAB_PASSIVE ? CLICK_CD_GRABBING : CLICK_CD_PULLING)
return TRUE

return FALSE

/atom/proc/attack_alien(mob/living/carbon/alien/user)
Expand Down
1 change: 1 addition & 0 deletions code/modules/mob/living/simple_animal/bot/ed209bot.dm
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,7 @@
/mob/living/simple_animal/bot/ed209/OnUnarmedAttack(atom/A)
if(!on)
return

if(iscarbon(A))
var/mob/living/carbon/C = A
if(C.staminaloss < 110 || arrest_type && !baton_delayed)
Expand Down
11 changes: 7 additions & 4 deletions code/modules/mob/living/simple_animal/bot/griefsky.dm
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,15 @@
arrived.Weaken(4 SECONDS)


/mob/living/simple_animal/bot/secbot/griefsky/OnUnarmedAttack(atom/A) //like secbots its only possible with admin intervention
/mob/living/simple_animal/bot/secbot/griefsky/OnUnarmedAttack(atom/atom) //like secbots its only possible with admin intervention
if(!on)
return
if(iscarbon(A))
var/mob/living/carbon/C = A
sword_attack(C)

if(!iscarbon(atom))
return

var/mob/living/carbon/carbon = atom
sword_attack(atom)

/mob/living/simple_animal/bot/secbot/griefsky/pre_grab_attack(atom/atom, proximity_flag)
return FALSE
Expand Down
1 change: 1 addition & 0 deletions code/modules/mob/living/simple_animal/bot/honkbot.dm
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
/mob/living/simple_animal/bot/honkbot/OnUnarmedAttack(atom/A)
if(!on)
return

if(iscarbon(A))
var/mob/living/carbon/C = A
if(emagged <= 1)
Expand Down
1 change: 1 addition & 0 deletions code/modules/mob/living/simple_animal/bot/secbot.dm
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@
/mob/living/simple_animal/bot/secbot/OnUnarmedAttack(atom/A)
if(!on)
return

if(iscarbon(A))
var/mob/living/carbon/C = A
if((C.staminaloss < 110 || arrest_type) && !baton_delayed)
Expand Down
1 change: 1 addition & 0 deletions code/modules/mob/living/simple_animal/bot/syndicate.dm
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@
/mob/living/simple_animal/bot/ed209/syndicate/OnUnarmedAttack(atom/A)
if(!on)
return

shootAt(A)

/mob/living/simple_animal/bot/ed209/syndicate/pre_grab_attack(atom/atom, proximity_flag)
Expand Down

0 comments on commit 8d0c82b

Please sign in to comment.