mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Small mobs can no longer pin larger mobs
This commit is contained in:
@@ -136,7 +136,7 @@
|
||||
handle_eye_mouth_covering(affecting, assailant, assailant.zone_sel.selecting)
|
||||
|
||||
if(force_down)
|
||||
if(affecting.loc != assailant.loc)
|
||||
if(affecting.loc != assailant.loc || size_difference(affecting, assailant) > 0)
|
||||
force_down = 0
|
||||
else
|
||||
affecting.Weaken(2)
|
||||
@@ -237,7 +237,7 @@
|
||||
if(state < GRAB_AGGRESSIVE)
|
||||
if(!allow_upgrade)
|
||||
return
|
||||
if(!affecting.lying)
|
||||
if(!affecting.lying || size_difference(affecting, assailant) > 0)
|
||||
assailant.visible_message("<span class='warning'>[assailant] has grabbed [affecting] aggressively (now hands)!</span>")
|
||||
else
|
||||
assailant.visible_message("<span class='warning'>[assailant] pins [affecting] down to the ground (now hands)!</span>")
|
||||
|
||||
@@ -131,6 +131,10 @@
|
||||
return
|
||||
if(force_down)
|
||||
attacker << "<span class='warning'>You are already pinning [target] to the ground.</span>"
|
||||
return
|
||||
if(size_difference(affecting, assailant) > 0)
|
||||
attacker << "<span class='warning'>You are too small to do that!</span>"
|
||||
return
|
||||
|
||||
attacker.visible_message("<span class='danger'>[attacker] starts forcing [target] to the ground!</span>")
|
||||
if(do_after(attacker, 20) && target)
|
||||
|
||||
Reference in New Issue
Block a user