Files
Bubberstation/code/modules/reagents/reagent_containers/patch.dm
SkyratBot d54f6bacc0 [MIRROR] Patch resprite [MDB IGNORE] (#21102)
* Patch resprite (#75141)

## About The Pull Request
Adds more selectable patches.

![image](https://user-images.githubusercontent.com/66163761/236027913-449b7744-6df9-492d-827f-ee18e97f01d1.png)

## Why It's Good For The Game
Currently there are only 4 patches to pick from. This selection is
tragic, so how about a few more?
Adds more patches so that chemists have some choice.
## Changelog
🆑 @ Xander3359 Sprites: Nebby#1467
image: Replaces the old patches with some new sprites
/🆑

* Patch resprite

---------

Co-authored-by: Xander3359 <66163761+Xander3359@users.noreply.github.com>
2023-05-12 00:47:21 -07:00

47 lines
1.7 KiB
Plaintext

/obj/item/reagent_containers/pill/patch
name = "chemical patch"
desc = "A chemical patch for touch based applications."
icon = 'icons/obj/medical/chemical.dmi'
icon_state = "bandaid_blank"
inhand_icon_state = null
possible_transfer_amounts = list()
volume = 40
apply_type = PATCH
apply_method = "apply"
self_delay = 30 // three seconds
dissolvable = FALSE
/obj/item/reagent_containers/pill/patch/attack(mob/living/L, mob/user)
if(ishuman(L))
var/obj/item/bodypart/affecting = L.get_bodypart(check_zone(user.zone_selected))
if(!affecting)
to_chat(user, span_warning("The limb is missing!"))
return
if(!IS_ORGANIC_LIMB(affecting))
to_chat(user, span_notice("Medicine won't work on a robotic limb!"))
return
..()
/obj/item/reagent_containers/pill/patch/canconsume(mob/eater, mob/user)
if(!iscarbon(eater))
return FALSE
return TRUE // Masks were stopping people from "eating" patches. Thanks, inheritance.
/obj/item/reagent_containers/pill/patch/libital
name = "libital patch (brute)"
desc = "A pain reliever. Does minor liver damage. Diluted with Granibitaluri."
list_reagents = list(/datum/reagent/medicine/c2/libital = 2, /datum/reagent/medicine/granibitaluri = 8) //10 iterations
icon_state = "bandaid_brute"
/obj/item/reagent_containers/pill/patch/aiuri
name = "aiuri patch (burn)"
desc = "Helps with burn injuries. Does minor eye damage. Diluted with Granibitaluri."
list_reagents = list(/datum/reagent/medicine/c2/aiuri = 2, /datum/reagent/medicine/granibitaluri = 8)
icon_state = "bandaid_burn"
/obj/item/reagent_containers/pill/patch/synthflesh
name = "synthflesh patch"
desc = "Helps with brute and burn injuries. Slightly toxic."
list_reagents = list(/datum/reagent/medicine/c2/synthflesh = 20)
icon_state = "bandaid_both"