Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Vero <[email protected]>
  • Loading branch information
Red-byte3D and vero5123 committed Jun 4, 2024
1 parent a94f320 commit a8dc209
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,9 @@
isxeno(hit_target) ? SPAN_XENODANGER("We slam into an obstacle!") : SPAN_HIGHDANGER("You slam into an obstacle!"), null, 4, CHAT_TYPE_TAKING_HIT)
hit_target.apply_damage(MELEE_FORCE_TIER_2)
if (hit_target.mob_size < MOB_SIZE_BIG)
hit_target.apply_effect(0.5, WEAKEN)
hit_target.KnockDown(0.5)
else
hit_target.apply_effects(0.5, SLOW)
hit_target.Slow(0.5)
/// To reset the direction if they haven't moved since then in below callback.
var/last_dir = xeno.dir

Expand All @@ -306,7 +306,7 @@
addtimer(CALLBACK(src, PROC_REF(reset_direction), xeno, last_dir, new_dir), 0.5 SECONDS)

hit_target.apply_armoured_damage(get_xeno_damage_slash(hit_target, xeno.caste.melee_damage_upper), ARMOR_MELEE, BRUTE, "chest")
hit_target.apply_effect(0.5, SLOW)
hit_target.Slow(0.5)

hit_target.last_damage_data = create_cause_data(xeno.caste_type, xeno)
log_attack("[key_name(xeno)] attacked [key_name(hit_target)] with Tail Jab")
Expand Down

0 comments on commit a8dc209

Please sign in to comment.