Skip to content
This repository has been archived by the owner on Oct 15, 2023. It is now read-only.

[PRIME] Beaker balance #145

Merged
merged 2 commits into from
Jun 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions code/__DEFINES/is_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ GLOBAL_LIST_INIT(glass_sheet_types, typecacheof(list(
#define isprox(O) (istype(O, /obj/item/assembly/prox_sensor))
#define issignaler(O) (istype(O, /obj/item/assembly/signaler))
#define istimer(O) (istype(O, /obj/item/assembly/timer))
#define isvoice_analyzer(O) (istype(O, /obj/item/assembly/voice))


//Turfs
Expand Down
19 changes: 16 additions & 3 deletions code/game/objects/items/weapons/grenades/chem_grenade.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
var/stage = EMPTY
var/list/beakers = list()
var/list/allowed_containers = list(/obj/item/reagent_containers/glass/beaker, /obj/item/reagent_containers/glass/bottle)
var/list/blacklisted_containers = list(/obj/item/reagent_containers/glass/beaker/bluespace/large)
var/affected_area = 3
var/obj/item/assembly_holder/nadeassembly = null
var/label = null
Expand Down Expand Up @@ -164,6 +165,9 @@
if(beakers.len == 2)
to_chat(user, "<span class='notice'>[src] can not hold more containers.</span>")
return
if(stage == WIRED && is_type_in_list(I, blacklisted_containers))
to_chat(user, "<span class='warning'>You cannot put a [I] to the [src]</span>")
return
else
if(I.reagents.total_volume)
to_chat(user, "<span class='notice'>You add [I] to the assembly.</span>")
Expand All @@ -177,7 +181,14 @@
var/obj/item/assembly_holder/A = I
if(!A.secured)
return
if(isigniter(A.a_left) == isigniter(A.a_right)) //Check if either part of the assembly has an igniter, but if both parts are igniters, then fuck it
if(isigniter(A.a_left) == isigniter(A.a_right))
to_chat(user, "<span class='warning'>You cannot add [I] to the [src]!</span>") //Check if either part of the assembly has an igniter, but if both parts are igniters, then fuck it
return
if(isvoice_analyzer(A.a_left) && isigniter(A.a_right))
to_chat(user, "<span class='warning'>You cannot add [I] to the [src]!</span>")
return
if(isvoice_analyzer(A.a_right) && isigniter(A.a_left))
to_chat(user, "<span class='warning'>You cannot add [I] to the [src]!</span>")
return

user.drop_item()
Expand Down Expand Up @@ -321,8 +332,10 @@
desc = "A custom made large grenade. It affects a larger area."
icon_state = "large_grenade"
bomb_state = "largebomb"
allowed_containers = list(/obj/item/reagent_containers/glass,/obj/item/reagent_containers/food/condiment,
/obj/item/reagent_containers/food/drinks)
allowed_containers = list(
/obj/item/reagent_containers/glass,
/obj/item/reagent_containers/food/condiment,
/obj/item/reagent_containers/food/drinks)
origin_tech = "combat=3;engineering=3"
affected_area = 5
ignition_temp = 25 // Large grenades are slightly more effective at setting off heat-sensitive mixtures than smaller grenades.
Expand Down
18 changes: 9 additions & 9 deletions code/modules/reagents/reagent_containers/glass_containers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
icon_state = "null"
item_state = "null"
amount_per_transfer_from_this = 10
possible_transfer_amounts = list(1,2,5,10,15,25,30,50)
volume = 50
possible_transfer_amounts = list(1,2,5,10,15,25,30,50,60)
volume = 60
container_type = OPENCONTAINER
has_lid = TRUE
resistance_flags = ACID_PROOF
Expand Down Expand Up @@ -217,12 +217,12 @@

/obj/item/reagent_containers/glass/beaker/large
name = "large beaker"
desc = "A large beaker. Can hold up to 100 units."
desc = "A large beaker. Can hold up to 120 units."
icon_state = "beakerlarge"
materials = list(MAT_GLASS=2500)
volume = 100
volume = 120
amount_per_transfer_from_this = 10
possible_transfer_amounts = list(1,2,5,10,15,25,30,50,100)
possible_transfer_amounts = list(1,2,5,10,15,25,30,50,100,120)
container_type = OPENCONTAINER

/obj/item/reagent_containers/glass/beaker/vial
Expand Down Expand Up @@ -282,16 +282,16 @@
container_type = OPENCONTAINER
origin_tech = "bluespace=5;materials=4;plasmatech=4"

/obj/item/reagent_containers/glass/beaker/bluespace/xl
name = "xl bluespace beaker"
desc = "Big capacity bluespace beaker, powered by experimental bluespace technology and Element Cuban combined with the Compound Pete. Can hold up to 1000 units."
/obj/item/reagent_containers/glass/beaker/bluespace/large
name = "large bluespace beaker"
desc = "A large capacity bluespace beaker, powered by experimental bluespace technology and Element Cuban combined with the Compound Pete. Can hold up to 1000 units."
icon_state = "beaker_bluespace_xl"
materials = list(MAT_GLASS=4500)
volume = 1000
amount_per_transfer_from_this = 10
possible_transfer_amounts = list(1,2,5,10,15,25,30,50,100,300,500,1000)
container_type = OPENCONTAINER
origin_tech = "bluespace=6;materials=5;plasmatech=5"
origin_tech = "bluespace=6;materials=6;plasmatech=6"

/obj/item/reagent_containers/glass/beaker/cryoxadone
list_reagents = list("cryoxadone" = 30)
Expand Down
10 changes: 5 additions & 5 deletions code/modules/research/designs/medical_designs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
build_path = /obj/item/reagent_containers/glass/beaker/bluespace
category = list("Medical")

/datum/design/bluespace_beaker_xl
/datum/design/bluespace_beaker_large
name = "Bluespace Beaker XL"
desc = "Big capacity bluespace beaker, powered by experimental bluespace technology and Element Cuban combined with the Compound Pete. Can hold up to 1000 units."
id = "bluespace_beaker_xl"
req_tech = list("bluespace" = 7, "materials" = 7, "plasmatech" = 6)
desc = "A large capacity bluespace beaker, powered by experimental bluespace technology and Element Cuban combined with the Compound Pete. Can hold up to 1000 units."
id = "bluespace_beaker_large"
req_tech = list("bluespace" = 7, "materials" = 7, "plasmatech" = 7)
build_type = PROTOLATHE
materials = list(MAT_GLASS = 4500, MAT_PLASMA = 4500, MAT_DIAMOND = 375, MAT_BLUESPACE = 375)
build_path = /obj/item/reagent_containers/glass/beaker/bluespace/xl
build_path = /obj/item/reagent_containers/glass/beaker/bluespace/large
category = list("Medical")

/datum/design/bluespace_syringe
Expand Down
Loading