Commit Graph

36638 Commits

Author SHA1 Message Date
chairbender ee6c28aede
Better logic related to selecting / deselecting target-based actions (#2962) 2021-01-10 15:27:55 +01:00
metalgearsloth aeb3c1832e
Fix clickmaps (#2967)
Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
2021-01-10 15:24:33 +01:00
metalgearsloth d403a7fab4
Fix NPC shutdown crash (#2971)
Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
2021-01-10 15:24:03 +01:00
Morshu32 7bfdf30268
Add PlaceCentered bool to PlaceableSurfaceComponent (#2771)
* Added bool _placeCentered to check if an entity must be placed at mouse position or center of the PlaceableSurface (+ offset) when dropped.

* private variables formatted to camel case

* Use EqualsApprox in the setter for PositionOffset

* -Changed client-side SurfaceComponent to camelCase
-Added placeCentered and positionOffset to PlaceableSurfaceComponentState
-Getter and setters for placeCentered and positionOffset client-side

* Update Content.Client/GameObjects/Components/PlaceableSurfaceComponent.cs

Co-authored-by: Vera Aguilera Puerto <6766154+Zumorica@users.noreply.github.com>

* Add "_" to private vars name

* Made YAML properties camelCase

* Add "_" to private vars name

* Call Dirty() when IsPlaceable,PlaceCentered and PositionOffset are changed.

* Removed Dirty() from client.

Co-authored-by: Vera Aguilera Puerto <6766154+Zumorica@users.noreply.github.com>
2021-01-10 23:07:33 +11:00
py01 7bf80fd4b8
SolutionContainer refactors (#2954)
* removes unused method

* Code uncluttering (Also removed the netcode, color code, and visuals, need to rewrite)

* SolutionContainerVisualState

* Removes caching of SolutionContainer Color

* ChemicalsAdded() and ChemicalsRemoved() for updating appearance and handling reaction checks

* SolutionContainerComponentState

* Netcode

* ChemMasterComponent no longer creates a SolutionContainerComponent with new(), uses a Solution instead

* Enable nullable in SolutionContainer implementations

* Some review fixes

* uses IReadOnlyLists in ChemMaster

* Comments

* review fixes 3

* ReagentUnit documentation

* Review fixes

* spelling fix

* spelling 2

* typo

Co-authored-by: py01 <pyronetics01@gmail.com>
2021-01-10 19:41:55 +11:00
Vera Aguilera Puerto 0b7f286cf3 setoutfit doesn't do mob checks anymore.
Fixes bug where trying to setoutfit a dead/stunned mob would drop the new outfit on the ground, alongside the old outfit.
2021-01-09 22:29:59 +01:00
Vera Aguilera Puerto d709695263 Disarm popup entity name fix 2021-01-09 21:38:29 +01:00
Vera Aguilera Puerto d81a5faac4
Adds disarm action (#2950)
* Adds disarming

* Disarm acts

* yaml

* much better icon for disarm

* Apply Remie's suggestions, improve code!
2021-01-09 20:31:34 +01:00
Paul 1fe25049a3 updates submodule to fix windows build 2021-01-09 13:49:44 +01:00
Vera Aguilera Puerto 7986c0ff73 Fix knockdown help sound 2021-01-09 12:17:36 +01:00
Radrark 670d277963
Refactors the CargoOrderDataManager into the CargoConsoleSystem (#2858)
* Update submodule

* Refactor CargoOrderDataManager into CargoConsoleSystem

* Fix OnRemove event

Co-authored-by: Radrark <null>
2021-01-08 21:11:09 -08:00
chairbender 79dd7a7d7e
Improved top menu (#2949)
* #272 proper open sides in menu buttons

* #272 WIP, good starting point for making
the top menu work well at different UI scales

* #272 WIP top menu looking better, but inconsistent size

* #272 WIP esc nice and big

* #272 consistently sized top buttons

* #272 proper highlighting of top menu elements

* #272 proper highlighting of top menu elements

* #272 nice shiny red tutorial button

* #272 better tutorial icon

* #272 missed svg changes

* #272 consistently sized top menu

* #272 better padding / alignment of top bar with other UI sections

* #272 fix hamburger menu height to
match others

* #272 top menu name set based on
keybind, use shortened names if possible

* #272 top menu name set based on
keybind, use shortened names if possible

* #272 add top menu actions button

* #272 add top menu admin button

* #272 fix sandbox top button down status

* #272 remove todo
2021-01-09 15:40:07 +11:00
Metal Gear Sloth 42171a9b70 Stop github warnings 2021-01-09 14:51:27 +11:00
ZeWaka 75c4ed6a09
Makes lightbulbs destructible (#2955)
* Renames WindowBreak soundCollection to GlassBreak

* Implements destructible lightbulbs
moved the parent to the top as well

* Fixes the old `glassbreak` soundCollection, renames it

* Deletes the windows.yml version of glassbreak

* Fixes the sound for bulbs being thrown

* Removes name from abstract lightbulb

* Implements IDestroyAct for lightbulbs

* Implements onBreak for lightbulbs

* Lights get damaged by getting hit and throwing

* Lights now have an intermediate 'broken' state before destruction
2021-01-09 02:06:36 +01:00
AJCM-git 76d2729722
Makes FoodBase grindable and deletes duplicates (#2958)
* Makes FoodBase grindable

* forgot this one
2021-01-09 10:30:55 +11:00
py01 b46b890618
Removes half-implemented ConduitLayer from piping (#2957)
Co-authored-by: py01 <pyronetics01@gmail.com>
2021-01-09 10:05:29 +11:00
Metal Gear Sloth e84e387972 Fix force-running station events 2021-01-09 09:58:42 +11:00
Paul Ritter 52e59bddcd
Merge pull request #2953 from AJCM-git/2021-01-08-icons-fix
Fixes research console technology tree icons and updates client ignored components
2021-01-08 17:12:21 +01:00
AJCM 62a2cf9931 oops 2021-01-08 12:02:23 -04:00
AJCM 333f84f637 address review 2021-01-08 11:59:59 -04:00
AJCM 644dd23a1e Fixes console errors 2021-01-08 11:14:58 -04:00
moonheart08 010a22a593
Fix indentation in technologies.yml (#2952) 2021-01-08 15:21:34 +01:00
Leo 8eb96cfb01
Add setoutfit command (#2874)
* Add setoutfit command

* Adds setoutfit as a verb and adds a proper UI to the command

* Removes from AdminMenuWindow

* Changes the SetOutfit verb to be a component verb instead of a global verb

* Addresses reviews

* Remove empty method

* Remove on server aswell
2021-01-08 14:29:08 +01:00
Swept 6eeaa58988
HandheldLights no longer drain their batteries in 20 seconds. (#2942)
* Initial

* Update Content.Server/GameObjects/Components/Interactable/HandheldLightComponent.cs

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
2021-01-07 21:35:39 +11:00
Swept 8e926db8e7
I used the web-edit to fix the web-edit... (#2941) 2021-01-07 21:17:34 +11:00
py01 8fa8de36ed
PipeNetDeviceComponent refactor (#2912)
* Removes inheritance of PipeNetDeviceComponent

* Enables nullable in piping

* Piping error messages report the prototype

* Moves PipeNetDevice updating to ComponentMessage

* Build fix

* Review fixes

* review fix 2

Co-authored-by: py01 <pyronetics01@gmail.com>
2021-01-07 17:37:17 +11:00
py01 2b195fccb9
Chemical reaction refactor (#2936)
* Moves ContainsReagent from SolutionContainer to Solution

GetMajorReagentId from SOlutionContainer to Solution

Makes capability checks use HasFlag

Moves Solution Color calculation from SolutionContainer to Solution

Replaces SolutionContainerCaps.NoExamine with CanExamine

Misc SolutionContainer.Capabilities yaml cleanup

* Moves IReactionEffect from server to shared

* Moves ReactionPrototype from server to shared

* Moves SolutionValidReaction from SolutionContainer to ChemicalReactionSystem

* Moves PerformReaction from SolutionContainer to ChemicalReactionSystem

* Moves CheckForReaction from SolutionContainer to ChemicalReactionSystem

* Removes unused SolutionContainer methods

* Removes now-unused GetMajorReagentId from SOlutionContainer

* ChemicalReactionSystem comments

* Replaces usage of SolutionContainer.ContainsReagent and replaces it with SolutionContainer.Solution.ContainsReagent

* ChemicalReactionSystem ProcessReactions

* Moves ExplosionReactionEffect to shared, comments out server code, TODO: figure out how to let ReactionEffects in shared do server stuff

* Fixes SolutionContainer.CheckForReaction infinite recursion

* Moves IReactionEffect and ExplosionReactionEffect back to server

* Moves ChemicalReactionSystem and ReactionPrototype back to server

* Uncomments out Explosion code

* namespace fixes

* Moves ReactionPrototype and IReactionEffect from Server to Shared

* Moves ChemicalReactionSystem from Server to Shared

* ChemicalReaction code partial rewrite

* Moves CanReact and PerformReaction to Solution

* Revert "Moves CanReact and PerformReaction to Solution"

This reverts commit bab791c3ebd0ff39d22f2610e27ca04f0d46d6b8.

* Moves ChemistrySystem from Server to Shared

* diff fix

* TODO warning

Co-authored-by: py01 <pyronetics01@gmail.com>
2021-01-07 17:31:43 +11:00
Swept 429851140a
Moves Filled stuff to Catalog/Fills. (#2938)
* Moved boxes

* Toolboxes

* Gas Tanks

* Fixed that last commit

* Large gas tanks shouldn't fit on belts
2021-01-07 17:27:46 +11:00
mirrorcult 7977992e5a
Add kitchen knife & sliceable foods (#2891)
* sliceable food, kitchen knives

* sprite fixes, sounds

* add to vendor

* address reviews

* address reviews

* stereo -> mono

* fix wrong amount of nutriment being removed

* oops im dumb

* meta.json

* fix merge

* probably fix test

* remove all instances of [ComponentReference(typeof(IAfterInteract))]

Co-authored-by: cyclowns <cyclowns@protonmail.ch>
2021-01-07 12:48:08 +11:00
Swept a7c4571075
Fixes Botanist and Mime not spawning with unique backpacks. (#2937)
* Botanist and Mime fixed

* Fixed some unupdated duffels.

* Fix

* I am so goofy
2021-01-07 12:35:57 +11:00
Tarlan2 6c10341938
Update technologies.yml (#2911)
Remade the technologies pull.
2021-01-07 11:40:42 +11:00
Swept ff79798c2a
Adds SimpleMobBase for NPCs. (#2932)
* Initial

* Initial2

* Abstraction
2021-01-07 11:25:06 +11:00
py01 2d1fe31bce
SolutionContainerComponent refactors (#2746)
* Moves ContainsReagent from SolutionContainer to Solution

* GetMajorReagentId from SOlutionContainer to Solution

* Makes capability checks use HasFlag

* Moves Solution Color calculation from SolutionContainer to Solution

* Replaces SolutionContainerCaps.NoExamine with CanExamine

* Misc SolutionContainer.Capabilities yaml cleanup

* Removes HasFlag usage in SolutionContainerComponent

Co-authored-by: py01 <pyronetics01@gmail.com>
2021-01-06 13:31:41 +01:00
metalgearsloth 482106e827
Optimise handheld lights (#2927)
* Optimise handheld lights

* Woops also these

* Might as well do shutdown too

* Also these

Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
2021-01-06 12:50:49 +01:00
metalgearsloth 2bd4bf12a4
Utensils changes (#2929)
* Utensils changes

* Burn it all

Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
2021-01-06 12:49:19 +01:00
cyclowns 258ae55441
mobmask -> passable (#2916)
Co-authored-by: cyclowns <cyclowns@protonmail.ch>
2021-01-06 13:06:09 +11:00
Clyybber 6a56d86862
Enable FocusOOC and FocusAdminChat keybinds in lobby screen (#2917) 2021-01-06 13:05:06 +11:00
Swept 78ee111fbb
Update syndie bag IDs (#2925) 2021-01-06 13:00:04 +11:00
Swept e99d497b54
Increase PDA box capacity (#2924) 2021-01-06 12:58:56 +11:00
Paul Ritter bbe9e8328f
Merge pull request #2923 from SweptWasTaken/outdated-carpet
Removes any trace of floor_carpet.
2021-01-06 01:59:10 +01:00
Paul Ritter c237714ee7
Merge pull request #2926 from SweptWasTaken/metalrod-move
Puts metal rods in their place.
2021-01-06 01:55:22 +01:00
SweptWasTaken 1f333c45fd Initial 2021-01-05 13:33:33 -08:00
SweptWasTaken ba6fa3b1b4 Done 2021-01-05 13:00:12 -08:00
SweptWasTaken 38f5185bdb Nukes Pathfinding maps 2021-01-05 12:44:03 -08:00
Vera Aguilera Puerto 21a2ea86e4 Update engine to v0.2.13 (properly) 2021-01-05 13:20:49 +01:00
Swept 18fd5a6e41
Fixes multitool sprite. (#2921)
* Sprites

* YAML
2021-01-05 21:32:37 +11:00
Radrark c196cdbd42
Add property to text keybinds (#2862)
Co-authored-by: Radrark <null>
2021-01-05 16:47:42 +11:00
Swept 196e6d2f45
Plays rustle sound when inserting or opening a backpack. (#2890)
* SoundCollection

* Works

* Applied review

* Waah

* Working

* e

* Adjust sound collection serialization

Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
2021-01-05 16:34:53 +11:00
Swept 4430164073
Adds unique equips for syndie duffels. (#2867)
* Initial

* Woops c/p slipup

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
2021-01-05 16:22:31 +11:00
Metal Gear Sloth a2b498d802 Update submodule 2021-01-05 16:20:19 +11:00