From d9cc4bd5447ed8352f756a611c1e8b9ff5d1c63f Mon Sep 17 00:00:00 2001 From: Rain Caldwell <67359748+Just-a-Unity-Dev@users.noreply.github.com> Date: Sat, 21 Sep 2024 16:24:17 +0800 Subject: [PATCH 1/2] Fix gravity not working --- Resources/Prototypes/Entities/Mobs/Species/base.yml | 1 - Resources/Prototypes/Entities/Mobs/base.yml | 1 + .../Prototypes/_RY/Entities/Mapping/machines.yml | 11 +++++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 Resources/Prototypes/_RY/Entities/Mapping/machines.yml diff --git a/Resources/Prototypes/Entities/Mobs/Species/base.yml b/Resources/Prototypes/Entities/Mobs/Species/base.yml index 88b85d3ce7..4a14b5332e 100644 --- a/Resources/Prototypes/Entities/Mobs/Species/base.yml +++ b/Resources/Prototypes/Entities/Mobs/Species/base.yml @@ -291,7 +291,6 @@ - type: Icon sprite: Mobs/Species/Human/parts.rsi state: full - - type: MovementIgnoreGravity # RY CHANGE - type: Sprite drawdepth: Mobs noRot: true diff --git a/Resources/Prototypes/Entities/Mobs/base.yml b/Resources/Prototypes/Entities/Mobs/base.yml index a8bb86ed5d..5dc439e7bf 100644 --- a/Resources/Prototypes/Entities/Mobs/base.yml +++ b/Resources/Prototypes/Entities/Mobs/base.yml @@ -24,6 +24,7 @@ - type: Clickable - type: InteractionOutline - type: InputMover + - type: MovementIgnoreGravity - type: Input context: "human" - type: LagCompensation diff --git a/Resources/Prototypes/_RY/Entities/Mapping/machines.yml b/Resources/Prototypes/_RY/Entities/Mapping/machines.yml new file mode 100644 index 0000000000..d88ee25825 --- /dev/null +++ b/Resources/Prototypes/_RY/Entities/Mapping/machines.yml @@ -0,0 +1,11 @@ +- type: entity + id: RYGravityGenerator + parent: GravityGeneratorMini + name: planetary core + description: It's what keeps you to the floor. How are you seeing this? + components: + - type: GravityGenerator + idlePower: 1 + activePower: 0 + lightRadiusMin: 0 + lightRadiusMax: 0 From a154a32e8d8a758e2eac61ca9b378d04b7e44b74 Mon Sep 17 00:00:00 2001 From: Rain Caldwell <67359748+Just-a-Unity-Dev@users.noreply.github.com> Date: Sat, 21 Sep 2024 17:22:46 +0800 Subject: [PATCH 2/2] fix tests --- Resources/Prototypes/_RY/Entities/Mapping/machines.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Resources/Prototypes/_RY/Entities/Mapping/machines.yml b/Resources/Prototypes/_RY/Entities/Mapping/machines.yml index d88ee25825..e29578b44f 100644 --- a/Resources/Prototypes/_RY/Entities/Mapping/machines.yml +++ b/Resources/Prototypes/_RY/Entities/Mapping/machines.yml @@ -4,8 +4,13 @@ name: planetary core description: It's what keeps you to the floor. How are you seeing this? components: + - type: ApcPowerReceiver + powerLoad: 0 - type: GravityGenerator idlePower: 1 activePower: 0 lightRadiusMin: 0 lightRadiusMax: 0 + - type: PointLight + radius: 0 + energy: 0