Commit Graph

324 Commits

Author SHA1 Message Date
mwerezak
fbede7a193 Minor ZAS-related cleanup 2015-04-28 23:00:56 -04:00
Chinsky
5502779652 That should be it for procs there. 2015-02-27 13:09:40 +03:00
Chinsky
4db51c68ef Missed a spot in airflow fixes. 2015-02-26 13:55:27 +03:00
Chinsky
728d90d06f Now airflow knockout uses proper Weaken proc to doublecheck for flags. Should fix #8254
Also cleans up it a bit and adds span classes.
2015-02-26 11:17:54 +03:00
SkyMarshal
8898689c5d Cleared out my WIP folder. 2015-02-03 03:20:42 -07:00
Atlantiscze
5f921676d8 ZAS Emergency fix
- Fixes massive losses of heat during ZAS operation.
2015-01-04 02:16:07 +01:00
Mloc-Argent
debba68c44 add sleeping for ZAS connection edges
Edges will sleep and fully balance if compare() passes.
also some small small xgm tweaks.

Signed-off-by: Mloc-Argent <colmohici@gmail.com>
2014-12-21 20:35:40 +00:00
Mloc-Argent
117ca6a135 refactor 'dir = ' into 'set_dir()'
This should have little/no gameplay effect right now, just paving the
 way for directional lights.
Replaced handle_rotation() on buckly things with this.

Signed-off-by: Mloc-Argent <colmohici@gmail.com>
2014-12-01 13:44:02 +00:00
mwerezak
b84bb4ff23 Fixes bubble/hull shield generators not updating air zones, update_nearby_tiles() cleanup. 2014-11-28 19:37:31 -05:00
Mloc-Argent
4871a3a850 Merge remote-tracking branch 'upstream/master' into dev-freeze
Conflicts:
	code/ATMOSPHERICS/pipes.dm
	icons/atmos/pipes.dmi
2014-10-15 22:13:44 +01:00
Mloc
28e0539359 fix an issue with ZAS geometry not re-forming
Signed-off-by: Mloc <colmohici@gmail.com>
2014-10-14 11:57:31 +01:00
Zuhayr
6c96f3d66b Merge branch 'xenorewrite' of https://github.com/Zuhayr/Baystation12 into dev 2014-10-02 02:39:37 +09:30
Chinsky
dd9b3fe613 Merge pull request #6565 from Mloc/bs12-fan
small fixes 2
2014-10-01 13:39:35 +04:00
Mloc
ee4eafa660 fixes #6090
Signed-off-by: Mloc <colmohici@gmail.com>
2014-10-01 10:17:55 +01:00
Mloc-Argent
4160488ed1 fix gas overlays persisting after rebuilds
slight visual artifact when zones are rebuilt, overlays will be
missing until the end of the current tick.  otherwise works fine.

Signed-off-by: Mloc-Argent <colmohici@gmail.com>
2014-09-30 20:51:59 +01:00
Zuhayr
9fcde12b4f Organ rewrite mapclean attempt. 2014-09-29 06:18:58 +09:30
Mloc-Argent
8a92fffdc2 updating turf gas overlays is now delta-based
Fixes issues with mine turfs and other turfs that use overlays.

Signed-off-by: Mloc-Argent <colmohici@gmail.com>
2014-09-11 20:13:10 +01:00
mwerezak
ce970eacd2 Adds atmos/supermatter debug messages 2014-09-06 15:36:35 -04:00
mwerezak
0a7b898253 Fixes #6229
Entropy was being divided by total_moles twice.
2014-08-30 15:49:35 -04:00
mwerezak
82a862e07e Fixes entropy calculation
Fixed the entropy calculation so that it is easier to remove gas from a
hot gas mix, not harder. Added comments explaining the entropy
calculation. Also returns pump and filter efficiency to previous values.
2014-08-25 15:49:39 -04:00
mwerezak
3cd0cdf27f Fixes freezers never quite reaching their thermostat temperature 2014-08-23 10:52:57 -04:00
Hubblenaut
30f590aef7 Fixes phoron reactions with oxygen not following a consistent reaction equation 2014-08-13 19:56:02 +02:00
Mloc-Argent
674343ce18 XGM optimizations and fixes
fixes ZAS unsim connections filling up

Signed-off-by: Mloc-Argent <colmohici@gmail.com>
2014-08-09 19:49:08 +01:00
mwerezak
018079beb5 Fixes gas mixture bugs, other bugs, and cleanup
In particular, gas_mixture/remove() was not accounting for
group_multiplier when determining the maximum amount of gas to remove
Also cleans up the interface for gas_mixture/heat_capacity().
2014-08-05 17:04:17 -04:00
mwerezak
d662c5e804 Fixes issues with group_multiplier, filtering lists 2014-08-04 20:56:22 -04:00
mwerezak
400c1b5cf6 Fixes mistake in scrubbing calculation 2014-08-01 19:33:57 -04:00
mwerezak
3f6c1ff622 Cleanup, adds setup parameters for atmos machinery
Allows atmos machinery efficiency to be adjusted in setup.dm
Limits flow rates when moving gas from a turf to avoid very high pressures being created when they shouldn't be.
Attempts to limit processing when there isn't much gas to be moved, for performance.
Reverts all changes to _gas_mixture.dm
2014-07-26 13:50:25 -04:00
mwerezak
11c9f3bb9b Updates scrubbers 2014-07-26 12:23:35 -04:00
mwerezak
ef4a740a02 Adds entropy, thermal energy procs to new gas mix 2014-07-24 17:36:57 -04:00
mwerezak
79d4c444c2 Merge remote-tracking branch 'upstream/dev' into power-net
Conflicts:
	code/ATMOSPHERICS/components/binary_devices/pump.dm
	code/game/machinery/alarm.dm
	code/game/machinery/spaceheater.dm
