Skip to content

Commit

Permalink
[MIRROR] Allows the construction of tiny fans (Now plasma powered ) (#…
Browse files Browse the repository at this point in the history
…5266)

* Allows the construction of tiny fans (Now plasma powered ) (#4708)

* Initial commit

* appeasing the CI gods

* removed the unnesesary trait firedoor stop

* Update modular_nova/modules/modular_items/code/fan.dm

Co-authored-by: Bloop <[email protected]>

* Update modular_nova/modules/modular_items/code/fan.dm

Co-authored-by: Bloop <[email protected]>

* Update modular_nova/modules/modular_items/code/fan.dm

Co-authored-by: Bloop <[email protected]>

* Update modular_nova/modules/modular_items/code/fan.dm

Co-authored-by: Bloop <[email protected]>

* Update modular_nova/modules/modular_items/code/fan.dm

Co-authored-by: Bloop <[email protected]>

* Update modular_nova/modules/modular_items/code/fan.dm

Co-authored-by: Bloop <[email protected]>

* Update modular_nova/modules/modular_items/code/fan.dm

Co-authored-by: Bloop <[email protected]>

* being funky with the drop_location() as a var

---------

Co-authored-by: Bloop <[email protected]>

* [MIRROR] Allows the construction of tiny fans (Now plasma powered )

---------

Co-authored-by: OrbisAnima <[email protected]>
Co-authored-by: Bloop <[email protected]>
Co-authored-by: StealsThePRs <[email protected]>
  • Loading branch information
4 people authored Dec 28, 2024
1 parent 79f76b1 commit aad8986
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
61 changes: 61 additions & 0 deletions modular_nova/modules/modular_items/code/fan.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/obj/machinery/nova/fan //Due to constrains, atmos effects arent stopped on depower, so only the self powered version is player buildable.
name = "tiny fan"
desc = "A tiny fan, releasing a thin gust of air."
layer = HIGH_PIPE_LAYER
power_channel = AREA_USAGE_ENVIRON
idle_power_usage = BASE_MACHINE_IDLE_CONSUMPTION
use_power = IDLE_POWER_USE
max_integrity = 150
density = FALSE
icon = 'icons/obj/mining_zones/survival_pod.dmi'
icon_state = "fan_tiny"
can_atmos_pass = ATMOS_PASS_NO
rad_insulation = RAD_LIGHT_INSULATION
resistance_flags = FIRE_PROOF | FREEZE_PROOF

/obj/machinery/nova/fan/Initialize(mapload)
. = ..()
air_update_turf(TRUE, TRUE)

/obj/machinery/nova/fan/Destroy()
air_update_turf(TRUE, FALSE)
. = ..()

/obj/machinery/nova/fan/self_powered/on_deconstruction(disassembled)
new /obj/item/stack/sheet/iron(drop_location(), 5)
new /obj/item/stack/cable_coil/five(drop_location())

/obj/machinery/nova/fan/block_superconductivity()
if (machine_stat & (BROKEN|NOPOWER))
return FALSE
return TRUE

/obj/machinery/nova/fan/wrench_act(mob/living/user, obj/item/tool)
loc.balloon_alert_to_viewers("deconstructing...")
if(!tool.use_tool(src, user, 2 SECONDS, volume = 50))
return ITEM_INTERACT_BLOCKING
loc.balloon_alert_to_viewers("deconstructed!")
deconstruct(TRUE)
return ITEM_INTERACT_SUCCESS

/obj/machinery/nova/fan/self_powered
name = "self-powered tiny fan"
desc = parent_type::desc + " This one seems to have a heated plasma shard that propels the blades!"
use_power = NO_POWER_USE

/obj/machinery/nova/fan/self_powered/on_deconstruction(disassembled)
. = ..()
new /obj/item/stack/sheet/mineral/plasma(drop_location())

/datum/crafting_recipe/nova/fan/self
name = "Self-Powered Tiny Fan"
tool_behaviors = list(TOOL_WRENCH, TOOL_WELDER)
result = /obj/machinery/nova/fan/self_powered
reqs = list(
/obj/item/pipe = 1,
/obj/item/stack/sheet/iron = 4,
/obj/item/stack/cable_coil = 5,
/obj/item/stack/sheet/mineral/plasma = 1,
)
time = 2 SECONDS
category = CAT_ATMOSPHERIC
1 change: 1 addition & 0 deletions tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -8125,6 +8125,7 @@
#include "modular_nova\modules\modular_items\code\ciggies.dm"
#include "modular_nova\modules\modular_items\code\cross.dm"
#include "modular_nova\modules\modular_items\code\designs.dm"
#include "modular_nova\modules\modular_items\code\fan.dm"
#include "modular_nova\modules\modular_items\code\fock.dm"
#include "modular_nova\modules\modular_items\code\makeshift.dm"
#include "modular_nova\modules\modular_items\code\modular_glasses.dm"
Expand Down

0 comments on commit aad8986

Please sign in to comment.