|
27 | 27 | var/volume = 10000 //in liters |
28 | 28 | var/gas_type = null |
29 | 29 |
|
30 | | -/obj/machinery/atmospherics/components/unary/tank/Initialize(mapload) |
| 30 | +/obj/machinery/atmospherics/components/unary/tank/New() |
31 | 31 | . = ..() |
32 | 32 | var/datum/gas_mixture/air_contents = airs[1] |
33 | 33 | air_contents.set_volume(volume) |
|
38 | 38 | set_piping_layer(piping_layer) |
39 | 39 |
|
40 | 40 | /obj/machinery/atmospherics/components/unary/tank/attackby(obj/item/I, mob/user, params) |
41 | | - var/datum/gas_mixture/air_contents = airs[1] |
42 | 41 | if(default_deconstruction_screwdriver(user, icon_state, icon_state, I)) |
43 | | - change_pipe_connection(!anchored) |
44 | 42 | return |
45 | 43 | if(panel_open) |
46 | 44 | if(default_unfasten_wrench(user, I, 10)) |
47 | 45 | dump_gas() |
48 | 46 | return |
49 | 47 | else |
50 | | - to_chat(user, span_warning("[panel_open? "Too much gas inside, make sure it's below 1000 moles!" : "Open the panel first!"]")) |
| 48 | + to_chat(user, span_warning("Open the panel first!")) |
51 | 49 | return |
52 | 50 | return ..() |
53 | 51 |
|
54 | 52 | /obj/machinery/atmospherics/components/unary/tank/attackby_secondary(obj/item/I, mob/user, params) |
55 | 53 | if(panel_open) |
56 | 54 | if(default_change_direction_wrench(user, I)) |
| 55 | + change_pipe_connection(TRUE, TRUE) |
57 | 56 | return SECONDARY_ATTACK_CANCEL_ATTACK_CHAIN |
58 | 57 | else |
59 | 58 | return SECONDARY_ATTACK_CALL_NORMAL |
|
113 | 112 | greyscale_config = null |
114 | 113 | greyscale_colors = null |
115 | 114 |
|
116 | | -/obj/machinery/atmospherics/components/unary/tank/air/Initialize(mapload) |
| 115 | +/obj/machinery/atmospherics/components/unary/tank/air/New() |
117 | 116 | . = ..() |
118 | 117 | var/datum/gas_mixture/air_contents = airs[1] |
119 | 118 | air_contents.set_moles(GAS_O2, AIR_CONTENTS * 0.2) |
120 | 119 | air_contents.set_moles(GAS_N2, AIR_CONTENTS * 0.8) |
121 | 120 |
|
122 | 121 | /obj/machinery/atmospherics/components/unary/tank/carbon_dioxide |
123 | | - name = "pressure tank (CO2)" |
124 | 122 | gas_type = GAS_CO2 |
125 | 123 | greyscale_colors = "#2f2f38" |
126 | 124 |
|
127 | | -/obj/machinery/atmospherics/components/unary/tank/carbon_dioxide/Initialize(mapload) |
| 125 | +/obj/machinery/atmospherics/components/unary/tank/carbon_dioxide/New() |
128 | 126 | . = ..() |
129 | 127 | var/datum/gas_mixture/air_contents = airs[1] |
130 | 128 | air_contents.set_moles(GAS_CO2, AIR_CONTENTS) |
131 | 129 |
|
132 | 130 | /obj/machinery/atmospherics/components/unary/tank/plasma |
133 | | - name = "pressure tank (Plasma)" |
134 | 131 | gas_type = GAS_PLASMA |
135 | 132 | greyscale_colors = "#f05f16" |
136 | 133 |
|
137 | | -/obj/machinery/atmospherics/components/unary/tank/plasma/Initialize(mapload) |
| 134 | +/obj/machinery/atmospherics/components/unary/tank/plasma/New() |
138 | 135 | . = ..() |
139 | 136 | var/datum/gas_mixture/air_contents = airs[1] |
140 | 137 | air_contents.set_moles(GAS_PLASMA, AIR_CONTENTS) |
141 | 138 |
|
142 | 139 | /obj/machinery/atmospherics/components/unary/tank/oxygen |
143 | | - name = "pressure tank (O2)" |
144 | 140 | gas_type = GAS_O2 |
145 | 141 | greyscale_colors = "#148df4" |
146 | 142 |
|
147 | | -/obj/machinery/atmospherics/components/unary/tank/oxygen/Initialize(mapload) |
| 143 | +/obj/machinery/atmospherics/components/unary/tank/oxygen/New() |
148 | 144 | . = ..() |
149 | 145 | var/datum/gas_mixture/air_contents = airs[1] |
150 | 146 | air_contents.set_moles(GAS_O2, AIR_CONTENTS) |
151 | 147 |
|
152 | 148 | /obj/machinery/atmospherics/components/unary/tank/nitrogen |
153 | | - name = "pressure tank (N2)" |
154 | 149 | gas_type = GAS_N2 |
155 | 150 | greyscale_colors = "#2d8f44" |
156 | 151 |
|
157 | | -/obj/machinery/atmospherics/components/unary/tank/nitrogen/Initialize(mapload) |
| 152 | +/obj/machinery/atmospherics/components/unary/tank/nitrogen/New() |
158 | 153 | . = ..() |
159 | 154 | var/datum/gas_mixture/air_contents = airs[1] |
160 | 155 | air_contents.set_moles(GAS_N2, AIR_CONTENTS) |
0 commit comments