Files
crystall-punk-14/Content.Shared
kaiserbirch 8812237108 Land mine armament (#33883)
* Land Mine is now armable, it will not explode unless armed.

* Land Mine is now armable, it will not explode unless armed.

* Explicitly have Armed as false

* SharedLandMineSystem.cs adds the "Arm"-verb in "Content.Shared" with the Arming logic being implemented in "Content.Server"

* Land Mines now blink only when armed.

* Added prediction components, moved logic to SharedLandMineSystem.cs and inherit it in client content.

* Accessing the datafield directly instead of using methods

* Mines are now armed by default with a unarmed prototype

* Land mine now shows if it is armed when examined and in range.

* Landmine is unarmed by default with an armed variant for mapping purposes.

* Removed properties that were already defined by inheritance.

* Access the bool directly from the component

* Add booleans to change if the Arm-verb is showed and if examining the mine shows the status.

* Added status message for unarmed mine, removed using PushGroup since only one string is displayed.

* Added properties to the explosive floor sign to ensure that it is armed, not showing neither status nor arm-verb.

* The prototypes work now as before with added unarmed versions. Sprite is now only one toggable layer.

* Make the craftable land mine unarmed.

* Refactored the arming mechanic into own component and system.

* Reverted the explosive wet floor sign to previous prototype and added the Armable component and ItemToggle to the landmines.

* Moved the examination strings from land-mines.ftl to armable.ftl.

* Removed unused property.

* Formatting and fixing imports

* Added prefixes to the ftl naming. Moved LocId from system to component

* Added documentation. Moved check for armable to HandleStepTriggerAttempt.
Moved the LocId to component.

* Removed the TryArming method. Added documentation.

* Removed unnecessary TryComp

* Simplified the logic for the trigger attempt

* HasComp instead of TryComp on logic

* EmoGarbage Review

---------

Co-authored-by: Franz - Josef Björck <kaiserbirch@proton.me>
Co-authored-by: EmoGarbage404 <retron404@gmail.com>
2025-04-25 16:53:50 -04:00
..
2024-08-18 12:22:36 -04:00
2025-04-24 16:32:11 +02:00
2024-07-08 00:27:52 +10:00
2025-04-25 16:53:50 -04:00
2025-04-19 11:48:41 +10:00
2024-07-01 02:20:57 +10:00
2025-03-12 19:48:45 +01:00
2024-08-25 22:18:42 +10:00
2025-03-15 09:24:23 -07:00
2024-03-24 16:33:45 +11:00
2025-04-19 16:20:40 +10:00
2024-07-13 16:09:19 +10:00
2025-04-19 16:20:40 +10:00
2025-04-19 16:20:40 +10:00
2025-03-28 09:29:02 +11:00
2025-04-19 11:38:22 +10:00
2025-04-24 21:47:46 +02:00
2024-08-16 11:43:54 +10:00
2025-04-19 16:20:40 +10:00
2025-02-14 16:46:25 +01:00
2025-04-19 16:20:40 +10:00
2023-10-10 16:41:11 -07:00
2025-04-18 13:45:48 +10:00
2024-07-22 14:07:31 -07:00
2023-11-14 19:23:40 -07:00
2025-03-13 10:09:07 -07:00
2024-08-31 10:40:28 -04:00
2025-04-25 16:53:50 -04:00
2025-04-10 22:19:48 -07:00
2025-04-25 16:53:50 -04:00
2025-04-17 21:07:51 +10:00
2023-12-28 13:11:50 +00:00
2025-02-17 01:58:40 -05:00
2025-04-24 16:32:11 +02:00
2024-08-04 13:31:45 +10:00
2025-03-30 03:05:22 +02:00
2024-06-09 15:18:54 -04:00
2024-09-07 00:05:53 +10:00
2025-04-24 13:39:40 +02:00
2025-04-18 13:45:48 +10:00
2024-02-15 16:26:45 -08:00
2024-11-14 11:08:35 -06:00
2025-04-23 16:55:35 -07:00
2024-08-25 22:18:42 +10:00
2025-04-19 19:11:08 +02:00
2025-04-05 00:33:52 +11:00
2025-04-19 16:20:40 +10:00
2024-08-25 22:18:42 +10:00
2024-06-05 10:32:58 +03:00
2025-04-18 13:45:48 +10:00
2025-04-24 16:32:11 +02:00
2025-04-19 00:01:52 +02:00
2025-04-05 00:33:52 +11:00
2025-02-11 18:30:24 +01:00
2024-05-12 17:07:54 +02:00
2024-08-09 09:36:15 +10:00
2025-04-24 16:32:11 +02:00
2025-03-24 16:35:22 +01:00
2024-01-27 08:51:24 -05:00
2025-04-16 08:23:40 -04:00
2025-04-24 21:47:46 +02:00
2024-04-28 21:38:23 -07:00
2024-08-10 11:08:56 +10:00
2025-04-25 11:18:23 -07:00
2025-02-18 23:27:30 +11:00
2024-08-28 10:57:12 +10:00
2025-04-18 20:38:33 -04:00