Commit Graph

13 Commits

Author SHA1 Message Date
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 a45da3f0bb Add UAV and UAV control software 2020-05-11 21:35:06 -04:00
Aronai Sieyes 6c6644f86c Rewrite examine() to pass a list around (#7038) 2020-04-29 13:42:16 -07:00
Neerti e8c51b9291 Makes R_EVENT go everywhere. 2020-03-11 23:17:24 -04:00
Atermonera 72f8a9c5f5 Merge pull request #6722 from Heroman3003/powerfix
Fixes MCs not being rechargable
2020-02-24 13:24:38 -08:00
Atermonera 48eba82446 Merge pull request #6710 from Cerebulon/precisionplacement
Ports precision placement of items
2020-02-21 23:34:56 -08:00
Heroman 5d786ff855 Fixes MCs not being rechargable 2020-02-22 11:28:17 +10:00
Cerebulon f801cc95be Allows precision placement of most items 2020-02-19 21:16:26 +00:00
Leshana 42d25f823d Fix issues with New and Destroy in NTNet
- New() on atoms needs to call parent.
- Destroy() needs to return a qdel hint.
- Only add yourself to processing in Initialize() to make sure globals are instantiated.
2020-02-12 00:03:13 -05:00
Andrew 504c28bc84 Combat Mechs Can Punch More Things (#6303)
* Combat Mechs Can Punch More Things

Removes the var to check for the 5 things it can attack, instead it can punch anything (but not everything will take damage).

Gives punching objects a check so you don't accidently smash something without meaning to.

Gives closets and canisters a proc to take_damage so they'll actually get smashed by the mechs.

* Take_Damage Boogaloo

* More take_damage Stuff

Adds click delay on attacking barriers.
Proper noises when attacking material doors and barricades.

More stuff can be broken by mech punch and simple mobs.

* Adds changelong

* usr to user
2019-07-24 12:58:39 -08:00
Unknown 7594c28f21 Updates Part Twelve 2019-04-14 14:38:30 -04:00
Unknown 042720823a Updates Part Eleven 2019-04-13 19:30:30 -04:00
Unknown dfd9415458 Modern Modular Computers 2019-04-13 14:58:08 -04:00