From 9658ab5a377206660beb26e8cef29ff012d752d4 Mon Sep 17 00:00:00 2001 From: DemoJameson Date: Sun, 13 Aug 2023 15:37:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20TempleGateReversed=20loenn=20=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Entities/TempleGateReversed.cs | 4 ++-- Loenn/entities/temple_gate_reversed.lua | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Entities/TempleGateReversed.cs b/Entities/TempleGateReversed.cs index 7698ee5..4870ebc 100644 --- a/Entities/TempleGateReversed.cs +++ b/Entities/TempleGateReversed.cs @@ -4,7 +4,7 @@ using Microsoft.Xna.Framework; using Monocle; -namespace Celeste.Mod.DJMapHelper.Entities; +namespace Celeste.Mod.DJMapHelper.Entities; [CustomEntity("DJMapHelper/templeGateReversed")] public class TempleGateReversed : Solid { @@ -33,7 +33,7 @@ private TempleGateReversed( : base(position, 8f, height, true) { this.type = type; closedHeight = height; - Add(sprite = GFX.SpriteBank.Create("TempleGate_" + spriteName)); + Add(sprite = GFX.SpriteBank.Create("templegate_" + spriteName)); sprite.X = Collider.Width / 2f; sprite.Play("idle"); Add(shaker = new Shaker(false)); diff --git a/Loenn/entities/temple_gate_reversed.lua b/Loenn/entities/temple_gate_reversed.lua index dd89cd8..628cc02 100644 --- a/Loenn/entities/temple_gate_reversed.lua +++ b/Loenn/entities/temple_gate_reversed.lua @@ -20,6 +20,8 @@ local textures = { theo = "objects/door/TempleDoorC00" } +local textureOptions = {"default", "mirror", "theo"} + local types = { "CloseBehindPlayer", "CloseBehindPlayerAlways", @@ -29,8 +31,7 @@ local types = { templeGate.fieldInformation = { sprite = { - fieldType = "anything", - options = textures, + options = textureOptions, editable = false }, ["type"] = {