Skip to content

Commit

Permalink
bwoink
Browse files Browse the repository at this point in the history
  • Loading branch information
TobyThorne committed Oct 15, 2024
1 parent 3f094b6 commit c21bd4c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 19 deletions.
1 change: 0 additions & 1 deletion code/game/objects/items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,6 @@ var/list/global/slot_flags_enumeration = list(
return TRUE
H.visible_message(SPAN("warning", "[H] falls down, unable to keep balance!"))
H.apply_effect(5, WEAKEN, 0)
H.poise_immunity(3)
return canremove ? TRUE : FALSE

/obj/item/proc/get_loc_turf()
Expand Down
12 changes: 0 additions & 12 deletions code/modules/mob/living/carbon/human/human_defense.dm
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,6 @@ meteor_act
visible_message("<b>[src]</b> collapses!", SPAN("warning", "You collapse from shock!"))
Stun(reduced_tasing)
Weaken(reduced_tasing + 1) // Getting up after being tased is not instant, adding 1 tick of unstunned crawling
if(poise <= 0)
poise_immunity(min(reduced_tasing, 3))


//////////////////////
Expand Down Expand Up @@ -443,7 +441,6 @@ meteor_act
visible_message(SPAN("danger", "[src] [species.knockout_message]"))
custom_pain("Your head's definitely gonna hurt tomorrow.", 30, affecting = affecting)
apply_effect((I.mod_weight*15), PARALYZE, (blocked/2))
poise_immunity(3)

else if(prob(effective_force))
visible_message(SPAN("danger", "[src] looks momentarily disoriented."), SPAN("danger", "You see stars."))
Expand All @@ -453,7 +450,6 @@ meteor_act
if(poise <= effective_force/3*I.mod_weight)
visible_message(SPAN("danger", "[src] has been knocked down!"))
apply_effect(min((I.mod_weight * 3), 4), WEAKEN, (blocked/2))
poise_immunity(2)

if(BP_L_HAND, BP_R_HAND) //Knocking someone down by smashing their hands? Hell no.
if(poise <= effective_force/3*I.mod_weight)
Expand Down Expand Up @@ -529,7 +525,6 @@ meteor_act
visible_message(SPAN("danger", "[src] [species.knockout_message]"))
custom_pain("Your head's <B>definitely</B> gonna hurt tomorrow.", 30, affecting = affecting)
apply_effect((I.mod_weight*20), PARALYZE, (blocked/2))
poise_immunity(3)

else if(prob(effective_force))
visible_message(SPAN("danger", "[src] looks momentarily disoriented."), SPAN("danger", "You see stars."))
Expand Down Expand Up @@ -559,7 +554,6 @@ meteor_act
if(poise <= effective_force/3*I.mod_weight)
visible_message(SPAN("danger", "[src] has been knocked down!"))
apply_effect((I.mod_weight*3.5), WEAKEN, (blocked/2))
poise_immunity(2)

else if(prob(effective_force))
var/turf/T = get_step(get_turf(src), get_dir(get_turf(user), get_turf(src)))
Expand All @@ -571,13 +565,11 @@ meteor_act
else
visible_message(SPAN("danger", "[src] bumps into \the [T]!"))
apply_effect(effective_force * 0.4, WEAKEN, (blocked/2))
poise_immunity(2)

if(BP_L_FOOT, BP_R_FOOT)
if(poise <= effective_force*I.mod_reach)
visible_message(SPAN("danger", "[user] takes [src] down with their [I.name]!"))
apply_effect((I.mod_reach*5), WEAKEN, blocked)
poise_immunity(2)

if(effective_force <= 0)
return 0
Expand Down Expand Up @@ -737,7 +729,6 @@ meteor_act
visible_message(SPAN("warning", "[defender] falls down, unable to keep balance!"))
defender.apply_effect(3, WEAKEN, 0)
defender.useblock_off()
defender.poise_immunity(2)
return 1

//Src (defender) blocks attacking_mob's (attacker) punch/generic attack with their weapon_def
Expand Down Expand Up @@ -787,7 +778,6 @@ meteor_act
visible_message(SPAN("warning", "[defender] falls down, unable to keep balance!"))
defender.apply_effect(3, WEAKEN, 0)
defender.useblock_off()
defender.poise_immunity(2)
return 1


Expand Down Expand Up @@ -872,7 +862,6 @@ meteor_act
damage_poise(poisedamage * pd_mult)
if(poise <= 25 && !prob(poise * 3))
apply_effect(max(3, (poisedamage * pd_mult / 4)), WEAKEN)
poise_immunity(2)
if(!lying)
visible_message(SPAN("danger", "[src] goes down under the impact of \the [P]!"))

Expand Down Expand Up @@ -938,7 +927,6 @@ meteor_act
visible_message(SPAN("warning", "[src] falls down, unable to keep balance!"))
apply_effect(2, WEAKEN, 0)
useblock_off()
poise_immunity(1)
return


Expand Down
11 changes: 6 additions & 5 deletions code/modules/mob/living/carbon/human/life.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1030,18 +1030,19 @@
poise = poise_pool
poise_icon?.icon_state = "[round((poise/poise_pool) * 50)]"
return
var/pregen = 5
var/base_pregen = poise_pool * 0.1
var/pregen = base_pregen

for(var/obj/item/grab/G in list(get_active_hand(), get_inactive_hand()))
pregen -= 1.25
pregen -= base_pregen * 0.25

if(blocking)
pregen -= 2.5
pregen -= base_pregen * 0.5

if(lying)
pregen += 2.5
pregen += base_pregen * 0.5

poise = between(0, poise+pregen, poise_pool)
poise = between(0, poise + pregen, poise_pool)

poise_icon?.icon_state = "[round((poise/poise_pool) * 50)]"

Expand Down
1 change: 0 additions & 1 deletion code/modules/mob/living/carbon/human/species/species.dm
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,6 @@ The slots that you can use are found in items_clothing.dm and are the inventory
if(prob(100-target.poise*6.5))
target.visible_message("<span class='danger'>[attacker] has pushed [target]!</span>")
target.apply_effect(5, WEAKEN, armor_check)
target.poise_immunity(2)
else
target.visible_message("<span class='warning'>[attacker] attempted to push [target]!</span>")
return
Expand Down

0 comments on commit c21bd4c

Please sign in to comment.