Skip to content

Commit

Permalink
Makes it so the Aetherwhisp lasers have circuit boards and don't get …
Browse files Browse the repository at this point in the history
…deleted upon deconstruction. (#2612)
  • Loading branch information
Bobbanz1 authored Mar 29, 2024
1 parent 0f38097 commit e69abca
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
36 changes: 36 additions & 0 deletions nsv13/code/game/objects/items/nsv_circuitboards.dm
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,42 @@
/obj/item/stock_parts/cell = 5,
/obj/item/stack/ore/bluespace_crystal = 5)

// Laser AMS
/obj/item/circuitboard/machine/laser_ams
name = "laser AMS (circuitboard)"
build_path = /obj/machinery/ship_weapon/energy/ams
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF | FREEZE_PROOF
req_components = list(
/obj/item/stack/sheet/glass = 5,
/obj/item/stock_parts/micro_laser = 5,
/obj/item/stock_parts/capacitor = 5,
/obj/item/stock_parts/cell = 5,
/obj/item/stack/ore/bluespace_crystal = 5)

// Phase Cannon
/obj/item/circuitboard/machine/phase_cannon
name = "phase cannon (circuitboard)"
build_path = /obj/machinery/ship_weapon/energy/beam
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF | FREEZE_PROOF
req_components = list(
/obj/item/stack/sheet/glass = 5,
/obj/item/stock_parts/micro_laser = 5,
/obj/item/stock_parts/capacitor = 5,
/obj/item/stock_parts/cell = 5,
/obj/item/stack/ore/bluespace_crystal = 5)

// Burst Phaser
/obj/item/circuitboard/machine/burst_phaser
name = "burst phaser MK2 (circuitboard)"
build_path = /obj/machinery/ship_weapon/energy
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF | FREEZE_PROOF
req_components = list(
/obj/item/stack/sheet/glass = 3,
/obj/item/stock_parts/micro_laser = 3,
/obj/item/stock_parts/capacitor = 3,
/obj/item/stock_parts/cell = 3,
/obj/item/stack/ore/bluespace_crystal = 3)

// Smelter and console
/obj/item/circuitboard/machine/processing_unit
name = "furnace (Machine Board)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
icon_state = "missile_cannon"
fire_mode = FIRE_MODE_AMS_LASER //Shot automatically
ammo_type = /obj/item/ship_weapon/ammunition/railgun_ammo
circuit = /obj/item/circuitboard/machine/laser_ams
bound_width = 64
pixel_x = -32
pixel_y = -32
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
icon_state = "phase_cannon"
fire_mode = FIRE_MODE_RED_LASER //Shot by the pilot.
ammo_type = /obj/item/ship_weapon/ammunition/railgun_ammo
circuit = /obj/item/circuitboard/machine/burst_phaser
bound_width = 64
pixel_x = -32
pixel_y = -32
Expand All @@ -27,6 +28,7 @@
icon_state = "ion_cannon"
fire_mode = FIRE_MODE_BLUE_LASER
energy_weapon_type = /datum/ship_weapon/phaser
circuit = /obj/item/circuitboard/machine/phase_cannon
charge_rate = 600000 // At power level 5, requires 3MW per tick to charge
charge_per_shot = 4000000 // At power level 5, requires 20MW total to fire, takes about 12 seconds to gain 1 charge
max_charge = 8000000 // Store 2 charges
Expand Down

0 comments on commit e69abca

Please sign in to comment.