Commit Graph

674 Commits

Author SHA1 Message Date
Arokha Sieyes
d00c5941ca Controllerized Planets
Controller with deferrals and SCHECKs to be specific. Won't lag while updating the sun, weather, or temperature.

Also moved some vars around. Namely the planet walls are stored on the planet, not in the weather_holder.

Planets now have their own turfs, the controller 'gives' them to the planets each cycle if there are any unallocated turfs in the global lists, to avoid iterating over other planets' turfs if you have more than one, then cuts the lists if you were crazy and some turf added some invalid type. This saves us type-checking in the for() loops later to make them crunch faster. The former operation should only happen once at the start of the game (and maybe very rarely when turfs are added/removed from a map during the game).

With regards to the temperature updates, rebuilding the zone entirely is an intensive operation. Instead we can use this new cheaty proc to do it from over here. ZAS code outside ZAS oh noooo. Well, the option is to snowflake this case into ZAS which is maybe worse?

Only downside to all this is that if you manually set weather and time it might take between 1-60 seconds for the controller to get around to checking if you wanted to update it. That's not that big a deal. If you really want you can now debug that controller and call doWork on it.
2017-04-18 20:08:22 -04:00
Anewbe
075cc0dde4 Merge pull request #3324 from VOREStation/port-bay-multiz-fixes
Ports a few fixes to multi-z and related code from Bay
2017-04-18 14:20:16 -05:00
Leshana
9a7dda1ad1 Implements footstep sound system and adds sounds to various floor types.
* Adds system for turfs to have "footstep sounds" that play when someone walks over them.
* Adds system for floor types (the kind of turfs where you can put tiles on them) to support the footstep sounds.
* Adds sounds to plating, tiles, wood, and carpet floor types.
* Footstep sound system is configurable in game_options.txt, it can be turned off completely or the volume adjusted.
2017-04-18 11:33:44 -04:00
Neerti
b551a30f3c Merge pull request #3319 from VOREStation/zero-pressure-water
Fix lung rupture while drowning in water.
2017-04-17 22:56:14 -04:00
Yoshax
b6fb86cd95 Does what ze captain wants 2017-04-17 18:43:31 +01:00
Leshana
ff3c5238aa De-snowflake thrown objects hitting turfs.
* Port of https://github.com/Baystation12/Baystation12/pull/16942
* Actually tell turfs when a thrown object hits them, and let them decide what to do about it!
  * We do this by calling hitby(), which is how it already works for obj and mob, so this makes behavior consistent.
* This allows us to cleanly solve the problem of a thrown object landing on open space without falling.
2017-04-17 13:13:40 -04:00
Yoshax
1c000715dd No longer shall ye burn from water 2017-04-17 15:29:08 +01:00
Leshana
a118aad7b3 Fix lung rupture while drowning in water.
* When water returned null from return_air_for_internal_lifeform() the life code treats that as vacuum.  Instead we must return a mixture containing at least some gas.
* It will attempt to use the exhale type for the species, or fall back to carbon_dioxide if it can't find that info.
2017-04-17 00:26:19 -04:00
Leshana
e8af4afc88 Port tg/paradise/good soft-edge lighting
Ports https://github.com/ParadiseSS13/Paradise/pull/6161
Its merged in nearly verbatim as far as the lighting module goes.
Changes outside the lighting module are merged based on our codebase.
2017-04-12 19:11:45 -04:00
Leshana
45058136e2 Replace opacity = X with set_opacity(X) so that the lighting system can update propertly. 2017-04-11 22:36:48 -04:00
MagmaRam
33dffeb0b8 Merge pull request #2955 from Anewbe/heart_damage
Big Ol' Medical Tweaks
2017-03-28 20:02:24 -05:00
Arokha Sieyes
77a73a898a Shuttle system tweaks
Fixes one line of code and touches up cryo shuttle look
2017-03-28 11:59:36 -04:00
Arokha Sieyes
1300ef333d Dynamic Shuttles - Code and Icon Changes 2017-03-25 21:00:08 -04:00
Anewbe
2c9c3e208e Merge branch 'master' of https://github.com/PolarisSS13/Polaris into heart_damage_2
# Conflicts:
#	code/modules/mob/living/simple_animal/hostile/giant_spider.dm
#	code/modules/organs/blood.dm
#	code/modules/organs/internal/lungs.dm
#	code/modules/organs/organ.dm
#	code/modules/organs/organ_external.dm
2017-03-22 17:29:01 -05:00
Anewbe
38598f3aae Merge pull request #3118 from Neerti/3/6/2017_surface_map
Continues work on the surface map
2017-03-22 16:33:40 -05:00
Neerti
b571ed9c66 Continues work on the surface map 2017-03-21 16:11:13 -04:00
Arokha Sieyes
c8e26b365a Flooring decals should work more places
Such as shuttles. A good example is the trader ship which has hazard stripes mapped in, which don't appear in the game because it doesn't work there.
2017-03-20 00:51:17 -04:00
Anewbe
7130d56b80 Merge pull request #3064 from Woodratt/WR_SC_Changes
WR_SC_Map_Changes
2017-03-08 19:58:46 -06:00
woodratt
19fb047f01 WR_SC_Map_Changes
- Fixes sprite issues with departmental intercoms.
- Tweaks to the random objects dm
- Copies Bay's flora and warning sign list, as well as ports some of their signs.
- Addition of a couple new floor decals.
- New table preset, wooden reinforced.
2017-03-08 17:44:48 -08:00
Anewbe
d68292b236 Merge pull request #3002 from Anewbe/plant_things
Space Vines are more dangerous
2017-03-05 14:15:13 -06:00
Neerti
0f781e36a7 Adds Multi-Z Test Map 2017-03-03 09:40:34 -05:00
Neerti
6377efd763 Fixes a few things, most notably the human layering number. 2017-02-22 00:36:47 -05:00
Neerti
836d8dfa3f More stuff, finalizes it I hope. 2017-02-20 18:28:31 -05:00
Anewbe
09e7d5aef9 Buffs Space Vines 2017-02-20 14:22:18 -06:00
Neerti
1d9e7c8c08 works on planet stuff 2017-02-06 20:45:21 -05:00
Anewbe
1b3b67b8ca Merge branch 'master' into heart_damage 2017-01-30 22:43:09 -06:00
Yoshax
8a5b09c539 Fixes slipping + lube 2017-01-25 20:33:11 +00:00
Anewbe
83db0cc38f Medical tweaks 2017-01-23 23:43:44 -06:00
Anewbe
0286be65ff Ports Bay's custodial bag tweaks 2017-01-14 23:44:16 -06:00
Anewbe
ae0d017763 Lasers can ignite thermite 2016-12-31 22:33:17 -06:00
Neerti
a8e5c62b9f Fixes floor lighting bug
When a floor was created, it would always be dark at a distance until nearby light sources turned off and on again.  This should fix that problem by forcing the overlay to update upon turf being changed.
2016-12-27 15:53:54 -05:00
Arokha Sieyes
c7291c315f Allow wet 'downgrades' on turfs
Such as allowing you to get water on a floor with spacelube to replace the lube with normal water which will eventually dry. Otherwise there is literally no way to clean up space lube. Which is a little ~~fun~~ crazy.
2016-10-26 22:21:48 -04:00
Neerti
393c9899a9 Adds Asteroid Cracks
Adds a new type of turf, which is a cracked asteroid floor.  It is functionally a space tile, which means air can escape through the cracks and into the void.  These cracks can be plugged by building a floor over them using rods and tiles.  The cracks are generated randomly along with the asteroid whenever a floor is placed, with a 1 in 10 chance of it being a cracked floor.
2016-10-02 06:26:44 -04:00
Datraen
03ed998576 Stops observers from leaving prints on the ground.
No more spooking the mortals, ghosts.
2016-09-01 12:36:02 -04:00
Yoshax
fb98b78eba Fixes sprite not updating to not be floating when leaving non-gravity 2016-08-30 21:03:41 +01:00
ColaFiend
50a93f98b1 Update floor.dm 2016-08-15 09:52:38 +01:00
Brightdawn~
b5eec907c0 Minor text fixes.
Changes description of rainbow shoes.

