Commit Graph

5211 Commits

Author SHA1 Message Date
Michael Cooke
3cf08af9dd Fix opposite force when throwing objects (#4398)
* Fix opposite force when throwing objects

* DRY the throw impulse vector calculation
2021-07-31 22:53:18 +10:00
Vera Aguilera Puerto
c0c18b555b Fix incorrect changelog. 2021-07-31 14:09:51 +02:00
PJBot
58b86addee Automatic changelog update 2021-07-31 08:07:27 -04:00
plinyvic
e5956566f5 grindable/juiceable stacks (#4391)
* grindable/juiceable stacks

reagent grinder now takes stacks into account
added ScaleSolution that allows easy scaling of solution contents

* grindable/juiceable stacks revision

grinder/juicer stack fix now ECS
added JuiceableScalingEvent

* Update Content.Server/Kitchen/EntitySystems/ReagentGrinderSystem.cs

Co-authored-by: mirrorcult <lunarautomaton6@gmail.com>

* Update Content.Server/Kitchen/EntitySystems/ReagentGrinderSystem.cs

Co-authored-by: mirrorcult <lunarautomaton6@gmail.com>
Co-authored-by: Vera Aguilera Puerto <6766154+Zumorica@users.noreply.github.com>
2021-07-31 14:06:24 +02:00
mirrorcult
8aa4f998de Metabolism refactor (#4395)
* metabolism -> respirator, add reageanteffect and reagenteffectcondition, start on metabolizercomp/system

* move LiverBehavior metabolism logic to Metabolizer

* minor tweaks and update all YAML

* how about actually taking conditions into account

* off by one

* removals

* reviews
2021-07-31 13:50:32 +02:00
Galactic Chimp
41c30aa28b Merge branch 'master' into replace-sounds-with-sound-specifier
# Conflicts:
#	Content.Server/Hands/Components/HandsComponent.cs
#	Content.Server/Light/Components/ExpendableLightComponent.cs
#	Content.Shared/Light/Component/SharedExpendableLightComponent.cs
2021-07-31 13:16:03 +02:00
Vera Aguilera Puerto
dc18997bf8 Removes LoopingSoundComponent. (#4396)
I'm sorry.
2021-07-31 12:41:59 +02:00
mirrorcult
f93bdcd226 Fix serv warnings (#4400) 2021-07-31 01:59:18 -07:00
Leon Friedrich
dbc90f202a Bug fixes for metabolisable reagents (#4385)
* HealthChangeMetabolism now scales with ticktime and metabolism rate

Both Food and Drink metabolisms scale with ticktime, Now HealthChangeMetabolism also does so.

Additionally, 'healthChange' now correctly scales with the metabolism rate, so it's description is now correct.

* LiverBehaviour now uses correct frameTime

Previously, the liver only metabolised reagants once every second, but incorrectly passes the current frameTime to the metabilism function, not 1 second.

* Stomach now only transfers non-empty solutions.

Makes debugging bloodstream bugs easier if the stomach is not constantly adding empty solution to it.

* Fixed StomachBehaviour using wrong SolutionContainerComponent

Stomach was using the first SolutionContainerComponent in the owner of the body, instead of the container in the owner of the mechanism (stomach). As a result, it used to use the BloodStreamComponent.Solution as a "Stomach".

* Update StomachBehavior.cs

Somach now checks if it still contains a reagant, before transferring it.

* Added argument to IMetabolizable.Metabolize()

Added availableReagent argument to IMetabolizable.Metabolize(), This ensures that this function does not over-metabolize a reagant, which can happen if tickTime*metabolismRate is larger than the available reagant

* Revert "Stomach now only transfers non-empty solutions."

This reverts commit 2a51e2d87e6e17ab76b48e5316ce501ec05ac061.

* Renamed _updateInterval to _updateIntervalSeconds

Also modified doc comment specifying units

* Fix spelling of healthChangeAmount

Changed from healthChangeAmmount to healthChangeAmount

* Fixed comment

comment used to mention _updateInterval, which has been renamed  _updateIntervalSeconds

* Fixed typo in comment

* fixed typos: reagant -> reagent

Most typos were just in comments.

* Make metabolizable classes inherit from DefaultMetabolizable

Also involved changing around IMetabolizable

* Renamed variables

metabolismAmount -> amountMetabolized

* Updated Comments in DefaultMetabolizable

Makes it clearer why DefaultMetabolizable works as it does, and that other classes depend on it.
2021-07-30 21:11:02 -07:00
PJBot
881c9c9856 Automatic changelog update 2021-07-30 21:15:03 -04:00
Pieter-Jan Briers
632e72b817 Improve hands & pulling (#4389) 2021-07-31 03:14:00 +02:00
Pieter-Jan Briers
73e4946e27 Pow3r goes brrr with generational IDs. 2021-07-31 02:50:23 +02:00
Pieter-Jan Briers
b92a2ba115 Remove GraphWalkSolver
It's not worth maintaining and if anybody cares the code is in git history.
2021-07-31 02:50:23 +02:00
Kara D
e93d174c1b Update submodule. 2021-07-30 16:19:24 -07:00
clyf
6649310ccf Moved MagbootsComponent.cs from Cloning to Clothing (#4399) 2021-07-31 01:05:07 +02:00
Galactic Chimp
5363f59a90 Merge branch 'master' into replace-sounds-with-sound-specifier
# Conflicts:
#	Content.Server/Kitchen/Components/ReagentGrinderComponent.cs
#	Content.Server/Storage/Components/SecureEntityStorageComponent.cs
2021-07-30 20:26:22 +02:00
Galactic Chimp
898bdc9491 #4420 Replaced SecureEntityStorageComp with LockComponent (new ECS) (#4228)
* #4420 moved sound components to a better spot in the project

* MWF-4420 - ported SecureEntityStorageComponent to new ECS system, as a LockComponent

* MWF-4420 - removed unused usings

* #4420 removed dumb ToggleLockVerb override workaround

* #4420 added SoundSpecifier to LockComponent
2021-07-30 10:22:06 -07:00
Vera Aguilera Puerto
e256cb7bb0 Optimize atmos devices' appearance updating. 2021-07-30 14:00:14 +02:00
Vera Aguilera Puerto
f4769c00d7 SubFloorHide requires entities to be anchored by default. 2021-07-30 12:26:18 +02:00
Pieter-Jan Briers
8c362fcd9b Use non-directed event for powernet battery sync.
Most of the CPU time in the power system was sending these events.
2021-07-29 16:55:09 +02:00
Pieter-Jan Briers
9b42c1f69b Fix bad localization string in secret stash. 2021-07-29 13:06:18 +02:00
Vera Aguilera Puerto
8ed1a9e19c Add ButtonHelpers and the SetButtonDisabledRecursive helper.
Fixes the mess from the other day.
2021-07-29 12:55:37 +02:00
Paul Ritter
3501bcbea6 reagentgrinder ecs & xamlui (#4347)
* started converting grinder to ecs

* finished reagentcontainer ecs
refactored bui
converted ui to xaml

* adds handling

* fixes handling

* oopsie

Co-authored-by: Paul <ritter.paul1+git@googlemail.com>
2021-07-28 21:58:38 -07:00
PJBot
25558421c4 Automatic changelog update 2021-07-28 13:37:08 -04:00
SethLafuente
b75c072fac adds bio suits into bio lockers (#4377)
Co-authored-by: SETh lafuente <cetaciocascarudo@gmail.com>
2021-07-28 17:36:06 +00:00
Paul
ec253f8413 updates submodule 2021-07-27 20:14:19 +02:00
Visne
273eaa493f XAMLify ID card computer, Alerts and AME window (#4322)
* Refactor ID card computer to XAML UI

* Alerts

* XAMLify AME window

* Use Control.SetButtonDisabledRecursive() instead
2021-07-27 20:09:12 +02:00
metalgearsloth
e38d7e0a2f Update submodule 2021-07-28 00:30:39 +10:00
Paul Ritter
af948d00d8 adds a integrationtest that tries out all reactions (#4374)
Co-authored-by: Paul <ritter.paul1+git@googlemail.com>
2021-07-27 22:54:26 +10:00
Kara Dinyes
3e7b0fe7a2 Fix patron OOC message wrap 2021-07-26 17:38:27 -07:00
PJBot
af4dec27ab Automatic changelog update 2021-07-26 18:15:13 -04:00
SethLafuente
283dcb0802 Gives RD locker a hardsuit (#4376)
Co-authored-by: SETh lafuente <cetaciocascarudo@gmail.com>
2021-07-26 22:14:10 +00:00
Swept
86aa1caddb Updated bucket's size to 100 2021-07-26 09:49:43 -07:00
Swept
aa4727d185 Gas tanks have proper item sizes 2021-07-26 09:39:12 -07:00
Paul
70a16427f4 fixes #4372 2021-07-26 18:28:04 +02:00
Paul
8357fcd7c2 fixes enpendablelight to actually be expendable 2021-07-26 18:17:42 +02:00
Vera Aguilera Puerto
1033d8bbe5 Use EntitySystem dependencies in a bunch of systems. 2021-07-26 13:01:47 +02:00
Vera Aguilera Puerto
4e93340fb0 Update engine submodule to v0.5.0 2021-07-26 12:13:16 +02:00
Vera Aguilera Puerto
995f1dbf1a Remove archived moles from saltern. 2021-07-26 11:33:06 +02:00
Vera Aguilera Puerto
5d929485ed Hotspot passes MapManager to GetTileRef. 2021-07-26 11:28:43 +02:00
Vera Aguilera Puerto
86cecd3b5e Add CVar for disabling/enabling excited groups. 2021-07-26 11:16:34 +02:00
Vera Aguilera Puerto
7fa10bd17b Remove atmos archiving. 2021-07-26 11:06:44 +02:00
Swept
e826615f81 Updates broken description in sprays.yml 2021-07-26 07:10:00 +00:00
ShadowCommander
8661bdf3da Fix typo in inventory component throw 2021-07-26 00:04:47 -07:00
PJBot
4dcc384ded Automatic changelog update 2021-07-26 01:37:30 -04:00
SethLafuente
cad7a9ad54 Gave lab Coats Storage Room (#4370)
Co-authored-by: SETh lafuente <cetaciocascarudo@gmail.com>
2021-07-26 05:36:27 +00:00
Kara Dinyes
28f3424680 sound + locked prototypes 2021-07-25 20:36:55 -07:00
Kara Dinyes
c8f79fdcaf windoors work #Dab 2021-07-25 20:21:02 -07:00
Kara Dinyes
ecad9fc32d Merge branch 'master' into 2021-07-16/windoors 2021-07-25 18:25:59 -07:00
PJBot
e17fe6f008 Automatic changelog update 2021-07-25 11:49:25 -04:00