Commit Graph

48 Commits

Author SHA1 Message Date
Unknown
dfedf60c0f Requested Changes 2020-04-26 10:58:56 -04:00
Leshana
742a9b16c9 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-04-25 12:45:13 -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
Leshana
93fb3f7865 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-22 20:47:15 -04:00
Aronai Sieyes
d91be67bef Make Talon engines BEEFIER 2020-04-18 21:12:37 -04:00
Aronai Sieyes
01f57d4245 Merge pull request #7310 from VOREStation/vplk-lazy-landables
Lazy ship/landable Overmap Levels
2020-04-17 14:13:04 -04:00
Aronai Sieyes
3551edd8cc Improve ship scanners 2020-04-17 13:11:03 -04:00
Leshana
796c406965 Lazily create landable ship's overmap z-level on first use.
- Create the landmark as normal, but instead of allocating a z-level and placing it, register a pre_move listener on the shuttle and setup the z-level only when the shuttle is about to move to its overmap landmark.
- Change when shuttles fire the shuttle_pre_move_event to before calculating translation list to give us a chance to allocate the z-level.
2020-04-17 10:22:22 -04:00
Aronai Sieyes
d9b3739669 Merge branch 'master' into vplk-shuttle-construction 2020-04-13 09:30:05 -04:00
Leshana
4d9cc39664 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-11 19:54:03 -04:00
Leshana
13d4144bc1 Add feedback to user if successful when reconnecting ship computers to ship. 2020-04-11 18:13:19 -04:00
Leshana
bd2a734bc3 Add circuitboards to make overmap ship computers constructable. 2020-04-11 18:13:18 -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
3ac3641b79 Spelling corrections. 2020-03-27 18:11:39 -04:00
Leshana
f6835c639a Mark VOREStation edits 2020-03-27 18:08:12 -04:00
Aronai Sieyes
524ce4e2c4 Move overmap wrapping onto edge turfs
Allows there to be several overmaps
2020-03-27 14:33:06 -04:00
Aronai Sieyes
8ca275ed96 Add directional sensors 2020-03-26 15:58:53 -04:00
Leshana
73c4809d26 Add proc set_viewsize() to allow hooking actions when client.view is changed.
- Proc is on mob to simplify the standard use case; maybe someday actually save it there too if desired.
2020-03-15 17:59:17 -04:00
Aronai Sieyes
465bce2dd4 Rebalance gas/ion thrusters 2020-03-11 11:11:43 -04:00
Leshana
9cbdf184ff Ported Basic Overmap Functionality
- Ports the overmap, ships, sectors, and "landable" ships from baystation.
- Ports necessary computers to control ships and overmap shuttles.
- Shims missing machine and computer functionality pending future enhancements.
- Includes required new sprites and sounds.
2020-03-11 11:11:40 -04:00
Novacat
466516b066 Revert "Un-kevinzes nanoui and chemistry subsystems back into processes for greater good" 2019-04-08 15:24:27 -04:00
Heroman
b11015107c REVERT of nanoui/chemistry becoming subsystems (temp) 2019-04-05 13:30:32 +10:00
Novacat
dce3466f3b Merge pull request #4684 from VOREStation/upstream-merge-5814
[MIRROR] [READY]Makes a bunch of processes subsystems instead
2019-03-27 17:46:31 -04:00
kevinz000
6415e4193f [READY]Makes a bunch of processes subsystems instead 2019-03-27 16:03:51 -04:00
Neerti
fe0b7373b3 Ports TGstation view variables + admin proccall guards, and all the baggage that comes with it 2019-03-27 14:49:30 -04:00
Neerti
b9adc37685 Standardizes rotation verbs 2019-03-27 03:17:07 -04:00
Neerti
86174593bf Replaces GoonPS scheduled_tasks and obj processing with SMC processing subsystems and timer 2019-03-26 23:58:26 -04:00
Atermonera
131636b1d2 Capitalizes initialize() to Initialize() because Destroy() is capitalized and this is pretty nerve-grinding 2019-03-26 13:21:08 -04:00
Atermonera
de65c3c643 NanoUI now processes again 2018-08-25 21:13:16 -07:00
Leshana
5847319443 Update every initialize() proc to return an initialize hint.
* Yes, all of them.
* Also did a few corrections to redundant New() and broken Destroy() along the way
* Renamed the turf_initializer.initialize() proc to InitializeTurf to avoid confusion.
* Subsumed /area/proc/initialize into /atom/proc/initialize() - Made /area's LateInitialize to get same behavior as before.
2018-02-05 15:50:13 -05:00
Belsima
3320690a1e I before E (#4287)
* except after C

* maroonic mistake

* Improved use of sound files.

Also more grammar.

* now with less fuckup
2017-11-19 03:00:14 -06:00
PsiOmegaDelta
1b64487f8d More computer overlay changes.
Fixes #10764 and a couple other computers.
2015-08-20 08:38:43 +02:00
PsiOmegaDelta
0bf3c39095 Merge remote-tracking branch 'upstream/master' into dev-freeze
Conflicts:
	code/modules/mob/living/carbon/human/life.dm
2015-07-28 07:59:49 +02:00
mwerezak
680a052136 Fixes check_eye() for AI, pAI, and helm console
reset_view() is no longer called every time check_eye() is. Instead it
is called only when the mob's eye should change.
2015-07-11 23:26:57 -04:00
PsiOmega
1fea589ad7 Merge remote-tracking branch 'upstream/dev' into TheSummoning
Conflicts:
	code/game/machinery/cryopod.dm
	code/game/objects/items/weapons/clown_items.dm
2015-04-24 17:13:37 +02:00
PsiOmega
1ae0ad6d92 Updates the atom_pool, now datum_pool, to handle any datum object.
Makes the garbage collector similarly robust. Continues the whole Destroy/qdel porting.
2015-04-24 09:59:05 +02:00
Dennok
a65c3a63bc Fix 2015-04-22 09:43:15 +03:00
Dennok
3800db491f get_brake_path() change
Replace "max(abs(speed[1]),abs(speed[2]))" with "get_speed()"
I think this is more logically.
2015-04-22 09:27:24 +03:00
Dennok
44dc5c58ce Relocate rotate()
And add var/rotate for some dont rotated ship.
2015-04-22 09:12:24 +03:00
Dennok
98e6decd23 Remove standatd_icon 2015-04-21 20:22:51 +03:00
Dennok
fdc3dac17e Forbid delit [ 2015-04-21 16:06:38 +03:00
Dennok
bdc9642cfd Rotete replace. 2015-04-21 15:57:55 +03:00
Den
daf6c17c88 Fix speed and add rotate()
If move NORTH and EAST  speed[i] be + and "last_movement[i] + default_delay - speed[i]" decrease but if move SOUTH and WEST  speed[i] be - and "last_movement[i] + default_delay - speed[i]" increase. abs(speed[i]) Fix it. "last_movement[i] + default_delay -abs(speed[i])" always decrease.

rotate() rotate ship icon in move dir.(Don't need a make additional dir sprites)
2015-04-17 23:37:57 +03:00
PsiOmega
7e498e1cf7 Merge remote-tracking branch 'upstream/master' into dev-freeze
Conflicts:
	code/modules/hydroponics/seed_datums.dm
	code/modules/hydroponics/trays/tray_apiary.dm
	code/modules/power/apc.dm
	code/setup.dm
2015-02-27 09:06:48 +01:00
mwerezak
6d15809768 Corrects return values for the Topic procs of several computers and some other machines as well. 2015-02-25 21:32:35 -05:00
Chinsky
18607897f0 Merge branch 'master' of https://github.com/Baystation12/Baystation12 2015-02-21 21:47:16 +03:00
Chinsky
cbe030b56e Compile fix 2015-02-03 08:39:39 +03:00
Chinsky
2a1f0849d8 Cleaned out my WIP folder. 2015-02-03 08:27:18 +03:00