Commit Graph

43 Commits

Author SHA1 Message Date
jellyveggie2
0471421e9a Reworks electric power grid to have priority levels (#32613)
* Move machinery procs from power to machinery. Getting real tired of confusing them for power procs, why were they even there?

* use_power = [0-2] replaced with the proper MACHINE_POWER_USE(NONE|IDLE|ACTIVE) defines. KEEP IT CLEAN

* Creates MACHINE_POWER_USE_GRID, for machines marked as MACHINE_POWER_USE_NONE that were actually drawing power, and doing so straight from the grid

* More numbers to defines

* Power connection component: Get rid of unused parameters on New() that were being misused anyway, and more importantly make the radio broadcaster actually draw it's power through the component instead of APCs.
NEEEEXIIIIS!

* ...actually adds MACHINE_POWER_USE_GRID this time
JEEEELLLYYYYYY!

* Converts a bunch of snowflakes into using the power connection component

* RECAP: Alright, I've fixed some major peeves and made sure no one's adding load to the powernet without going through a machine/component first, now is the time to start modifying how power draw works

* Give grid loads priorities, and convert powernet.load to a list of loads. Does nothing yet

* Satisfaction

* Converts power sink and singularity beacon

* Converts wall shield generator

* Converts emitters. Emitters will turn off below 30% satisfaction, and beam power will be affected by power satisfaction; eg: at 50% satisfaction beams will only be 50% as powerful

* Converts the antique matter synth

* Converts APCs

* get_satisfaction() for cables

* Converts SMES

* Converts artifacts

* Fixes a bunch of stupid things with SMESs and APCs, turns some more use_power numbers into defines, and gets rid of MACHINE_POWER_USE_GRID cause there's really no need for it, not yet.

* Fixes for power sink and singularity beacon

* Antique synth fixes

* More SMES fixes. No more free energy shenanigans, and measured output/load should update properly now

* Converts radio broadcaster and syphoners. Also adds a way to connect to smooth cables, because syphoners.

* RECAP: I think that should be it for converting and testing priority/satisfaction stuff. Up next is reworking the power monitor to display all loads (not just APCs) grouped by area, and each load's priority, as well as controls to edit a load's priority.

* Power monitor is in a workable state. Issues so far:
- It looks like ass. The "area details" buttons are ugly, and the priority dropdowns are uglier AND  fuck up the vertical spacing between rows
- Power connection machines (eg: radio transmitter) don't show up
- Setting an SMES priority low enough it won't charge means it won't appear on the list, so can't change priority back. other machines likely affected too

Still, it's taking shape

* Couldn't get priority dropdowns to look nice, switches them for buttons. Touches up the show/hide details button to look nicer

* Ensure normal power/connection machinery does show up by default

* Give artifacts BYPASS priority so xenoarcheologists don't have to wonder whether it's working or not (assuming there's enough power on the grid)

* Make sure any SMES do show up even if not charging, so you can raise their priority if need be

* Allow players to set the SMES' (until now unused) nametag, to better identify them on the monitor

* Review 1

* Review 2
Adds TOTAL_PRIORITY_SLOTS for clarity instead of using POWER_PRIORITY_EXCESS
2022-06-04 00:03:58 -05:00
d3athrow
642b843d9d Revert "[MDB IGNORE] Liquid reagent puddle system (#32169)"
This reverts commit a5b08f232a.
2022-03-17 14:13:40 -05:00
kane-f
a5b08f232a [MDB IGNORE] Liquid reagent puddle system (#32169)
* Actual icon

* Puddle reformatting

* Basis of smoothcode

* Moving puddle code into a turf reagent system, reformat and overhaul

* Make this act on splashing, for now

* More work on standardising behaviour

* More standardisation, should ideally make spread work nicer

* Some tweaks

* Fixes

* Makes it work in practice, code slimmed down

* More standardising

* Redone calculations

* Fixes infinite reagents

* Puddle scaling with volume

* Presets for mapping

* Actual stuff

* Better way

* Get actual turf

* Blacklisting some of these

* Evaporation rate

* Removing old splash verb, adding reagents to a turf should do this by default now

* Makes these invisible

* Makes this not cleanable, for now

* Standardising this into reagent stuff

* Fixes

* Space clears reagents

* Basic viscosity system

* Adds some rudimentary values

* Space cleaner thng

* Beginning rework of this, removing unused fuel type

* Fuel puddle rework

* Fuel puddle rework

* Find and replace mishap

* Removing from .dme

* Removing unused variable

* Rewriting the preset init ones

* Redoing mapped puddles

* Makes sure these are gone

* Type fix

* New plane and layer

* Makes slip work

* Fix

* Fix

* Puddles can now react to crossing over it

* Proper bracketing

* Puddle values

* Current puddle reference to save on locating

* Nicer smoothing

* Tweaking values

* Water color tweak

* Greatly simplifies wet floor puddles

* Simplified line

* No reason for invisible puddles anymore

* Makes wet/dry vaccuum work with this

* Mop

* Reformatting how reagents are held

* Allows space cleaner to clean some kinds of puddles

* Fixing

* Moving this to simulated level

* Fixes puddles not being made anymore

* Standardised alpha

* Removing this for now

* Fixing chem dupe issue for when this matters

* Server config for behaviour

Co-authored-by: kanef <kanef9x@protonmail.com>
2022-03-11 19:13:44 -06:00
DamianX
96f788e843 Updated TGUI (#32101) 2022-02-21 13:19:13 +00:00
dependabot[bot]
dc17fc97df Bump fastify-static from 4.2.3 to 4.4.1 in /tgui (#32063)
Bumps [fastify-static](https://github.com/fastify/fastify-static) from 4.2.3 to 4.4.1.
- [Release notes](https://github.com/fastify/fastify-static/releases)
- [Commits](https://github.com/fastify/fastify-static/compare/v4.2.3...v4.4.1)

---
updated-dependencies:
- dependency-name: fastify-static
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-13 04:34:34 +01:00
dependabot[bot]
884248ad32 Bump axios from 0.21.1 to 0.21.2 in /tgui (#32062)
Bumps [axios](https://github.com/axios/axios) from 0.21.1 to 0.21.2.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.21.1...v0.21.2)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-13 04:34:15 +01:00
gurfan
12b68b9546 Electric Boogaloo (Take Two) (#31892)
* wall and floor and overlay icons

* HOLY SHIT PLANEMASTERS ARE AMAZING <3 LUMMOX

* nevermind shit is fucked i hate byond

* apc hackin tweaks start now

* attack_ai is overridden almost everywhere for zero reason

* more attack_ai shit

* more shit

* FORCEDISABLE pt. 1

* FORCEDISABLE pt 2

* more forcedisable 3

* 3.1

* end of forcedisable

* remove all hackview shit, cleanup

* better apc hacking, lots of fixes, and UI!

* more machine ability, lots of cleanup, radial lock updating, modules and active modules

* movable ui elements

* ADVANCED hologrmas

* more SHIT

* SHUNTSHUNTSHUNT

* fig congflgighgsa

* more testing

* fuck

* commit 2

* holo fixes

* fake APC images!

* lots of stuff

* fixes and cleanup and vomit

* More abilities. AI Control fixes and cleanup

* fixes

* fix

* clear another warning

* remove comment fix numbers

* raise price

* raise price

* fix

* 1 autoborger limit

* remove undocumented change

* handle at bot level

* order of operations

* dont call ert

* decrease

* fix unit test

* icon check please work

* remove unused icons, comment out chem dispenser drain

* comment out firewall, add disable to turrets

* remove unused wall icons

* Sort mob list, humans appear at the top

* fix sorting, fix hologram bug

* hologram tweaks, stupid fucking alert APC name

* qdel

* raise ever so slightly

* revert

* Delete broken_hand_icons.txt

* Update setup.dm

* Create setup.dm

* attack_self

* fix filter icon, delete unused file, remove forcedisable from magtape deck

* accidental change

* mousedropfrom recharge station

* oh rite

* fixo

* remove useless code

* aaahhh

* remove rig meal, made obsolete by emag

* fffffshhhhhhwooooop

* typo!
2022-01-31 18:18:06 -06:00
DamianX
b96217a2fc Fixed build system (#31867) 2022-01-20 16:52:46 +01:00
DamianX
c5dffbe635 Revert "Electric Boogaloo (#31728)" (#31868)
This reverts commit 8bb40feca6.
2022-01-19 15:46:18 +01:00
gurfan
8bb40feca6 Electric Boogaloo (#31728)
* wall and floor and overlay icons

* HOLY SHIT PLANEMASTERS ARE AMAZING <3 LUMMOX

* nevermind shit is fucked i hate byond

* apc hackin tweaks start now

* attack_ai is overridden almost everywhere for zero reason

* more attack_ai shit

* more shit

* FORCEDISABLE pt. 1

* FORCEDISABLE pt 2

* more forcedisable 3

* 3.1

* end of forcedisable

* remove all hackview shit, cleanup

* better apc hacking, lots of fixes, and UI!

* more machine ability, lots of cleanup, radial lock updating, modules and active modules

* movable ui elements

* ADVANCED hologrmas

* more SHIT

* SHUNTSHUNTSHUNT

* fig congflgighgsa

* more testing

* fuck

* commit 2

* holo fixes

* fake APC images!

* lots of stuff

* fixes and cleanup and vomit

* More abilities. AI Control fixes and cleanup

* fixes

* fix

* clear another warning

* remove comment fix numbers

* raise price

* raise price

* fix

* 1 autoborger limit

* remove undocumented change

* handle at bot level

* order of operations

* dont call ert

* decrease

* fix unit test

* icon check please work

* remove unused icons, comment out chem dispenser drain

* comment out firewall, add disable to turrets

* remove unused wall icons

* Sort mob list, humans appear at the top

* fix sorting, fix hologram bug

* hologram tweaks, stupid fucking alert APC name

* qdel

* raise ever so slightly

* revert

* Delete broken_hand_icons.txt

* Update setup.dm

* Create setup.dm

* attack_self

* fix filter icon, delete unused file, remove forcedisable from magtape deck

* accidental change

* mousedropfrom recharge station

* oh rite

* fixo

* remove useless code

* aaahhh
2022-01-19 08:15:08 -06:00
dependabot[bot]
fcbc9f8011 Bump marked from 2.1.3 to 4.0.10 in /tgui (#31837)
Bumps [marked](https://github.com/markedjs/marked) from 2.1.3 to 4.0.10.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/.releaserc.json)
- [Commits](https://github.com/markedjs/marked/compare/v2.1.3...v4.0.10)

---
updated-dependencies:
- dependency-name: marked
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-19 07:16:46 -06:00
DamianX
a3a6ca6de4 Fixed religion UI bugs (#31237) 2021-11-08 14:49:11 -06:00
DamianX
d7957b2aaf Fixed power monitor showing big numbers incorrectly (#31150) 2021-10-26 00:34:08 -05:00
DamianX
722144523e Fixed TEG ui (#31121) 2021-10-20 14:00:18 -05:00
DamianX
c8f7857a06 Updated TGUI (#31032)
* Updated TGUI

* Added MIT license file

* Changed cr to credits
2021-10-18 16:29:32 -05:00
DamianX
d0d3d49725 new way to choose religion (#31103)
* new way to choose religion

* Capitalize the things, removed debug verb, disappear the search bar when creating a custom religion

* update bundle
2021-10-18 12:14:37 -05:00
DamianX
89b1dbcd7e Spritesheet for the merch store (#31073)
* Spritesheet for the merch store

* removed the old image stuff
2021-10-16 16:07:30 +02:00
DamianX
4d5f54fdf5 Fixed SpessTV buttons appearing on regular camera consoles (#31096) 2021-10-16 02:33:37 -05:00
DamianX
20b9403fd4 Re-implemented Spess.TV cameras (#31086) 2021-10-15 11:54:46 +00:00
DamianX
0542bd2019 tgui MSGS (#30983)
* tgui MSGS

* fix conflicts
2021-10-07 07:50:21 -05:00
DamianX
3196622f57 tgui merch computer (#30961)
* tgui merch computer

* header

* update

* update bundle
2021-10-06 19:38:37 -05:00
DamianX
7b073d53df tgui TEG (#30984)
* tgui TEG

* don't need this
2021-10-04 13:07:10 +00:00
DamianX
223e707aa3 tgui power monitor (#30880)
* tgui power monitor

* Unmet Demand (#5)

* Unmet Demand

* remove debug

* unmet

* please the linter gods

* Revert "Unmet Demand (#5)"

This reverts commit ccb09061af.

* abandon unmet, fix chart

Co-authored-by: Kurfursten <scouttac@gmail.com>
2021-09-30 20:52:26 -05:00
Shifty
927f343838 second 2021-09-18 00:37:07 +01:00
DamianX
c9d6a779d6 tgui security cameras, removed advanced security camera console (#30607)
* tgui security cameras, removed advanced security camera console

* Si può fare!

* You didn't see that

* don't need this shit anymore
2021-09-17 16:32:16 -05:00
gurfan
0228694246 TGUI Exosuit Control Console (#30707)
* MECHAS!

* fix/tweak/fix

* round this

* Revert "round this"

This reverts commit aa6996968b.

* no round THIS

* 2

* format this correctly

* revert

* Update tgui.bundle.js
2021-09-17 14:35:25 -05:00
gurfan
a1edb27ce4 TGUI Robotics Console (#30696)
* work

* thanks damian

* a

* figs

* una

* MIT

* fix formatting

* better formatting

* oh

* okay

Co-authored-by: jknpj <jknpjr@gmail.com>

* reeevert

Co-authored-by: jknpj <jknpjr@gmail.com>
2021-09-17 10:30:17 -05:00
DamianX
2df22e1743 Updated vscode files for tgui (#30697)
* Updated vscode files for tgui

* fix this too
2021-09-11 22:30:50 +00:00
DamianX
95cb0d4d23 Components! TGUI uplinks! Oh god! (#30641)
* components

* tgui uplink

* Components! TGUI uplinks! Oh god!

* yeah

* this too
2021-09-09 12:44:13 +00:00
DamianX
9fc6406a87 tgui 4 (#30535)
Co-authored-by: ShiftyRail <31417754+ShiftyRail@users.noreply.github.com>
2021-09-07 16:15:19 +01:00
dependabot[bot]
c28848476a Bump color-string from 1.5.3 to 1.6.0 in /tgui (#30217)
Bumps [color-string](https://github.com/Qix-/color-string) from 1.5.3 to 1.6.0.
- [Release notes](https://github.com/Qix-/color-string/releases)
- [Changelog](https://github.com/Qix-/color-string/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Qix-/color-string/commits/1.6.0)

---
updated-dependencies:
- dependency-name: color-string
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-15 00:58:19 +00:00
dependabot[bot]
e77c88e4bc Bump path-parse from 1.0.6 to 1.0.7 in /tgui (#30183)
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-15 00:57:03 +00:00
dependabot[bot]
9d71be2707 Bump postcss from 7.0.29 to 7.0.36 in /tgui (#29816)
Bumps [postcss](https://github.com/postcss/postcss) from 7.0.29 to 7.0.36.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/7.0.29...7.0.36)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-19 21:25:38 -05:00
dependabot[bot]
8f02ccc802 Bump browserslist from 4.12.0 to 4.16.6 in /tgui (#29611)
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.12.0 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.12.0...4.16.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-30 14:05:20 -05:00
dependabot[bot]
0883ba6cac Bump ws from 7.2.5 to 7.4.6 in /tgui (#29638)
Bumps [ws](https://github.com/websockets/ws) from 7.2.5 to 7.4.6.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.2.5...7.4.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-30 19:40:13 +02:00
dependabot[bot]
839d7c3a48 Bump lodash from 4.17.19 to 4.17.21 in /tgui (#29510)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.19...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-21 10:01:25 -05:00
dependabot[bot]
55123de2be Bump ssri from 6.0.1 to 6.0.2 in /tgui (#29294)
Bumps [ssri](https://github.com/npm/ssri) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/npm/ssri/releases)
- [Changelog](https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md)
- [Commits](https://github.com/npm/ssri/compare/v6.0.1...v6.0.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-20 00:14:25 -04:00
dependabot[bot]
f2354a2044 Bump y18n from 4.0.0 to 4.0.1 in /tgui (#29129)
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-02 14:31:13 -04:00
dependabot[bot]
3abb1d9be4 Bump elliptic from 6.5.3 to 6.5.4 in /tgui (#29079)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-26 15:12:11 -04:00
dependabot[bot]
83b4d7ce70 Bump dompurify from 2.0.11 to 2.0.17 in /tgui (#28422)
Bumps [dompurify](https://github.com/cure53/DOMPurify) from 2.0.11 to 2.0.17.
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](https://github.com/cure53/DOMPurify/compare/2.0.11...2.0.17)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-25 13:33:52 -05:00
dependabot[bot]
ca562a9e6b Bump lodash from 4.17.15 to 4.17.19 in /tgui (#27183)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-05 20:28:48 -04:00
dependabot[bot]
95a8111f11 Bump elliptic from 6.5.2 to 6.5.3 in /tgui (#27338)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-05 20:15:35 -04:00
DamianX
cc0f19343e tgui (#27012)
* tgui

* removed converting-old-tgui-interfaces.md

* added sqlite migration, removed tgui_lock (seems unused??)

* added MIT header to SStgui

* updated link in tgui.html

* update README.md

* change license in README.md

* SS_PRIORITY_TGUI

* Bind KitchenSkin to CTRL+ALT+0 because my keyboard requires shift to enter equals sign

* Converted GPS to tgui, removed getviewsize

* remove intellicard.js, revert aicard.dm, remove unused scss

* removed hands.dm, added license and copyright to adjacent.dm and Gps.js

* fix .dme

* removed references to interface scss files
2020-07-08 19:03:24 -03:00