Skip to content

Commit 077f882

Browse files
committed
Rename attribute to SpringCollab2020_ignoreLighting
1 parent 613330a commit 077f882

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

Ahorn/entities/bubbleReturnBerry.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using ..Ahorn, Maple
44

55
@mapdef Entity "SpringCollab2020/returnBerry" ReturnBerry(x::Integer, y::Integer, order::Integer=-1, checkpointID::Integer=-1, winged::Bool=false,
6-
nodes::Array{Tuple{Integer, Integer}, 1}=Tuple{Integer, Integer}[], ignoreLighting::Bool=false)
6+
nodes::Array{Tuple{Integer, Integer}, 1}=Tuple{Integer, Integer}[], SpringCollab2020_ignoreLighting::Bool=false)
77

88
const placements = Ahorn.PlacementDict(
99
"Strawberry (With Return) (Spring Collab 2020)" => Ahorn.EntityPlacement(

Ahorn/entities/multiRoomStrawberry.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using ..Ahorn, Maple
44

55
@mapdef Entity "SpringCollab2020/MultiRoomStrawberry" MultiRoomStrawberry(x::Integer, y::Integer,
6-
name::String="multi_room_strawberry", winged::Bool=false, moon::Bool=false, checkpointID::Integer=-1, order::Integer=-1, ignoreLighting::Bool=false)
6+
name::String="multi_room_strawberry", winged::Bool=false, moon::Bool=false, checkpointID::Integer=-1, order::Integer=-1, SpringCollab2020_ignoreLighting::Bool=false)
77

88
const placements = Ahorn.PlacementDict(
99
"Multi-Room Strawberry (Spring Collab 2020)" => Ahorn.EntityPlacement(

Ahorn/entities/strawberryIgnoringLighting.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const placements = Ahorn.PlacementDict(
77
Maple.Strawberry,
88
"point",
99
Dict{String, Any}(
10-
"ignoreLighting" => true
10+
"SpringCollab2020_ignoreLighting" => true
1111
)
1212
)
1313
)

Ahorn/lang/en_gb.lang

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ placements.entities.SpringCollab2020/diagonalWingedStrawberry.tooltips.checkpoin
66
placements.entities.SpringCollab2020/returnBerry.tooltips.winged=Flies away upon dashing.
77
placements.entities.SpringCollab2020/returnBerry.tooltips.checkpointID=Manually determine what checkpoint section strawberries are visually grouped up in, showing up on the start menu during gameplay and level select. Overrides Everest's automatic berry IDs. (Default = -1)
88
placements.entities.SpringCollab2020/returnBerry.tooltips.order=Manually determine what order strawberries are visually placed in on the start menu during gameplay and level select. Overrides Everest's automatic berry IDs. (Default = -1)
9-
placements.entities.SpringCollab2020/returnBerry.tooltips.ignoreLighting=If checked, the berry will appear bright at all times, even if the room is dark.
9+
placements.entities.SpringCollab2020/returnBerry.names.SpringCollab2020_ignoreLighting=Ignore Lighting
10+
placements.entities.SpringCollab2020/returnBerry.tooltips.SpringCollab2020_ignoreLighting=(Spring Collab 2020 attribute) If checked, the berry will appear bright at all times, even if the room is dark.
1011

1112
# Glass Berry
1213
placements.entities.SpringCollab2020/glassBerry.tooltips.checkpointID=Manually determine what checkpoint section strawberries are visually grouped up in, showing up on the start menu during gameplay and level select. Overrides Everest's automatic berry IDs. (Default = -1)
@@ -185,10 +186,12 @@ placements.entities.SpringCollab2020/MultiRoomStrawberry.tooltips.winged=The str
185186
placements.entities.SpringCollab2020/MultiRoomStrawberry.tooltips.checkpointID=Manually determine what checkpoint section strawberries are visually grouped up in, showing up on the start menu during gameplay and level select. Overrides Everest's automatic berry IDs. (Default= -1)
186187
placements.entities.SpringCollab2020/MultiRoomStrawberry.tooltips.order=Manually determine what order strawberries are visually placed in on the start menu during gameplay and level select. Overrides Everest's automatic berry IDs. (Default= -1)
187188
placements.entities.SpringCollab2020/MultiRoomStrawberry.tooltips.moon=Makes the strawberry render as a space berry.\nDoes not work with wings or nodes in the base game.
188-
placements.entities.SpringCollab2020/MultiRoomStrawberry.tooltips.ignoreLighting=If checked, the berry will appear bright at all times, even if the room is dark.
189+
placements.entities.SpringCollab2020/MultiRoomStrawberry.names.SpringCollab2020_ignoreLighting=Ignore Lighting
190+
placements.entities.SpringCollab2020/MultiRoomStrawberry.tooltips.SpringCollab2020_ignoreLighting=(Spring Collab 2020 attribute) If checked, the berry will appear bright at all times, even if the room is dark.
189191

190192
# Strawberry ignoring lighting
191-
placements.entities.strawberry.tooltips.ignoreLighting=If checked, the berry will appear bright at all times, even if the room is dark.
193+
placements.entities.strawberry.names.SpringCollab2020_ignoreLighting=Ignore Lighting
194+
placements.entities.strawberry.tooltips.SpringCollab2020_ignoreLighting=(Spring Collab 2020 attribute) If checked, the berry will appear bright at all times, even if the room is dark.
192195

193196
# Madeline Silhouette Trigger
194197
placements.triggers.SpringCollab2020/MadelineSilhouetteTrigger.tooltips.enable=If checked, the trigger will turn Madeline into a silhouette. If unchecked, it will turn Madeline back to normal.

Entities/StrawberryIgnoringLighting.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public static void Unload() {
3232
private static void onStrawberryConstructor(On.Celeste.Strawberry.orig_ctor orig, Strawberry self, EntityData data, Vector2 offset, EntityID gid) {
3333
orig(self, data, offset, gid);
3434

35-
// save the value for ignoreLighting to the DynData for the strawberry.
36-
new DynData<Strawberry>(self)["ignoreLighting"] = data.Bool("ignoreLighting");
35+
// save the value for SpringCollab2020_ignoreLighting to the DynData for the strawberry.
36+
new DynData<Strawberry>(self)["SpringCollab2020_ignoreLighting"] = data.Bool("SpringCollab2020_ignoreLighting");
3737
}
3838

3939
private static void onLightingBeforeRender(On.Celeste.LightingRenderer.orig_BeforeRender orig, LightingRenderer self, Scene scene) {
@@ -44,7 +44,7 @@ private static void onLightingBeforeRender(On.Celeste.LightingRenderer.orig_Befo
4444
foreach (Entity entity in scene.Entities) {
4545
if (entity is Strawberry berry) {
4646
DynData<Strawberry> berryData = new DynData<Strawberry>(berry);
47-
if (berryData.Get<bool>("ignoreLighting")) {
47+
if (berryData.Get<bool>("SpringCollab2020_ignoreLighting")) {
4848
Draw.SpriteBatch.Draw(strawberryCutoutTexture.Texture.Texture, berry.Position + berryData.Get<Sprite>("sprite").Position - (scene as Level).Camera.Position
4949
- new Vector2(9, 8), Color.White);
5050
}

0 commit comments

Comments
 (0)