Commit Graph

1069 Commits

Author SHA1 Message Date
Aronai Sieyes
03f1295b45 Remove AI subsystems TICKER flag 2020-04-28 23:23:19 -04:00
Aronai Sieyes
8ec31c9aa4 Refactor AI into two subsystems and clean up targeting some 2020-04-26 23:32:45 -04:00
Aronai Sieyes
37e5bd237e Merge pull request #7434 from VOREStation/upstream-merge-6994
[MIRROR] [PORT] Refactor the gameticker controller into SSticker
2020-04-26 11:33:02 -04:00
Aronai Sieyes
7a3b4fe041 Tweak bluespace backpack radio 2020-04-25 18:40:32 -04:00
Leshana
d02a55920e Added filtering spans by specific request of Polaris. 2020-04-25 16:15:13 -04:00
Leshana
c789cad22e Change to use to_world and add wrapping spans. 2020-04-25 16:15:03 -04:00
Leshana
763753648b 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-04-23 19:04:34 -04:00
Aronai Sieyes
fc312dd9ea Merge pull request #7282 from VOREStation/aro-staticconfig
Make every config var static
2020-04-15 19:19:22 -04:00
Aronai Sieyes
5bc4b9e474 VS: Make every config var static 2020-04-15 19:06:06 -04:00
Aronai Sieyes
cc7da3ecc2 Make every config var static 2020-04-15 19:05:56 -04:00
Aronai Sieyes
b87f94d6fc Make starlight static 2020-04-15 19:02:21 -04:00
Aronai Sieyes
8512c48b3d Swap overlay cache for appearance cache in SSskybox 2020-04-15 18:37:13 -04:00
Aronai Sieyes
13b5238ca0 Merge pull request #7273 from VOREStation/sscleanup/remove-processScheduler
Remove the processScheduler
2020-04-15 15:25:46 -04:00
Aronai Sieyes
31f7f5b256 Fix shuttles not updating skybox 2020-04-14 17:31:32 -04:00
Leshana
3be0330db2 Remove the goonstation /datum/controller/processScheduler as it is no longer used. 2020-04-14 16:17:32 -04:00
Leshana
45c591e6f7 Revert "Debugging code to determine if Master failures actually happen while firing a subsystem."
This reverts commit 3e9c17c1c0.
2020-04-14 13:21:20 -04:00
Aronai Sieyes
d9b3739669 Merge branch 'master' into vplk-shuttle-construction 2020-04-13 09:30:05 -04:00
Aronai Sieyes
0d39c5535e Merge pull request #7200 from VOREStation/aro-offmap-rebase2
ITV Talon offmap spawn jobs
2020-04-13 09:28:19 -04:00
Aronai Sieyes
a8402f0df1 Merge pull request #7216 from VOREStation/upstream-merge-6966
[MIRROR] Refactor away area/New()
2020-04-12 22:56:50 -04:00
Aronai Sieyes
984415e9c9 Merge pull request #7177 from VOREStation/sscleanup/openspace
Refactor the Open Space controller into MC Subsystem
2020-04-12 21:55:20 -04:00
Leshana
262faa38e4 Replace global all_areas list with world.
It ends up having similar performance, so might as well not bother with all_areas.
2020-04-12 18:04:54 -04:00
Leshana
f23af78ae9 Setup auto-configuration of shuttle consoles.
- Its now possible to put shuttle consoles on a shuttle without a specific subtype or mapediting the shuttle_tag on them.
- After shtutle initialization, SSshuttles gives each initialized shuttle the chance to scan its areas for consoles it wants to claim and configure.
2020-04-11 18:13:19 -04:00
Aronai Sieyes
faacf88b5f VS: ITV Talon offmap spawn map 2020-04-11 12:04:39 -04:00
Aronai Sieyes
942ed8d806 Adds an overmap helper to find what sector you're in 2020-04-11 12:03:10 -04:00
Leshana
5bf15efcbc Refactor the Open Space controller into MC Subsystem
- Basically just refactor doWork() into fire() with the capablity to return in the middle with MC_TICK_CHECK.
- Move some vars around to be more organized.
- Only functional change is that when a turf is queued twice in one cycle, the second queue moves it to the end of the list instead of it being in the queue twice
2020-04-10 12:10:21 -04:00
Leshana
4c25dc91df Commit move of open_space_controller.dm to subsystems folder to track history through rename. 2020-04-10 12:07:07 -04:00
Leshana
6555799119 Revamp Start Now admin verb to actually wait until init is done before starting. 2020-04-10 11:41:38 -04:00
Leshana
6dc9ecd1af Fix: Only call autogamemode vote once. 2020-04-10 11:41:38 -04:00
Leshana
c4a8aa2b7b Refactor the gameticker into SSticker
- Instead of independently spawn'd while/sleep loops, it stores its state and lets the MC fire it.
  - Convert relative path indentation procs to absolute path as per modern style standards.
  - Break apart the inner loops into separate procs so you can see what is actually going on.
  - It now shows up in MC tab, along with stats about what phase it is in.
