Skip to content

Commit

Permalink
[s] Speed no go brrrrr (ParadiseSS13#22171)
Browse files Browse the repository at this point in the history
* Speed no go brrrrr

* Oops

* Also this

* I forgor

* Silver told me this was intended
  • Loading branch information
DGamerL authored Aug 31, 2023
1 parent d76fb84 commit 89bbd92
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions code/modules/reagents/chemistry/reagents/drugs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -976,15 +976,18 @@
return list(0, update_flags)

//Servo Lube, supercharge
/datum/reagent/lube/ultra/combat
/datum/reagent/lube/combat
name = "Combat-Lube"
id = "combatlube"
description = "Combat-Lube is a refined and enhanced lubricant which induces effect stronger than Methamphetamine in synthetic users by drastically reducing internal friction and increasing cooling capabilities."
overdose_threshold = 30
addiction_chance = 1
addiction_chance_additional = 20

/datum/reagent/lube/ultra/combat/on_mob_life(mob/living/M)
/datum/reagent/lube/combat/on_mob_add(mob/living/L)
ADD_TRAIT(L, TRAIT_GOTTAGOFAST, id)

/datum/reagent/lube/combat/on_mob_life(mob/living/M)
M.SetSleeping(0)
M.SetDrowsy(0)

Expand All @@ -993,5 +996,25 @@
high_message = "0100011101001111010101000101010001000001010001110100111101000110010000010101001101010100!"
if(prob(5))
to_chat(M, "<span class='notice'>[high_message]</span>")
return ..()

/datum/reagent/lube/combat/on_mob_delete(mob/living/M)
REMOVE_TRAIT(M, TRAIT_GOTTAGOFAST, id)
..()

/datum/reagent/lube/combat/overdose_process(mob/living/M, severity)
var/list/overdose_info = ..()
var/effect = overdose_info[REAGENT_OVERDOSE_EFFECT]
var/update_flags = overdose_info[REAGENT_OVERDOSE_FLAGS]
if(prob(20))
M.emote("ping")
if(prob(33))
M.visible_message("<span class='danger'>[M]'s hands flip out and flail everywhere!</span>")
var/obj/item/I = M.get_active_hand()
if(I)
M.drop_item()
update_flags |= M.adjustFireLoss(5, FALSE)
update_flags |= M.adjustBrainLoss(3, FALSE)
return list(effect, update_flags)

#undef DRAWBACK_CHANCE_MODIFIER

0 comments on commit 89bbd92

Please sign in to comment.