Commit Graph

86 Commits

Author SHA1 Message Date
Aronai Sieyes
1fd1d84deb Runechat (#8121)
* Message piece combiner returns a list

* Emote formatter returns a list

* Port Runechat

* Various onamonapoea

* Suggested changes, small opts

* Fix chat message on different size mobs

* Couple more runefixes

* Enable encoding chat emphasis in runechat

* Remove extra asterisks from rune audible messages

* Fix runedefines
2021-06-13 22:18:43 -09:00
Novacat
305473a76a Makes deepspace levels slightly more robust (#8110)
* Makes deepspace levels slightly more robust

Port of https://github.com/VOREStation/VOREStation/pull/10408

This is supposed to fix oddities with the overmap system where occasionally deepspace sectors are not generated properly.

* Ports another Fix
2021-05-29 09:47:18 -09:00
Unknown
a86b36cbba Partially reverts https://github.com/PolarisSS13/Polaris/pull/7713
It turns out that not garbage collecting spawned carp from overmap events can cause server issues!
2021-03-30 12:29:21 -04:00
MistakeNot4892
b22a0568a3 Sideports a couple of init unit tests from Neb. (#7893)
* Sideports a couple of init unit tests from Neb.

* Trying to unfuck initialize logic.

* Removing del()s.

* Adjusting return values to Initialize().

* Moving some dangerous object logic from obj onto the two types that use it.

* Rolling back some init changes and commenting out initialized atom unit test.

* this comment formatting is a minor war crime

* Removed sleep() from signaler circuit Initialize().

* Additional Init fixes post-rebase.

* Uncomments subsystem test since that's passing.
2021-02-21 12:03:34 -09:00
Verkister
fa5aa67610 Fixes unreachable landmarks breaking spacetravel
Adds a sanity check to prevent overmap spacetravel locking onto unreachable landmarks (such as other shuttles and such that are docked inside other landmarks and thus not on the overmap itself) and getting killed by a runtime.
2020-12-01 22:12:22 +02:00
Meghan-Rossi
9611ae902e Makes wall-mounted machines layer above windows (#7708)
Makes wall-mounted machines layer above windows so that they are clickable if placed on windows
2020-10-16 23:01:39 -07:00
Atermonera
37d7360423 Mobs don't get lost in space (#7713) 2020-10-02 18:22:16 -07:00
Killian
d097e1e8c8 Update overmap_shuttle.dm 2020-09-05 09:14:56 +01:00
Atermonera
fee3fd2bc8 Merge pull request #7593 from Cyantime/patch-3
Increases number of things that survive overmap ztransit
2020-08-31 20:40:13 -07:00
Cyantime
dbc006fdc6 Stops meson/etc use with overmap consoles (#7591)
* Stops meson/etc use with overmap consoles

* whoops that's a living var

* testing is for nerds
2020-08-31 20:39:14 -07:00
Cyantime
b7b01eb7a6 Increases number of things that survive overmap ztransit 2020-08-28 18:52:27 -04:00
Atermonera
60aec770ff Station overmap sensors should connect automatically now (#7547) 2020-08-27 18:31:22 -07:00
Rykka
0c7a7fd2b8 Massive Ambience and Sound Overhaul + Addition, Squashed Commit Edition 2020-08-21 06:53:05 -04:00
Atermonera
f621edf039 Adds overmap sensors to the Southern Cross (#7436)
* Enables overmap on SC, adds wip Sif to SC skybox

* codersprites

* Adds overmap sensors to the Southern Cross
2020-08-12 18:31:19 -07:00
Leshana
07d483203d Fix sector initialization stack overflow crash.
- Replace changes from 8c7371c5d4
    - Removed debugging prints in skybox generation
    - Reverted change to GetConnnectedZLevels to avoid the chicken-or-egg initialization issue of find_z_levels() requiring knowledge of a sector's z-levels during the attempt to determine a sector's z-levels.
    - Make find_z_levels() always called again so that lazy open space initialization works on landable ships again.
- Instead, allow static configuration of sector map_z to override the default behavior of calling GetConnectedZLevels()
2020-06-25 10:40:22 -04:00
Atermonera
80c1557263 Enables overmap on SC, adds Sif to SC skybox (#6954)
* Enables overmap on SC, adds wip Sif to SC skybox

* codersprites
2020-06-17 16:12:20 -07:00
Rykka Stormheart
8235afb3ae Merge branch 'master' into shep-dev-multicam 2020-06-01 14:23:03 -04:00
Atermonera
14872117b8 Merge pull request #7246 from VOREStation/vplk-overmap-pixel-movement
[PORT] Overmap Ship Pixel Movement
2020-05-30 21:31:09 -07:00
Atermonera
55e12aad7b Merge pull request #7210 from VOREStation/vplk-static-power
[PORT] Static Machinery Power
2020-05-30 21:18:27 -07:00
Leshana
61352468dc Fixed build_overmap() to actually work. 2020-05-27 14:26:42 -04:00
Leshana
1c8ffad2c5 Overmap Ship Pixel Movement
- Moved ships to be in in SSprocessing so they get 1 second resolution.
- Add/remove ships from processing only when they are moving.
- Simulate pixel movement in code using pixel_x and pixel_y
2020-05-27 14:26:32 -04:00
Leshana
c9f54a9f43 Transform overmap ship icons to exact angle of heading. 2020-05-27 14:25:37 -04:00
Leshana
7e7b5b6e31 Fix gas thrusters turning off when trying to burn.
They expected use_power_oneoff to return the amount of power that *couldn't* be used, but they return the amount of power that *could*
2020-05-19 20:18:58 -04:00
Leshana
ccef6cc908 Implements "static" area machinery power usage
- Instead of using auto_use_power to re-tally up machinery's power usage every cycle, track the steady "static" load separately from the transient "oneoff" usage.  Machines then only need to inform the area when they use oneoff power or *change* their steady usage.
- Remove auto_use_power and stop SSmachines from calling it.
- Add vars to track "static" usage for each of the three power channels to /area
- Rename the existing three vars to "oneoff" so its clear what they mean (and to catch people accidentally updating them directly)
- Update area power procs and APCs to use the new variables.
- Rename /area/proc/use_power() to use_power_oneoff() to make it clear what it is doing.
- Deprecate /obj/machinery/use_power() in favor of use_power_oneoff() but don't delete yet.  Can transition gradually.
- Add logic to the update_power procs on machines to calculate the deltas and update static area power whenever their usage changes.
- Add logic to machines to update area power when they are created, destroyed, or move.
- Moved /obj/machinery procs related to area power usage into machinery_power.dm to make them easier to find.
- Added or updated comments in several places to explain what is going on and how to use it.
2020-05-19 20:17:48 -04:00
Aronai Sieyes
ad75bb86bd Alter playsound paradigm 2020-05-19 11:06:28 -04:00
Atermonera
e1152ddd9e Merge pull request #7116 from VOREStation/pol-meson
When looking at machines, don't allow mesons/material/etc
2020-05-15 17:56:06 -07:00
Aronai Sieyes
eff72a9850 Merge branch 'master' into pol-moved 2020-05-12 11:22:43 -04:00
Rykka
09183614fc AI Picture-in-Picture fixes, major exploit fix 2020-05-11 10:33:11 -04:00
Aronai Sieyes
0f11ea41ad When looking at machines, don't allow mesons/material/etc 2020-05-08 11:14:04 -04:00
Atermonera
845da77564 Merge pull request #7049 from Novacat/nova-accessory
Overmap Consoles now check access
2020-05-03 00:12:45 -07:00
Aronai Sieyes
6c6644f86c Rewrite examine() to pass a list around (#7038) 2020-04-29 13:42:16 -07:00
Aronai Sieyes
dcf88640ee Adds an overmap helper to find what sector you're in 2020-04-27 10:34:28 -04:00
Aronai Sieyes
bc1fa7bd05 Refactor Move() code 2020-04-27 10:08:55 -04:00
Unknown
01be312759 Overmap Consoles now check access
Also slightly tweaks 513 compatibility to be a little better.
2020-04-26 17:57:22 -04:00
Atermonera
abb66e24ed Merge pull request #7035 from VOREStation/vplk-shuttle-construction
[PORT] Ship/Shuttle Console Construction
2020-04-25 13:22:12 -07:00
Leshana
a279c698e3 Make shuttle control consoles constructable.
- Adds circuit boards for shuttle consoles. (Ferry, Multi, and Overmap).
- Deconstructing a console saves the linked shuttle tag in the board for when it is re-constructed.  New boards start blank but will auto-link if you build the console on a shuttle.
- Boards know what type of shuttle they can control and will only auto-link with a shuttle if it is the appropriate type.

Note: By default the only mapped-in shuttle consoles that are deconstrutable are overmap and multi shuttle consoles.   For any others, consoles built mid-game will be deconstrutable but the mapped-in ones will not.  That way the arrival, escape, supply ferry shuttles etc won't be messed with unless the mapper specifically chooses to override and make them that way.
2020-04-23 19:10:52 -04:00
Leshana
9c872f096f Add feedback to user if successful when reconnecting ship computers to ship. 2020-04-23 19:10:34 -04:00
Leshana
3093b5bbd8 Add circuitboards to make overmap ship computers constructable. 2020-04-23 19:08:20 -04:00
Leshana
66b40b2c71 Call update procs instead of directly setting idle_power_usage or active_power_usage.
- Adds the update_idle_power_usage() and update_active_power_usage() procs for the respective vars.
- Switches all places modifying those vars directly to call the procs instead.
- This will let us react to the change appropriately, paving the way towards static area power.
- Adds update_power_channel proc for the sake of completeness, but no machines actually modify it so far.
2020-04-21 12:53:05 -04:00
Atermonera
e399e21434 Merge pull request #6950 from VOREStation/pol-maphelp
Improves space edge-of-map behavior and add mapping tools
2020-04-08 23:09:56 -07:00
Leshana
d7e4c0d90d Cleanup code and comments.
- Refactor ion_storm to actually operate using start()/end()/announce()
- Remove unused variable and enhance comments.
2020-04-07 01:38:40 -04:00
Aronai Sieyes
12d4530de8 Port: Merge pull request 7018 from VOREStation/aro-overmapwrap
Move overmap wrapping onto edge turfs
2020-04-06 17:54:33 -04:00
Aronai Sieyes
e8bdadd0ab Port: Merge pull request 7007 from VOREStation/aro-teleshuttle
Adds an overmap shuttle to medical
2020-04-06 17:54:33 -04:00
Aronai Sieyes
7ff8e71db5 Port: Merge pull request 6946 from VOREStation/aro-announce
Don't announce overmap events
2020-04-06 17:54:33 -04:00
Aronai Sieyes
b3be065ae4 Port: Merge pull request 6900 from VOREStation/vplk-overmap-events
Overmap Events
2020-04-06 17:54:26 -04:00
Aronai Sieyes
736626c94d Improve space map edges 2020-04-02 10:42:27 -04:00
ShadowLarkens
6b802b61e8 Port VOREStation PR 6914 Speed up map load significantly
- Set initialized = FALSE on unsimulated turfs that need to intialize.
- Most of area/New() to initialize
- Faster lookup of self-init on atoms
- Split air alarm and fire alarm files, move new to initialize
- Tweak decals and opacity

Co-authored-by: Aronai Sieyes <arokha@arokha.com>
Co-authored-by: Leshana <Leshana@users.noreply.github.com>
2020-03-27 20:37:02 -04:00
Leshana
05081341b8 Spelling corrections. 2020-03-27 17:01:12 -04:00
Leshana
bd3212258f Configure skybox with random color for southern cross. 2020-03-23 21:05:06 -04:00
Aronai Sieyes
f57fd435c7 Add tooltips to visitable sectors on the overmap 2020-03-23 20:19:28 -04:00