2020-04-10 11:41:38 -04:00
Leshana
a794fecea0 Move gameticker to subsystem folder before editing to track history thru rename. 2020-04-10 11:37:46 -04:00
Leshana
eac8efc96a Suspend SSmachines subsystem while we are initializing map templates.
- Adds the capability to "suspend" a subsystem while we're loading something.
2020-04-08 22:42:00 -04:00
Leshana
ec82db3bc3 MC Statpanel now distinguishes between NO_FIRE subsystems and OFFLINE (can_fire <= 0) subsystems 2020-04-08 19:31:19 -04:00
Leshana
9a4b3f7c8b Merge pull request #7159 from VOREStation/aro-fixes
2 fixes and Teshari maws
2020-04-08 19:30:35 -04:00
Leshana
81dfe61c7b Merge pull request #7145 from VOREStation/aro-randomfixes
Fix 2 minor issues
2020-04-08 19:26:14 -04:00
Atermonera
19133df3bf Merge pull request #6935 from VOREStation/vplk-escape-controller
Remove emergencyShuttle as a process controller
2020-04-07 02:09:22 -04:00
Novacat
9b73b67ddc Merge branch 'master' into upstream-merge-6923 2020-04-07 00:59:54 -04:00
Neerti
e89fef965e QoL: Stasis and Defibs 2020-04-07 00:39:35 -04:00
Leshana
08c2d2db6e Remove non-global references to SSgameMaster and SSevent_ticker
- Best practice to avoid holding onto references to the subsystem instances aside from the global variables. (In case of restart/recover etc).
- The reference to GM was entirely unused by any event or meta-event.  /datum/game_master would work fine using the global refs.
2020-04-06 17:28:11 -04:00
Atermonera
5c03273ce8 Merge pull request #6884 from Neerti/event_system_fix
Rewrites the Rewritten Event System
2020-04-06 16:23:39 -04:00
Aronai Sieyes
abd28b5d6d Fix per-zlevel skyboxes not really allowing custom ones
It's not going to break the world to remove this 'assumption' cache
2020-04-06 12:08:33 -04:00
Aronai Sieyes
d880b61cfd CHECK_TICK in xenoarch setup for the sake of largermaps 2020-04-05 11:58:14 -04:00
Atermonera
c467445cba Adds confirmations message to cancel vote (#6945) 2020-04-04 22:29:43 -04:00
Aronai Sieyes
1626df366c Merge pull request #7102 from VOREStation/aro-fakez
Improves space edge-of-map behavior and add mapping tools
2020-04-02 10:58:13 -04:00
Aronai Sieyes
f080a4baf3 [PORT] Speed up map load significantly 2020-04-02 10:25:03 -04:00
Aronai Sieyes
09003a6c61 Improve space map edges 2020-04-02 01:08:07 -04:00
Novacat
1cdd572e6a Merge pull request #7060 from VOREStation/upstream-merge-6902
[MIRROR] Convert alarm_manager into SSalarm subsystem.
2020-03-31 11:45:08 -04:00
Aronai Sieyes
35448c5b53 Merge pull request #7054 from VOREStation/aro-sscleanup
Clean up some subsystem things
2020-03-30 21:07:17 -04:00
Atermonera
8986eb7720 Merge pull request #6902 from VOREStation/vplk-ssalarm
Convert alarm_manager into SSalarm subsystem.
2020-03-30 20:41:10 -04:00
Leshana
3e9c17c1c0 Debugging code to determine if Master failures actually happen while firing a subsystem. 2020-03-30 20:30:37 -04:00
Leshana
118c669d6a Enhanced logging of Master and Failsafe controllers. 2020-03-30 16:48:18 -04:00