click.dm
This commit is contained in:
@@ -114,7 +114,7 @@
|
||||
W.attack_self(src)
|
||||
update_inv_hands()
|
||||
return
|
||||
|
||||
|
||||
//These are always reachable.
|
||||
//User itself, current loc, and user inventory
|
||||
if(DirectAccess(A))
|
||||
@@ -125,7 +125,7 @@
|
||||
changeNext_move(CLICK_CD_MELEE)
|
||||
UnarmedAttack(A)
|
||||
return
|
||||
|
||||
|
||||
//Can't reach anything else in lockers or other weirdness
|
||||
if(!loc.AllowClick())
|
||||
return
|
||||
@@ -325,9 +325,11 @@
|
||||
|
||||
/mob/living/carbon/human/CtrlClick(mob/user)
|
||||
if(ishuman(user) && Adjacent(user))
|
||||
if(world.time < user.next_move)
|
||||
return FALSE
|
||||
var/mob/living/carbon/human/H = user
|
||||
H.dna.species.grab(H, src, H.martial_art)
|
||||
H.next_click = world.time + CLICK_CD_MELEE
|
||||
H.changeNext_move(CLICK_CD_MELEE)
|
||||
else
|
||||
..()
|
||||
/*
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
diff a/code/_onclick/click.dm b/code/_onclick/click.dm (rejected hunks)
|
||||
@@ -324,9 +324,9 @@
|
||||
ML.pulled(src)
|
||||
|
||||
/mob/living/carbon/human/CtrlClick(mob/user)
|
||||
- if(world.time < user.next_move)
|
||||
- return FALSE
|
||||
if(ishuman(user) && Adjacent(user))
|
||||
+ if(world.time < user.next_move)
|
||||
+ return FALSE
|
||||
var/mob/living/carbon/human/H = user
|
||||
H.dna.species.grab(H, src, H.martial_art)
|
||||
H.changeNext_move(CLICK_CD_MELEE)
|
||||
Reference in New Issue
Block a user