2014-07-24 16:04:41 -04:00
Mloc-Argent
d5e9851b62 integrate XGM into the code
New turf proc: assume_gas().  Maps to air.adjust_gas_temp().
Lots of optimizations to processing, fire, lighting, HasEntered() and
 more.
Zones now process all fire data and existance in one go, fire objects
 only handle spreading.
Most code has been ported straight so some of it mightn't be ideally
 structured for the new gas_mixtures.

Signed-off-by: Mloc-Argent <colmohici@gmail.com>
2014-07-22 19:52:12 +01:00
Mloc-Argent
0918f8bdde new XGM gas mixture datum
Gases are now represented in an associatiee list instead of harcoded
 variables.  gas = list("oxygen" = 20, "nitrogen" = 80)
New cleaned up share_ratio(), share_space() and equalise_gases() procs.
Gas can be modified with adjust_gas() or adjust_gas_temp(), with
 variadic versions available for both. These are documented in
 gas_mixture_xgm.dm

Signed-off-by: Mloc-Argent <colmohici@gmail.com>
2014-07-22 18:38:31 +01:00
mwerezak
5ca36fcadb Merge branch 'dev' into power-net
Conflicts:
	code/game/machinery/Freezer.dm
	code/ATMOSPHERICS/components/unary/heat_source.dm
	code/modules/organs/organ_external.dm

Also updated:
	code/ATMOSPHERICS/components/binary_devices/pump.dm
	nano/templates/gas_pump.tmpl
2014-07-16 16:14:52 -04:00
mwerezak
1011800d78 Updates gas heaters
Gas heaters now draw power.
Removed the heat_resevoir base type because it was dumb and unused.
Adds a circuit board for gas heaters.
2014-07-15 20:34:48 -04:00
mwerezak
3fb3efe401 Adds a gas entropy system for pumps 2014-07-12 20:09:08 -04:00
mwerezak
c0487b9c90 Fixes human internal organs list 2014-07-12 16:15:37 -04:00
mwerezak
1db729e90c Makes telecoms heat production and power usage...
...less ridiculous. Now obeys something resembling the laws of physics.
2014-07-11 15:07:31 -04:00
mwerezak
b23b4dd7ce Cleans up air alarm cooling, limits temp to TCMB 2014-07-11 14:49:23 -04:00
mwerezak
db29d172f5 Air alarm cooling now resembles thermodynamics
Gas cooling power consumption now resembles the work required to operate
a Carnot heat pump. Cooling hot air takes less energy than cooling cold
air.
2014-07-11 14:34:07 -04:00
Mloc-Argent
1aca3fe7f2 atmos: make fires more destructive
Fires can now burn through walls, windows, and (with a high enough
 temperature) rwalls.
New proc: adjacent_fire_act().  Called on turfs that a fire isn't able
 to spread to. (walls, floor surrounded by windows, etc.)

Signed-off-by: Mloc-Argent <colmohici@gmail.com>
2014-06-23 20:58:14 +01:00
Mloc-Argent
da89c36cde atmos: fix a geometry error
reverse_dir is a list of reversed dir fields

Signed-off-by: Mloc-Argent <colmohici@gmail.com>
2014-06-23 20:58:10 +01:00
Mloc-Argent
a33cb7272b Merge remote-tracking branch 'upstream/master' into dev 2014-06-23 20:57:47 +01:00
Mloc-Argent
191e21ead6 atmos: fix everlasting fires
Fires were checking against a non-reduced air sample for existance, so
the reduced sample wasn't working in zburn when it failed the check.
Also fixed volatilefuel not being scaled in the phoron reagent.

Signed-off-by: Mloc-Argent <colmohici@gmail.com>
2014-06-22 15:25:23 +01:00
Chinsky
ded321d5c1 Nextgen lights #3: Fire
Fire now emites colored light, pretty rad.
2014-06-19 00:16:19 +04:00
Hubblenaut
33917763df Probability to bleed by airflow_hit lowered from 100% to 33% 2014-06-07 04:52:19 +02:00
Hubblenaut
2200ac8f47 Fixes suit icons not updating when bloodied by airflow 2014-06-06 20:43:47 +02:00
Zuhayr
cee5f92bcf Merge pull request #4986 from Intercross21/dev
Now you can set ZAS/Plasma settings to initial
2014-05-15 14:07:24 +09:30
Intercross21
a704efa3a9 Now variables renamed too. 2014-05-14 16:25:37 +04:00
Intercross21
9fd94c171e ... 2014-05-14 07:32:01 +04:00
Intercross21
8adef38cc4 Now you can set ZAS/Plasma settings to initial 2014-05-14 07:28:53 +04:00