Skip to content

Commit

Permalink
Stun tweaks (#13661)
Browse files Browse the repository at this point in the history
* stun tweaks

* reduced head chance
  • Loading branch information
Lumipharon authored Aug 2, 2023
1 parent 7244194 commit 394ead3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion code/__DEFINES/mobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@

#define STUN "stun"
#define WEAKEN "weaken"
#define PARALYZE "paralize"
#define PARALYZE "paralyze"
#define STAGGER "stagger"
#define AGONY "agony" // Added in PAIN!
#define STUTTER "stutter"
Expand Down
12 changes: 6 additions & 6 deletions code/game/objects/structures/stool_bed_chair_nest/chairs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -235,19 +235,19 @@
var/def_zone = ran_zone()
var/armor_modifier = occupant.modify_by_armor(1, MELEE, 0, def_zone)
occupant.throw_at(A, 3, propelled)
occupant.apply_effect(12 SECONDS * armor_modifier, STUN)
occupant.apply_effect(12 SECONDS * armor_modifier, WEAKEN)
occupant.apply_effect(12 SECONDS * armor_modifier, STUTTER)
occupant.apply_effect(6 SECONDS * armor_modifier, STUN)
occupant.apply_effect(6 SECONDS * armor_modifier, WEAKEN)
occupant.apply_effect(6 SECONDS * armor_modifier, STUTTER)
occupant.apply_damage(10 * armor_modifier, BRUTE, def_zone)
UPDATEHEALTH(occupant)
playsound(src.loc, 'sound/weapons/punch1.ogg', 25, 1)
if(isliving(A))
var/mob/living/victim = A
def_zone = ran_zone()
armor_modifier = victim.modify_by_armor(1, MELEE, 0, def_zone)
victim.apply_effect(12 SECONDS * armor_modifier, STUN)
victim.apply_effect(12 SECONDS * armor_modifier, WEAKEN)
victim.apply_effect(12 SECONDS * armor_modifier, STUTTER)
victim.apply_effect(6 SECONDS * armor_modifier, STUN)
victim.apply_effect(6 SECONDS * armor_modifier, WEAKEN)
victim.apply_effect(6 SECONDS * armor_modifier, STUTTER)
victim.apply_damage(10 * armor_modifier, BRUTE, def_zone)
UPDATEHEALTH(victim)
occupant.visible_message(span_danger("[occupant] crashed into \the [A]!"))
Expand Down
12 changes: 6 additions & 6 deletions code/game/objects/structures/stool_bed_chair_nest/wheelchair.dm
Original file line number Diff line number Diff line change
Expand Up @@ -107,19 +107,19 @@
var/def_zone = ran_zone()
var/armor_modifier = occupant.modify_by_armor(1, MELEE, 0, def_zone)
occupant.throw_at(A, 3, propelled)
occupant.apply_effect(12 SECONDS * armor_modifier, STUN)
occupant.apply_effect(12 SECONDS * armor_modifier, WEAKEN)
occupant.apply_effect(12 SECONDS * armor_modifier, STUTTER)
occupant.apply_effect(6 SECONDS * armor_modifier, STUN)
occupant.apply_effect(6 SECONDS * armor_modifier, WEAKEN)
occupant.apply_effect(6 SECONDS * armor_modifier, STUTTER)
occupant.apply_damage(10 * armor_modifier, BRUTE, def_zone)
UPDATEHEALTH(occupant)
playsound(src.loc, 'sound/weapons/punch1.ogg', 25, 1)
if(isliving(A))
var/mob/living/victim = A
def_zone = ran_zone()
armor_modifier = victim.modify_by_armor(1, MELEE, 0, def_zone)
victim.apply_effect(12 SECONDS * armor_modifier, STUN)
victim.apply_effect(12 SECONDS * armor_modifier, WEAKEN)
victim.apply_effect(12 SECONDS * armor_modifier, STUTTER)
victim.apply_effect(6 SECONDS * armor_modifier, STUN)
victim.apply_effect(6 SECONDS * armor_modifier, WEAKEN)
victim.apply_effect(6 SECONDS * armor_modifier, STUTTER)
victim.apply_damage(10 * armor_modifier, BRUTE, def_zone)
UPDATEHEALTH(victim)
occupant.visible_message(span_danger("[occupant] crashed into \the [A]!"))
Expand Down
6 changes: 3 additions & 3 deletions code/modules/mob/living/carbon/human/human_defense.dm
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ Contains most of the procs that are called when a mob is attacked by something

switch(hit_area)
if("head")//Harder to score a stun but if you do it lasts a bit longer
if(prob(applied_damage) && stat == CONSCIOUS)
apply_effect(modify_by_armor(20 SECONDS, MELEE, def_zone = target_zone), WEAKEN)
if(prob(applied_damage - 5) && stat == CONSCIOUS)
apply_effect(modify_by_armor(10 SECONDS, MELEE, def_zone = target_zone), WEAKEN)
visible_message(span_danger("[src] has been knocked unconscious!"),
span_danger("You have been knocked unconscious!"), null, 5)
hit_report += "(KO)"
Expand All @@ -190,7 +190,7 @@ Contains most of the procs that are called when a mob is attacked by something

if("chest")//Easier to score a stun but lasts less time
if(prob((applied_damage + 5)) && !incapacitated())
apply_effect(modify_by_armor(12 SECONDS, MELEE, def_zone = target_zone), WEAKEN)
apply_effect(modify_by_armor(6 SECONDS, MELEE, def_zone = target_zone), WEAKEN)
visible_message(span_danger("[src] has been knocked down!"),
span_danger("You have been knocked down!"), null, 5)
hit_report += "(KO)"
Expand Down

0 comments on commit 394ead3

Please sign in to comment.