@@ -37,10 +37,11 @@ Striking a noncultist, however, will tear their flesh."}
37
37
38
38
AddComponent (/ datum / component/ cult_ritual_item, span_cult(examine_text))
39
39
40
- / obj / item/ melee/ cultblade/ dagger/ can_block_attack( mob / living/ carbon/ human/ wielder, atom/movable / hitby, attack_type)
41
- if (attack_type == PROJECTILE_ATTACK )
42
- return FALSE
43
- return .. ()
40
+ / obj / item/ melee/ cultblade/ dagger/ get_block_chance( mob / living/ carbon/ human/ wielder, atom/movable / hitby, damage, attack_type, armor_penetration)
41
+ if (IS_CULTIST (wielder) && attack_type != PROJECTILE_ATTACK )
42
+ return .. ()
43
+
44
+ return FALSE
44
45
45
46
/ obj / item/ melee/ cultblade/ dagger/ block_feedback( mob / living/ carbon/ human/ wielder, attack_text, attack_type, do_message = TRUE , do_sound = TRUE )
46
47
if (do_message)
@@ -77,7 +78,7 @@ Striking a noncultist, however, will tear their flesh."}
77
78
. = .. ()
78
79
AddComponent (/ datum / component/ butchering, 40 , 100 )
79
80
80
- / obj / item/ melee/ cultblade/ can_block_attack ( mob / living/ carbon/ human/ wielder, atom/movable / hitby, attack_type)
81
+ / obj / item/ melee/ cultblade/ get_block_chance ( mob / living/ carbon/ human/ wielder, atom/movable / hitby, damage, attack_type, armor_penetration )
81
82
if (IS_CULTIST (wielder))
82
83
return .. ()
83
84
@@ -277,15 +278,13 @@ Striking a noncultist, however, will tear their flesh."}
277
278
holder. apply_status_effect(/ datum / status_effect/ sword_spin)
278
279
sword. spinning = TRUE
279
280
sword. block_chance = 100
280
- sword. block_angle = 180
281
281
sword. slowdown += 1.5
282
282
addtimer (CALLBACK (src , PROC_REF (stop_spinning)), 50 )
283
283
holder?. update_mob_action_buttons()
284
284
285
285
/ datum / action/ innate/ cult/ spin2win/ proc / stop_spinning()
286
286
sword. spinning = FALSE
287
287
sword. block_chance = 50
288
- sword. block_angle = 45
289
288
sword. slowdown -= 1.5
290
289
sleep (sword. spin_cooldown)
291
290
holder?. update_mob_action_buttons()
@@ -776,6 +775,8 @@ Striking a noncultist, however, will tear their flesh."}
776
775
qdel (src )
777
776
778
777
/ obj / item/ melee/ cultblade/ halberd/ get_block_chance( mob / living/ carbon/ human/ wielder, atom/movable / hitby, damage, attack_type, armor_penetration)
778
+ if (! IS_CULTIST (wielder))
779
+ return FALSE
779
780
. = .. ()
780
781
if (wielded)
781
782
. *= 2
0 commit comments