Commit Graph

6227 Commits

Author SHA1 Message Date
chromiumboy
636819f4e3 Hacking protections for airlocks (#18894)
* Adds the ability to better protect to the internal wiring of airlocks
- Achieved by opening the maintenance panel, adding either steel or plasteel to the airlock, then welding the plate in place
- To access the wiring, the plating must be cut with a welder and then pried out with a crowbar

* Code revisions
- Cleaned up the code
- Cutting the security grille can now shock you
- Atmospherics and Security dept airlocks start with a medium level of protection (a welded steel plate)
- Command dept airlocks start with a high level of protection (a welded plasteel plate and electrified security grille)

* Code revision
- Accounted for a potentially null string

* Update Content.Server/Construction/Completions/AttemptElectrocute.cs

Co-authored-by: Slava0135 <40753025+Slava0135@users.noreply.github.com>

* Update ChangeWiresPanelSecurityLevel.cs

Adjusted scope

* Update Content.Shared/Wires/SharedWiresSystem.cs

Co-authored-by: Slava0135 <40753025+Slava0135@users.noreply.github.com>

* Update Content.Shared/Wires/SharedWiresSystem.cs

Co-authored-by: Slava0135 <40753025+Slava0135@users.noreply.github.com>

* Update ChangeWiresPanelSecurityLevel.cs

Removed get / setter and added [ValidatePrototypeId] attribute

* Update ChangeWiresPanelSecurityLevel.cs

Set security level to "Level0" as the default

* Update airlock.yml

Removed 'super max' level of security

* Update WiresPanelSecurityLevelPrototype.cs

* Update WiresSystem.cs

Added check for WiresAccessible to OnInteractUsing

* Update AttemptElectrocute.cs

File scoped namespace

* Update ChangeWiresPanelSecurityLevel.cs

File scoped namespace

* Update AirlockSystem.cs

File scoped namespace

* Update SharedWiresSystem.cs

Removed boiler plate 'OnGetState' and 'OnHandleState'

* Update WiresPanelComponent.cs

Implemented AutoGenerateComponentState

* Removed unnecessary usage references

* use TryCloseAll when wires not accessible

* minor changes to AttemmptElectrocute

* lets try all 7 levels

* fix indent in airlock graph

* fix indent 2

---------

Co-authored-by: Slava0135 <40753025+Slava0135@users.noreply.github.com>
Co-authored-by: Slava0135 <super.novalskiy_0135@inbox.ru>
2023-08-10 11:33:03 +03:00
Leon Friedrich
9da4679220 Remove or fix broken Dirty() calls. (#18933) 2023-08-10 14:17:43 +10:00
Doru991
30f0ad2134 Botany tweaks vol. 2 (#18888)
* Even more consumption

* Revert "Even more consumption"

This reverts commit 94ae0eca0ba1b4a55913f92519e1354b77e70734.

Oops forgot a file

* Believe it or not, more nutrient consumption

* Buff ez nutrient and l4z

* Add left 4 zed to emagged nutrimax just because

* Change some thresholds
2023-08-09 19:43:06 -06:00
Ilya246
d3244b6049 copy-settings-to-all-similar for scrubbers and vents in air alarms (#18363) 2023-08-09 14:20:19 -04:00
Pieter-Jan Briers
9124c60db2 Fix assert when arming the nuke (#18891)
Apparently trying to anchor an entity twice throws an assert!
2023-08-08 22:16:41 -07:00
LankLTE
6b2fef1ac8 small moth changes (#18810)
* changes

* fix test fail hopefully

* disallow eating containers

* no more eating stored stuff
2023-08-08 22:05:05 -06:00
metalgearsloth
50f0d10226 Fix metabolizer exception (#18878) 2023-08-08 21:47:44 -06:00
Slava0135
375f487d94 Fix stun baton throwing and visual effect (#18777) 2023-08-08 12:19:31 -08:00
chromiumboy
2df70799f8 Add access configurator (#18638)
The access configurator programs the access levels of any access reader. To use the access configurator, players must:

- Insert an ID card
- Click a nearby entity with an access reader with the access configurator in hand
- Change the access list

Note that players only need one of the access levels listed on the device to lock/unlock it, but will only be able to alter access settings when they all of the access levels listed on the device

For example, an airlock which has 'Science' and 'Engineering' access listed can be opened by any player with either 'Science' or 'Engineering' access. However, to change the access settings on this airlock, a player must have both 'Science' and 'Engineering' access. This is to prevent people from easily breaking into secure areas with this tool, by adding one of their own access levels to the target device

Obviously, the most useful ID card to use with this tool is one with all access, since it can change the settings of any device. Removing all access requirements from a device will make it useable by anyone.

---------

Co-authored-by: Kevin Zheng <kevinz5000@gmail.com>
2023-08-08 10:30:46 -08:00
Ilya246
376a71100d Fix radiator transfer rate in high-pressure environments (#18858)
Co-authored-by: Kevin Zheng <kevinz5000@gmail.com>
2023-08-08 01:16:23 -07:00
Leon Friedrich
6982f238e8 Add SaveLoadSavePrototype test (#18859) 2023-08-08 17:27:16 +10:00
Doru991
67e2f3799f Minor botany tweaks (#18832)
* Make the water consumption actually influenced by the seed's water consumption value

* Tweak default water and nutrient consumption

* Composting plants works now

* Tweak seeds YML, add ez nutrient bottle to Nutrimax

* Increase default nutrient consumption a bit
2023-08-07 18:29:59 -06:00
Morb
8187e00072 [Trait] Wheelchair bound (#18785)
* Init commit

* move to shared and remove all from component

* maybe that

* Use SharedBuckleSystem

* Rename to WheelchairBound

* Move Carriage to prototype

* Update sprite to TG, add folded sprite, rename carriage to wheelchair

* Fix wheelchair rsi path

* Add stand & down for buckling

* Add wheelchair inhand sprites

* Move wheelchair down in file & fix fold sprite & add suffix Vehicle

* Use new wheelchair id

* Add standing & speed reset on component remove

* Split system to leg paralyzed and wheelchair bound

* Rename to LegsParalyzed

* Rename in prototype

* Move LegsParalyzed to shared

---------

Co-authored-by: Ray <vigersray@gmail.com>
2023-08-07 18:28:59 -06:00
TotallyLemon
fc0211e4e0 RPED can now add parts to in-progress machine frames (#16633)
* RPED construction

* Requested Changes
2023-08-07 20:26:24 -04:00
deltanedas
6f6f5cbdab remove sharps from uplink code (#18807)
Co-authored-by: deltanedas <@deltanedas:kde.org>
2023-08-07 20:16:49 -04:00
Fahasor
c34878e775 Mop fix (#18758) 2023-08-07 11:47:34 -06:00
Kevin Zheng
57bf21cb6a Add atmos tick time to atmos device update event (#18781) 2023-08-07 11:36:43 -06:00
metalgearsloth
3b1e6d30e7 Remove GCQueue (#18820) 2023-08-07 11:27:46 -06:00
ShadowCommander
c4fb166af3 Particle Accelerator power changed admin chat warning (#18806) 2023-08-07 11:07:57 -06:00
ubis1
e203423665 Emaggable protolathe (#18456) 2023-08-08 00:21:04 +10:00
Chief-Engineer
1c476731ed add destructible logs (#18788) 2023-08-08 00:20:32 +10:00
deltanedas
3e64676dbd meat rotting hotfix (#18760)
Co-authored-by: deltanedas <@deltanedas:kde.org>
2023-08-07 21:13:35 +10:00
metalgearsloth
649295dcd2 Call goat protective services (#18812)
* Limit reproductivecomponent in confined areas

* Slight bump
2023-08-07 04:48:47 -05:00
Slava0135
53db6bc265 Examine throwable damage (#18580) 2023-08-07 19:09:35 +10:00
Leon Friedrich
88b3417c3d Fix setmind command (#18799) 2023-08-07 17:18:39 +10:00
Kara
afead24f1e Rename spacebucks to spesos (#18805) 2023-08-06 23:43:34 -06:00
Leon Friedrich
6a45d36457 Fix mind test issues (#18793) 2023-08-07 13:29:10 +10:00
Moony
81e4668df3 Revert "Make power grid check event force APCs off (#17935)" (#18731)
This reverts commit d21e4a1d4e.
2023-08-06 13:39:48 -05:00
Ilya246
f99741937c Adjust radiator flow rate and fix space detection (#18764)
The previous dT did not accurately represent the actual tick time. This is being investigated separately.

Check environment mixture for zero moles, because space mixtures do not necessarily return null.

While here, make an unrelated style change involving TryComp.
2023-08-06 10:23:43 -07:00
Slava0135
b49f0df05e fix reflected projectiles dealing stamina damage (#17648) 2023-08-06 23:44:41 +10:00
Kevin Zheng
db5dee6db3 Add radiators (#18728)
* Add radiators

* Limit heat transfer to fluid heat capacity

* Adjust datafield names

* Fix material arbitrage

* This code has been debugged, and so there are no more bugs. Debugging code is therefore unnecessary

* Adjust radiator layer subfloor visibility

* Cache CVars

* No default

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>

* Like and unsubscribe

* Fix CVar caching

---------

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
2023-08-06 02:21:05 -06:00
Errant
999fa62538 Fix energy swords healing blunt (#18753)
* esword fix

* comment
2023-08-06 02:19:32 -06:00
metalgearsloth
83a43b83b3 Medibot fixes (#18744) 2023-08-06 00:38:14 -06:00
Bixkitts
956e8b46dd Fixed Kudzu Spread Falling Asleep After Containment (#18218)
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
2023-08-06 16:08:07 +10:00
metalgearsloth
5d3503222c Cleanup some lookup stuff (#18738) 2023-08-06 15:11:43 +10:00
Vordenburg
413370d545 Fix RandomHumanoid spawn loadouts (#18723) 2023-08-06 14:54:45 +10:00
metalgearsloth
cc5d83fe21 Pathfinder parallel change (#18736) 2023-08-06 14:41:57 +10:00
deltanedas
37b02466ff rotting meat (#18515)
Co-authored-by: deltanedas <@deltanedas:kde.org>
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
2023-08-06 13:05:43 +10:00
metalgearsloth
aa8efc9a26 Melee rebalancing (#17520) 2023-08-06 12:55:38 +10:00
Leon Friedrich
28a5e32f5e Add prototype serialization tests. (#18458)
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
2023-08-06 12:47:45 +10:00
metalgearsloth
d3aece12cb Lookup changes (#18416) 2023-08-06 12:44:05 +10:00
Vordenburg
cc8b642444 Add linter-friendly WeightedRandom prototypes (#18729) 2023-08-06 12:31:25 +10:00
Leon Friedrich
9c84108672 Change default test pooling options. (#18732) 2023-08-06 12:30:28 +10:00
metalgearsloth
fb4d980848 Mining tweaks (#18686)
So we have pickaxe, drill, crusher, and PKA (projectiles).
The tier list in terms of mining speed should go:
- PKA
- Crusher
- Pickaxe
- Drill

As a result:
- Nerfed PKA firerate to 0.5 and bumped damage (slight DPS nerf due to meta).
- Crusher bumped to 1 hit per second as PKA is still more common and also to make it better at mining.
- Pickaxe is 1 hit per second and also gets structural (fireaxe should still beat it by a little bit) so it's better to break stuff than crusher but worse in combat.
- Drill is 1.5 hits per second but otherwise weak.
2023-08-05 20:23:38 -05:00
Vordenburg
7d08061304 Make anchoring nukes require enough nearby floor (#18720)
* Make anchoring nukes require enough nearby floor

* Remove unused Anchorable event subscriptions

The nuke doesn't have Anchorable so this never comes up.
2023-08-05 16:28:06 -05:00
Vordenburg
28fe9d9f33 Refactor PacificationSystem (#18715) 2023-08-05 16:27:12 -05:00
Vordenburg
298623df4a Add ClearFactions API (#18719) 2023-08-05 13:54:43 -07:00
Chief-Engineer
1b5ec34a7a add decal logs (#18710) 2023-08-05 16:53:02 -04:00
Vordenburg
8a02bb5cda Make Rejuvenate empty Bloodstream chemicals (#18716) 2023-08-05 13:51:07 -07:00
Vordenburg
99a27f3018 Fix wrong Length usage in HandLabeler (#18718) 2023-08-05 13:50:57 -07:00