Skip to content
Open
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
12 changes: 12 additions & 0 deletions __DEFINES/materials.dm
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,18 @@
#define VALUE_PHAZON 50
#define VALUE_MYTHRIL 1
#define VALUE_TELECRYSTAL 1
#define VALUE_MAUXITE 5
#define VALUE_MOLITZ 10
#define VALUE_PHAROSIUM 10
#define VALUE_COBRYL 30
#define VALUE_CHAR 5
#define VALUE_CLARETINE 50
#define VALUE_BOHRUM 50
#define VALUE_SYRELINE 70
#define VALUE_EREBITE 50
#define VALUE_CERENKITE 50
#define VALUE_CYTINE 30
#define VALUE_UQILL 24

//wax sheets
#define WAX_PER_HONEYCOMB 4
Expand Down
81 changes: 79 additions & 2 deletions code/game/objects/items/stacks/sheets/mineral.dm
Original file line number Diff line number Diff line change
Expand Up @@ -392,17 +392,18 @@ var/list/datum/stack_recipe/clown_recipes = list ( \
mat_type = MAT_MYTHRIL
starting_materials = list(MAT_MYTHRIL = CC_PER_SHEET_MYTHRIL)

var/list/datum/stack_recipe/mythril_recipes = list ( \
var/list/datum/stack_recipe/blacksmith_only_recipes = list ( \
blacksmithing_recipes,
)

/obj/item/stack/sheet/mineral/mythril/New(var/loc, var/amount=null)
recipes = mythril_recipes
recipes = blacksmith_only_recipes
..()


/obj/item/stack/sheet/mineral/pharosium
name = "pharosium"
singular_name = "pharosium sheet"
icon_state = "sheet-pharosium"
force = 5.0
throwforce = 5
Expand All @@ -414,8 +415,13 @@ var/list/datum/stack_recipe/mythril_recipes = list ( \
mat_type = MAT_PHAROSIUM
starting_materials = list(MAT_PHAROSIUM = CC_PER_SHEET_PHAROSIUM)

/obj/item/stack/sheet/mineral/pharosium/New(var/loc, var/amount=null)
recipes = blacksmith_only_recipes
..()

/obj/item/stack/sheet/mineral/char
name = "char"
singular_name = "char sheet"
icon_state = "sheet-char"
force = 5.0
throwforce = 5
Expand All @@ -430,6 +436,7 @@ var/list/datum/stack_recipe/mythril_recipes = list ( \

/obj/item/stack/sheet/mineral/claretine
name = "claretine"
singular_name = "claretine sheet"
icon_state = "sheet-claretine"
force = 5.0
throwforce = 5
Expand All @@ -441,9 +448,13 @@ var/list/datum/stack_recipe/mythril_recipes = list ( \
mat_type = MAT_CLARETINE
starting_materials = list(MAT_CLARETINE = CC_PER_SHEET_CLARETINE)

/obj/item/stack/sheet/mineral/claretine/New(var/loc, var/amount=null)
recipes = blacksmith_only_recipes
..()

/obj/item/stack/sheet/mineral/cobryl
name = "cobryl"
singular_name = "cobryl sheet"
icon_state = "sheet-cobryl"
force = 5.0
throwforce = 5
Expand All @@ -455,9 +466,13 @@ var/list/datum/stack_recipe/mythril_recipes = list ( \
mat_type = MAT_COBRYL
starting_materials = list(MAT_COBRYL = CC_PER_SHEET_COBRYL)

/obj/item/stack/sheet/mineral/cobryl/New(var/loc, var/amount=null)
recipes = blacksmith_only_recipes
..()

/obj/item/stack/sheet/mineral/bohrum
name = "bohrum"
singular_name = "bohrum sheet"
icon_state = "sheet-bohrum"
force = 5.0
throwforce = 5
Expand All @@ -469,9 +484,13 @@ var/list/datum/stack_recipe/mythril_recipes = list ( \
mat_type = MAT_BOHRUM
starting_materials = list(MAT_BOHRUM = CC_PER_SHEET_BOHRUM)

/obj/item/stack/sheet/mineral/bohrum/New(var/loc, var/amount=null)
recipes = blacksmith_only_recipes
..()

/obj/item/stack/sheet/mineral/syreline
name = "syreline"
singular_name = "syreline sheet"
icon_state = "sheet-syreline"
force = 5.0
throwforce = 5
Expand All @@ -483,9 +502,13 @@ var/list/datum/stack_recipe/mythril_recipes = list ( \
mat_type = MAT_SYRELINE
starting_materials = list(MAT_SYRELINE = CC_PER_SHEET_SYRELINE)

/obj/item/stack/sheet/mineral/syreline/New(var/loc, var/amount=null)
recipes = blacksmith_only_recipes
..()

/obj/item/stack/sheet/mineral/erebite
name = "erebite"
singular_name = "erebite sheet"
icon_state = "sheet-erebite"
force = 5.0
throwforce = 5
Expand All @@ -497,9 +520,21 @@ var/list/datum/stack_recipe/mythril_recipes = list ( \
mat_type = MAT_EREBITE
starting_materials = list(MAT_EREBITE = CC_PER_SHEET_EREBITE)

/obj/item/stack/sheet/mineral/erebite/New(var/loc, var/amount=null)
recipes = blacksmith_only_recipes
..()

/obj/item/stack/sheet/mineral/erebite/ex_act()
explosion(src.loc,-1,1,3)
qdel(src)

/obj/item/stack/sheet/mineral/erebite/bullet_act(var/obj/item/projectile/P)
explosion(src.loc,-1,1,3)
qdel(src)

/obj/item/stack/sheet/mineral/cerenkite
name = "cerenkite"
singular_name = "cerenkite sheet"
icon_state = "sheet-cerenkite"
force = 5.0
throwforce = 5
Expand All @@ -511,9 +546,27 @@ var/list/datum/stack_recipe/mythril_recipes = list ( \
mat_type = MAT_CERENKITE
starting_materials = list(MAT_CERENKITE = CC_PER_SHEET_CERENKITE)

/obj/item/stack/sheet/mineral/cerenkite/New(var/loc, var/amount=null)
recipes = blacksmith_only_recipes
..()

/obj/item/stack/sheet/mineral/cerenkite/ex_act()
visible_message("<span class='danger'>\The [src] emits some dangerous radiation!</span>")
var/L = get_turf(src)
for(var/mob/living/carbon/human/M in viewers(L, null))
M.apply_radiation((rand(amount, amount*5)), RAD_EXTERNAL)
qdel(src)

/obj/item/stack/sheet/mineral/cerenkite/attack_self(mob/user)
visible_message("<span class='danger'>\The [src] emits some dangerous radiation!</span>")
var/L = get_turf(user)
for(var/mob/living/carbon/human/M in viewers(L, null))
M.apply_radiation((rand(1, 5)), RAD_EXTERNAL)
use(1)

/obj/item/stack/sheet/mineral/cytine
name = "cytine"
singular_name = "cytine sheet"
icon_state = "sheet-cytine"
force = 5.0
throwforce = 5
Expand All @@ -525,9 +578,21 @@ var/list/datum/stack_recipe/mythril_recipes = list ( \
mat_type = MAT_CYTINE
starting_materials = list(MAT_CYTINE = CC_PER_SHEET_CYTINE)

/obj/item/stack/sheet/mineral/cytine/New()
..()
color = pick("#FF0000","#0000FF","#008000","#FFFF00")

/obj/item/stack/sheet/mineral/cytine/attack_self(mob/user)
var/obj/item/weapon/glowstick/G = new /obj/item/weapon/glowstick(user.loc)
G.color = color
G.light_color = color
to_chat(user,"<span class='notice'>You fashion \a [G] out of \the [src]</span>")
color = pick("#FF0000","#0000FF","#008000","#FFFF00")
use(1)

/obj/item/stack/sheet/mineral/uqill
name = "uqill"
singular_name = "uqill sheet"
icon_state = "sheet-uqill"
force = 5.0
throwforce = 5
Expand All @@ -539,6 +604,9 @@ var/list/datum/stack_recipe/mythril_recipes = list ( \
mat_type = MAT_UQILL
starting_materials = list(MAT_UQILL = CC_PER_SHEET_UQILL)

/obj/item/stack/sheet/mineral/uqill/New(var/loc, var/amount=null)
recipes = blacksmith_only_recipes
..()

/obj/item/stack/sheet/mineral/telecrystal
name = "telecrystal"
Expand All @@ -555,6 +623,7 @@ var/list/datum/stack_recipe/mythril_recipes = list ( \

/obj/item/stack/sheet/mineral/mauxite
name = "mauxite"
singular_name = "mauxite sheet"
icon_state = "sheet-mauxite"
force = 5.0
throwforce = 5
Expand All @@ -566,9 +635,13 @@ var/list/datum/stack_recipe/mythril_recipes = list ( \
mat_type = MAT_MAUXITE
starting_materials = list(MAT_MAUXITE = CC_PER_SHEET_MAUXITE)

/obj/item/stack/sheet/mineral/mauxite/New(var/loc, var/amount=null)
recipes = blacksmith_only_recipes
..()

/obj/item/stack/sheet/mineral/molitz
name = "molitz"
singular_name = "molitz sheet"
icon_state = "sheet-molitz"
force = 5.0
throwforce = 5
Expand All @@ -580,6 +653,10 @@ var/list/datum/stack_recipe/mythril_recipes = list ( \
mat_type = MAT_MOLITZ
starting_materials = list(MAT_MOLITZ = CC_PER_SHEET_MOLITZ)

/obj/item/stack/sheet/mineral/molitz/New(var/loc, var/amount=null)
recipes = blacksmith_only_recipes
..()

/obj/item/stack/sheet/mineral/gingerbread
name = "gingerbread"
icon_state = "sheet-gingerbread"
Expand Down
Loading
Loading