Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds a natural source of volite: Volicious Lignite #633

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
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
8 changes: 8 additions & 0 deletions maplestation_modules/code/modules/cargo/goodies.dm
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,11 @@
contains = list(
/obj/item/mana_battery/mana_crystal/small,
)

/datum/supply_pack/goody/volitious_lignite_single_pack
name = "Volitious Lignite Pack"
desc = "A single pack of a natural source of volite, volitious lignite."
cost = PAYCHECK_CREW * 2
contains = list(
/obj/item/mana_battery/mana_crystal/lignite,
)
13 changes: 13 additions & 0 deletions maplestation_modules/code/modules/cargo/packs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -303,3 +303,16 @@
/obj/item/mana_battery/mana_crystal/cut,
/obj/item/mana_battery/mana_crystal/cut,
)

/datum/supply_pack/science/volitious_lignite_single_pack
name = "Volitious Lignite Pack"
desc = "A bundle containing 5 pieces of a natural source of volite, volitious lignite."
cost = PAYCHECK_COMMAND * 2
contains = list(
/obj/item/mana_battery/mana_crystal/lignite,
/obj/item/mana_battery/mana_crystal/lignite,
/obj/item/mana_battery/mana_crystal/lignite,
/obj/item/mana_battery/mana_crystal/lignite,
/obj/item/mana_battery/mana_crystal/lignite,
)

Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,11 @@
ph = 8
color = "#4c1528"
mana_adjust = -0.5

/datum/reagent/volite_powder
name = "Volite Powder"
description = "Pure Volite crystals which has been grinded up into a powder."
taste_description = "lots of little sparks"
ph = 8
color = "#22dcb5"
var/mana_adjust = 1
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
name = "Stabilized Volite Crystal"
desc = "A stabilized Volite Crystal, one of the few objects capable of stably storing mana without binding."
icon_state = "standard"
grind_results = list(/datum/reagent/volite_powder = 10)

/obj/item/mana_battery/mana_crystal/standard/get_initial_mana_pool_type()
return /datum/mana_pool/mana_battery/mana_crystal/standard
Expand All @@ -102,6 +103,7 @@
name = "Small Volite Crystal"
desc = "A miniaturized Volite crystal, formed using the run-off of cutting larger ones. Able to hold mana still, although not as much as a proper formation."
icon_state = "small"
grind_results = list(/datum/reagent/volite_powder = 5)
w_class = WEIGHT_CLASS_SMALL

/obj/item/mana_battery/mana_crystal/small/get_initial_mana_pool_type()
Expand All @@ -111,6 +113,42 @@
name = "Cut Volite Crystal"
desc = "A cut and shaped Volite Crystal, using a standardized square cut. It lacks power until it is slotted into a proper amulet."
icon_state = "cut"
grind_results = list(/datum/reagent/volite_powder = 10)

/obj/item/mana_battery/mana_crystal/cut/get_initial_mana_pool_type()
return /datum/mana_pool/mana_battery/mana_crystal/small

/obj/item/mana_battery/mana_crystal/lignite
name = "Volitious Lignite"
desc = "A natural source of Volite. It is formed not unlike coal, where magical plants has been compressed over millions of years by rock."
icon_state = "lignite"
grind_results = list(/datum/reagent/volite_powder = 5, /datum/reagent/carbon = 5)

///Just like coal, if the temperature of the object is over 300, then ignite
/obj/item/mana_battery/mana_crystal/lignite/attackby(obj/item/W, mob/user, params)
if(W.get_temperature() > 300)
var/turf/T = get_turf(src)
message_admins("Volitious lignite ignited by [ADMIN_LOOKUPFLW(user)] in [ADMIN_VERBOSEJMP(T)]")
user.log_message("ignited volitious lignite ", LOG_GAME)
fire_act(W.get_temperature())
return TRUE
else
return ..()

///Volitious lignite is coal, but magical.
/obj/item/mana_battery/mana_crystal/lignite/fire_act(exposed_temperature, exposed_volume)
atmos_spawn_air("[GAS_CO2]=[10];[TURF_TEMPERATURE(exposed_temperature)]")
magic_puff()
qdel(src)

///puffs out magic smoke!
/obj/item/mana_battery/mana_crystal/lignite/proc/magic_puff()
var/datum/reagents/chems = new/datum/reagents(5)
chems.my_atom = src
chems.add_reagent(/datum/reagent/medicine/quintessence/misty, 5)
var/datum/effect_system/fluid_spread/smoke/chem/puff = new
puff.set_up(1, holder = src, location = loc, carry = chems)
puff.start()

/obj/item/mana_battery/mana_crystal/cut/get_initial_mana_pool_type()
return /datum/mana_pool/mana_battery/mana_crystal/small
Expand Down
Binary file modified maplestation_modules/icons/obj/magic/crystals.dmi
Binary file not shown.
Loading