mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-06 07:22:15 +00:00
Ports baystation's ship thruster sprites and effects. (#13469)
This commit is contained in:
@@ -123,6 +123,11 @@
|
||||
update_nearby_tiles()
|
||||
. = ..()
|
||||
|
||||
/obj/machinery/atmospherics/unary/engine/update_icon()
|
||||
overlays.Cut()
|
||||
if(is_on())
|
||||
overlays += "nozzle_idle"
|
||||
|
||||
/obj/machinery/atmospherics/unary/engine/proc/get_status()
|
||||
. = list()
|
||||
.+= "Location: [get_area(src)]."
|
||||
@@ -145,6 +150,10 @@
|
||||
if(stat & NOPOWER)
|
||||
update_use_power(0)
|
||||
|
||||
/obj/machinery/atmospherics/unary/engine/update_use_power()
|
||||
. = ..()
|
||||
update_icon()
|
||||
|
||||
/obj/machinery/atmospherics/unary/engine/proc/is_on()
|
||||
return use_power && operable() && (next_on < world.time)
|
||||
|
||||
@@ -195,7 +204,7 @@
|
||||
T = get_step(T, exhaust_dir)
|
||||
if(T)
|
||||
T.assume_air(removed)
|
||||
new/obj/effect/engine_exhaust(T, exhaust_dir, air_contents.check_combustability() && air_contents.temperature >= PHORON_MINIMUM_BURN_TEMPERATURE)
|
||||
new/obj/effect/engine_exhaust(T, dir, air_contents.check_combustability() && air_contents.temperature >= PHORON_MINIMUM_BURN_TEMPERATURE)
|
||||
|
||||
/obj/machinery/atmospherics/unary/engine/proc/calculate_thrust(datum/gas_mixture/propellant, used_part = 1)
|
||||
return round(sqrt(propellant.get_mass() * used_part * sqrt(air_contents.return_pressure()/200)),0.1)
|
||||
@@ -203,9 +212,9 @@
|
||||
//Exhaust effect
|
||||
/obj/effect/engine_exhaust
|
||||
name = "engine exhaust"
|
||||
icon = 'icons/effects/effects.dmi'
|
||||
icon_state = "smoke"
|
||||
light_color = "#ed9200"
|
||||
icon = 'icons/obj/ship_engine.dmi'
|
||||
icon_state = "nozzle_burn"
|
||||
light_color = "#00a2ff"
|
||||
anchored = 1
|
||||
|
||||
/obj/effect/engine_exhaust/New(var/turf/nloc, var/ndir, var/flame)
|
||||
|
||||
6
html/changelogs/alberyk-engine.yml
Normal file
6
html/changelogs/alberyk-engine.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
author: Alberyk
|
||||
|
||||
delete-after: True
|
||||
|
||||
changes:
|
||||
- rscadd: "Ported baystation's ship thruster sprites and effects."
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 817 B After Width: | Height: | Size: 3.7 KiB |
Reference in New Issue
Block a user