Skip to content

Commit 6b4f86c

Browse files
committed
Added 'invisible' option to Safe Respawn Crumble
1 parent e7bfcb6 commit 6b4f86c

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

Ahorn/entities/safeRespawnCrumble.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
using ..Ahorn, Maple
44

5-
@mapdef Entity "SpringCollab2020/safeRespawnCrumble" SafeRespawnCrumble(x::Integer, y::Integer, width::Integer=Maple.defaultBlockWidth)
5+
@mapdef Entity "SpringCollab2020/safeRespawnCrumble" SafeRespawnCrumble(x::Integer, y::Integer, width::Integer=Maple.defaultBlockWidth, invisible::Bool=false)
66

77
const placements = Ahorn.PlacementDict(
88
"Safe Respawn Crumble (Spring Collab 2020)" => Ahorn.EntityPlacement(

Ahorn/lang/en_gb.lang

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,3 +348,6 @@ placements.effects.SpringCollab2020/BlackholeCustomColors.tooltips.bgColorOuterW
348348

349349
# Attached Ice Wall
350350
placements.entities.SpringCollab2020/AttachedIceWall.tooltips.left=Whether the entity attaches to the left wall or not.
351+
352+
# Safe Respawn Crumble
353+
placements.entities.SpringCollab2020/safeRespawnCrumble.tooltips.invisible=If enabled, the platform will be completely invisible. Useful for debug mid-air spawn points.

Entities/SafeRespawnCrumble.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ public SafeRespawnCrumble(EntityData data, Vector2 offset) : base(data.Position
2828

2929
// make sure the platform is not collidable by default.
3030
Collidable = false;
31+
32+
Visible = !data.Bool("invisible");
3133
}
3234

3335
public override void Added(Scene scene) {

0 commit comments

Comments
 (0)