mirror of
https://github.com/goonstation/goonstation-2016.git
synced 2026-08-25 23:16:12 +01:00
51 lines
1.4 KiB
Plaintext
51 lines
1.4 KiB
Plaintext
/obj/item/reagent_containers/glass/wateringcan/artifact
|
|
name = "artifact watering can"
|
|
icon = 'icons/obj/artifacts/artifactsitem.dmi'
|
|
desc = "You have no idea what this thing is!"
|
|
artifact = 1
|
|
module_research_no_diminish = 1
|
|
mat_changename = 0
|
|
mat_changedesc = 0
|
|
|
|
New(var/loc, var/forceartitype)
|
|
..()
|
|
var/datum/artifact/watercan/AS = new /datum/artifact/watercan(src)
|
|
if (forceartitype)
|
|
AS.validtypes = list("[forceartitype]")
|
|
src.artifact = AS
|
|
spawn(0)
|
|
src.ArtifactSetup()
|
|
|
|
var/capacity = rand(1,20)
|
|
capacity *= 1000
|
|
var/datum/reagents/R = new/datum/reagents(capacity)
|
|
reagents = R
|
|
R.my_atom = src
|
|
R.add_reagent("water", capacity / 2)
|
|
R.add_reagent("saltpetre", capacity / 2)
|
|
|
|
attackby(obj/item/W as obj, mob/user as mob)
|
|
if (src.Artifact_attackby(W,user))
|
|
..()
|
|
|
|
examine()
|
|
boutput(usr, "[desc]")
|
|
return
|
|
|
|
UpdateName()
|
|
src.name = "[name_prefix(null, 1)][src.real_name][name_suffix(null, 1)]"
|
|
|
|
/datum/artifact/watercan
|
|
associated_object = /obj/item/reagent_containers/glass/wateringcan/artifact
|
|
rarity_class = 1
|
|
validtypes = list("martian","wizard","precursor")
|
|
min_triggers = 0
|
|
max_triggers = 0
|
|
react_xray = list(2,90,15,11,"HOLLOW")
|
|
module_research = list("medicine" = 5, "science" = 5, "miniaturization" = 15)
|
|
module_research_insight = 3
|
|
|
|
|
|
New()
|
|
..()
|
|
src.react_heat[2] = "HIGH INTERNAL CONVECTION" |