Adds missing TK move cooldowns, adjusts click move cooldowns

This commit is contained in:
mwerezak
2015-08-21 23:21:54 -04:00
parent 4396e5a5bc
commit d44e8cc0ab
2 changed files with 6 additions and 12 deletions

View File

@@ -106,9 +106,7 @@
var/sdepth = A.storage_depth(src) var/sdepth = A.storage_depth(src)
if((!isturf(A) && A == loc) || (sdepth != -1 && sdepth <= 1)) if((!isturf(A) && A == loc) || (sdepth != -1 && sdepth <= 1))
// faster access to objects already on you // faster access to objects already on you
if(A in contents) if(A.loc != src)
setMoveCooldown(5) //taking an item off of an inventory slot
else
setMoveCooldown(10) //getting something out of a backpack setMoveCooldown(10) //getting something out of a backpack
if(W) if(W)
@@ -129,7 +127,7 @@
sdepth = A.storage_depth_turf() sdepth = A.storage_depth_turf()
if(isturf(A) || isturf(A.loc) || (sdepth != -1 && sdepth <= 1)) if(isturf(A) || isturf(A.loc) || (sdepth != -1 && sdepth <= 1))
if(A.Adjacent(src)) // see adjacent.dm if(A.Adjacent(src)) // see adjacent.dm
setMoveCooldown(10) setMoveCooldown(5)
if(W) if(W)
// Return 1 in attackby() to prevent afterattack() effects (when safely moving items for example) // Return 1 in attackby() to prevent afterattack() effects (when safely moving items for example)

View File

@@ -111,16 +111,12 @@ var/const/tk_maxrange = 15
if(0) if(0)
; ;
if(1 to 5) // not adjacent may mean blocked by window if(1 to 5) // not adjacent may mean blocked by window
; if(!proximity)
//TODO replace these with movement timeouts user.setMoveCooldown(2)
//if(!proximity)
// user.next_move += 2
if(5 to 7) if(5 to 7)
; user.setMoveCooldown(5)
//user.next_move += 5
if(8 to tk_maxrange) if(8 to tk_maxrange)
; user.setMoveCooldown(10)
//user.next_move += 10
else else
user << "<span class='notice'>Your mind won't reach that far.</span>" user << "<span class='notice'>Your mind won't reach that far.</span>"
return return