mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-26 10:02:28 +00:00
Compilation fixes.
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
var/max_w_class = 3 // Hopper intake size.
|
||||
var/max_storage_space = 20 // Total internal storage size.
|
||||
var/obj/item/weapon/tank/tank = null // Tank of gas for use in firing the cannon.
|
||||
|
||||
|
||||
var/obj/item/weapon/storage/item_storage
|
||||
var/pressure_setting = 10 // Percentage of the gas in the tank used to fire the projectile.
|
||||
var/possible_pressure_amounts = list(5,10,20,25,50) // Possible pressure settings.
|
||||
@@ -26,7 +26,7 @@
|
||||
item_storage = new(src)
|
||||
item_storage.name = "hopper"
|
||||
item_storage.max_w_class = max_w_class
|
||||
item_storage.max_combined_w_class = max_combined_w_class
|
||||
item_storage.max_storage_space = max_storage_space
|
||||
item_storage.use_sound = null
|
||||
|
||||
/obj/item/weapon/gun/launcher/pneumatic/verb/set_pressure() //set amount of tank pressure.
|
||||
@@ -42,7 +42,7 @@
|
||||
if(!tank)
|
||||
user << "There's no tank in [src]."
|
||||
return
|
||||
|
||||
|
||||
user << "You twist the valve and pop the tank out of [src]."
|
||||
user.put_in_hands(tank)
|
||||
tank = null
|
||||
@@ -82,13 +82,13 @@
|
||||
user << "There is no gas tank in [src]!"
|
||||
return null
|
||||
|
||||
var/environment_pressure = 10
|
||||
var/environment_pressure = 10
|
||||
var/turf/T = get_turf(src)
|
||||
if(T)
|
||||
var/datum/gas_mixture/environment = T.return_air()
|
||||
if(environment)
|
||||
environment_pressure = environment.return_pressure()
|
||||
|
||||
|
||||
fire_pressure = (tank.air_contents.return_pressure() - environment_pressure)*pressure_setting/100
|
||||
if(fire_pressure < 10)
|
||||
user << "There isn't enough gas in the tank to fire [src]."
|
||||
@@ -118,7 +118,7 @@
|
||||
if(tank)
|
||||
var/lost_gas_amount = tank.air_contents.total_moles*(pressure_setting/100)
|
||||
var/datum/gas_mixture/removed = tank.air_contents.remove(lost_gas_amount)
|
||||
|
||||
|
||||
var/turf/T = get_turf(src.loc)
|
||||
if(T) T.assume_air(removed)
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user