Skip to content

Commit

Permalink
Merge pull request #2619 from ARF-SS13/oops-ur-blood-fall-out
Browse files Browse the repository at this point in the history
Tweaks to the venoms
  • Loading branch information
Tk420634 committed Jul 10, 2023
2 parents ba3c8eb + 598001d commit e4b24ab
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 18 deletions.
27 changes: 20 additions & 7 deletions code/modules/mob/living/blood.dm
Original file line number Diff line number Diff line change
Expand Up @@ -199,17 +199,30 @@ GLOBAL_LIST_INIT(blood_loss_messages, list(
* knockdown_chance = chance for a knockdown to occur
* knockdown_time = time they're knocked down for
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/mob/living/carbon/proc/apply_bloodloss_effects(oxy_loss_cap, stam_cap, dizzy, confusion, blurry, sprint_max, sprint_regen, sprint_cost, knockdown_chance, knockdown_time, slowdown)
/mob/living/carbon/proc/apply_bloodloss_effects(
oxy_loss_cap,
stam_cap,
dizzy,
confusion,
blurry,
sprint_max,
sprint_regen,
sprint_cost,
knockdown_chance,
knockdown_time,
slowdown,
)
var/stammoxy_dam = round((BLOOD_VOLUME_NORMAL - blood_volume) * 0.02, 1)
if(oxy_loss_cap && getOxyLoss() < oxy_loss_cap)
adjustOxyLoss(round((BLOOD_VOLUME_NORMAL - blood_volume) * 0.02, 1))
adjustOxyLoss(stammoxy_dam)
if(stam_cap && getStaminaLoss() < stam_cap)
adjustStaminaLoss(round((BLOOD_VOLUME_NORMAL - blood_volume) * 0.02, 1))
if(dizzy)
Dizzy(dizzy)
adjustStaminaLoss(stammoxy_dam)
if(dizzy && (dizziness < dizzy) && prob(50))
Dizzy(1)
if(confusion && confused < confusion)
confused = confusion
if(blurry && prob(35))
adjust_blurriness(blurry)
if(blurry && (eye_blurry < blurry) && prob(35))
adjust_blurriness(1)
if(knockdown_chance && prob(knockdown_chance))
to_chat(src, span_warning("You stumble over, dazed by your blood loss!"))
AdjustKnockdown(knockdown_time, TRUE)
Expand Down
8 changes: 4 additions & 4 deletions code/modules/mob/living/simple_animal/hostile/f13/insects.dm
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,8 @@
var/concentration = M.reagents.get_reagent_amount(/datum/reagent/toxin/cazador_venom)
M.damageoverlaytemp = concentration * 10
M.update_damage_hud()
if (M.eye_blurry < 20)
M.blur_eyes(3)
if (M.eye_blurry < 5)
M.adjust_blurriness(1)
if (M.confused < 20)
M.confused += 3
if(prob(10))
Expand All @@ -432,8 +432,8 @@

/datum/reagent/toxin/cazador_venom/on_mob_life_synth(mob/living/M)
M.adjustStaminaLoss(10, 0)
if (M.eye_blurry < 20)
M.blur_eyes(3)
if (M.eye_blurry < 5)
M.adjust_blurriness(1)
if (M.confused < 20)
M.confused += 3
if(prob(5))
Expand Down
21 changes: 14 additions & 7 deletions code/modules/mob/living/simple_animal/hostile/f13/wasteanimals.dm
Original file line number Diff line number Diff line change
Expand Up @@ -752,16 +752,23 @@
toxpwr = 0.5
taste_description = "pain"
taste_mult = 1.3
var/bleed_strength = 20 //increasing this number makes the effect weaker
var/base_bleed = 15
var/bleed_tier_divisor = 3 //increasing this number makes the effect weaker
var/blood_loss_tier = 250 // Losing a multiple of this much will stack on an extra divisor

/datum/reagent/toxin/rattler_venom/on_mob_life(mob/living/carbon/M)
if(M.get_blood() > 10)
M.blood_volume -= M.blood_volume/bleed_strength //starts out strong, then slows as you grow woozy. allows it to kick in quick but then not make you a empty juicebox
var/divisor = 1
var/blood_i_lost = clamp(BLOOD_VOLUME_NORMAL - M.get_blood(), 0, BLOOD_VOLUME_NORMAL)
while(blood_i_lost > blood_loss_tier)
blood_i_lost -= blood_loss_tier
divisor *= bleed_tier_divisor
var/blood_to_lose = max(round(base_bleed / max(divisor,1)), 1)
M.bleed(blood_to_lose)
var/concentration = M.reagents.get_reagent_amount(/datum/reagent/toxin/rattler_venom)
M.damageoverlaytemp = concentration * 10
M.update_damage_hud()
if (M.eye_blurry < 20)
M.blur_eyes(3)
if (M.eye_blurry < 5)
M.adjust_blurriness(1)
if (M.confused < 20)
M.confused += 3
if(prob(10))
Expand All @@ -771,8 +778,8 @@

/datum/reagent/toxin/rattler_venom/on_mob_life_synth(mob/living/M)
M.adjustStaminaLoss(10, 0)
if (M.eye_blurry < 20)
M.blur_eyes(3)
if (M.eye_blurry < 5)
M.adjust_blurriness(1)
if (M.confused < 20)
M.confused += 3
if(prob(5))
Expand Down

0 comments on commit e4b24ab

Please sign in to comment.