adjustment

This commit is contained in:
kevinz000
2020-05-27 00:33:09 -07:00
parent 1c064e9b5a
commit 52ea19da84
2 changed files with 7 additions and 1 deletions

View File

@@ -26,6 +26,7 @@
/datum/block_parry_data/shield
block_stamina_efficiency = 1.5
block_stamina_cost_per_second = 3
block_start_delay = 3
/obj/item/shield/examine(mob/user)
. = ..()

View File

@@ -5,9 +5,14 @@
clear_typing_indicator()
update_pixel_shifting(TRUE)
/mob/living/setDir(newdir, ismousemovement)
. = ..()
if(ismousemovement)
update_pixel_shifting()
/mob/living/proc/update_pixel_shifting(moved = FALSE)
if(active_blocking)
animate(src, pixel_x = get_standard_pixel_x_offset(), pixel_y = get_standard_pixel_y_offset(), time = 1.5, flags = ANIMATION_END_NOW)
animate(src, pixel_x = get_standard_pixel_x_offset(), pixel_y = get_standard_pixel_y_offset(), time = 2.5, flags = ANIMATION_END_NOW)
else if(moved)
if(is_shifted)
is_shifted = FALSE