Skip to content

Commit 235058d

Browse files
committed
Fix some Ahorn plugins which use Number properties
1 parent b6941b7 commit 235058d

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

Ahorn/entities/bubblePushField.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/bubblePushField" BubblePushField(x::Integer, y::Integer, width::Integer=Maple.defaultBlockWidth, height::Integer=Maple.defaultBlockHeight,
6-
strength::Number=1, upwardStrength::Number=1, direction::String="Right", water::Bool=true, flag::String="bubble_push_field", activationMode::String="Always")
6+
strength::Number=1.0, upwardStrength::Number=1.0, direction::String="Right", water::Bool=true, flag::String="bubble_push_field", activationMode::String="Always")
77

88
const placements = Ahorn.PlacementDict(
99
"Bubble Column (Spring Collab 2020)" => Ahorn.EntityPlacement(

Ahorn/entities/customSandwichLava.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/CustomSandwichLava" CustomSandwichLava(x::Integer, y::Integer,
6-
direction::String="CoreModeBased", speed::Number=20, sandwichGap::Number=160)
6+
direction::String="CoreModeBased", speed::Number=20.0, sandwichGap::Number=160.0)
77

88
const directions = String["AlwaysUp", "AlwaysDown", "CoreModeBased"]
99

Ahorn/entities/floatierSpaceBlock.jl

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

33
using ..Ahorn, Maple
44

5-
@mapdef Entity "SpringCollab2020/floatierSpaceBlock" FloatierSpaceBlock(x::Integer, y::Integer, width::Integer=Maple.defaultBlockWidth, height::Integer=Maple.defaultBlockHeight, tiletype::String="3", disableSpawnOffset::Bool=false, floatinessMultiplier::Number=1, bounceBackMultiplier::Number=1)
5+
@mapdef Entity "SpringCollab2020/floatierSpaceBlock" FloatierSpaceBlock(x::Integer, y::Integer, width::Integer=Maple.defaultBlockWidth, height::Integer=Maple.defaultBlockHeight, tiletype::String="3", disableSpawnOffset::Bool=false, floatinessMultiplier::Number=1.0, bounceBackMultiplier::Number=1.0)
66

77
const placements = Ahorn.PlacementDict(
88
"Floatier Space Block (Spring Collab 2020)" => Ahorn.EntityPlacement(

Ahorn/entities/invisibleLightSource.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/invisibleLightSource" InvisibleLightSource(x::Integer, y::Integer, alpha::Number=1, radius::Number=48, startFade::Number=24, endFade::Number=48, color::String="White")
5+
@mapdef Entity "SpringCollab2020/invisibleLightSource" InvisibleLightSource(x::Integer, y::Integer, alpha::Number=1.0, radius::Number=48.0, startFade::Number=24.0, endFade::Number=48.0, color::String="White")
66

77
const colors = sort(collect(keys(Ahorn.XNAColors.colors)))
88

Ahorn/entities/moveBlockCustomSpeed.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/MoveBlockCustomSpeed" MoveBlockCustomSpeed(x::Integer, y::Integer, width::Integer=Maple.defaultBlockWidth, height::Integer=Maple.defaultBlockHeight,
6-
direction::String="Up", canSteer::Bool=false, moveSpeed::Number=60)
6+
direction::String="Up", canSteer::Bool=false, moveSpeed::Number=60.0)
77

88
const placements = Ahorn.PlacementDict()
99

Ahorn/entities/sidewaysLava.jl

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

33
using ..Ahorn, Maple
44

5-
@mapdef Entity "SpringCollab2020/SidewaysLava" SidewaysLava(x::Integer, y::Integer, intro::Bool=false, lavaMode::String="LeftToRight", speedMultiplier::Number=1)
5+
@mapdef Entity "SpringCollab2020/SidewaysLava" SidewaysLava(x::Integer, y::Integer, intro::Bool=false, lavaMode::String="LeftToRight", speedMultiplier::Number=1.0)
66

77
const lavaModes = String["LeftToRight", "RightToLeft", "Sandwich"]
88

0 commit comments

Comments
 (0)