Adds description for:
Potted Plant
Plating
2016-08-15 06:31:42 +01:00
Yoshax
b2ba310df0 Fixes dirt 2016-08-13 15:30:20 +01:00
Yoshax
5ea796d344 Removes the delay from opening and closing hidden walls 2016-07-27 21:46:18 +01:00
Neerti
61e291a083 Merge branch 'master' of https://github.com/PolarisSS13/Polaris into 12/16/2015_newwizard 2016-07-08 21:00:12 -04:00
Neerti
8a61641479 Some more work + prep for drydocking. 2016-07-08 20:38:34 -04:00
Neerti
16426833cd Merge branch 'master' of https://github.com/PolarisSS13/Polaris into 7/5/2016_ai_core_defense 2016-07-05 17:39:26 -04:00
Neerti
bcca19bc71 AI Core Update
Changes layout of the AI core, see picture in PR.
Moves APCs for core and upload to the backs of the rooms.
Critical APCs can somewhat resist EMP now.
Gives turrets a ten second timeout until they go underneath the turret covers, unless turned off manually or if they lose power.
Adds a new type of turret specifically for the AI upload/core.  This type has more health, has a 1/3 chance to ignore EMP, and fires xray lasers, to counter ablative armor.
A new material called Durasteel has been added.  It is made from Plasteel and diamonds, and boasts more toughness than Plasteel alone, as well as reflectivity.  The inner walls of the AI core are made out of this new material, which makes emitters less helpful.
Emitters can be damaged by projectiles, and will explode if too much damage is sustained.  Shooting a Durasteel wall will likely cause you to lose the emitter.
New AI core turrets turn green when on lethal, to show that xray is coming.
2016-07-05 17:33:34 -04:00
Yoshax
99062cef3b Merge pull request #2042 from Neerti/7/5/2016_planetary_atmos
Planetary Walls
2016-07-05 13:48:06 +01:00
Neerti
dcf3f33450 Planetary Walls
Adds a new type of wall, which makes atmospherics pretend there is actually something beyond the wall that has gas to merge with.
I added some presets for normal air, as well as all of the terrestrial planets of the Vir system.
2016-07-05 07:10:16 -04:00
Neerti
20a3bd5b26 Merge branch 'master' of https://github.com/PolarisSS13/Polaris into 12/16/2015_newwizard 2016-06-26 20:14:29 -04:00
Yoshax
3ab725f980 Updates our own snow to have fancy footprints + stuff 2016-06-24 14:48:27 +01:00
Yoshax
53d67ee8af Ports Snowy stuff from Eros 2016-06-24 14:35:17 +01:00
Neerti
53d60eb554 Does even more work.
NOTE: asphyxiation is broken!
2016-06-23 05:21:04 -04:00
Datraen
2c95126a00 Merge pull request #1765 from Yoshax/cocainecocaine
Fixes snow and adjusts a definition
2016-06-01 15:57:15 -04:00