Skip to content

Commit 5c63335

Browse files
author
hamstar0
committed
v2.0.0.5 - Fixed default emitter and hologram color/alpha as 0
1 parent 3b85ab1 commit 5c63335

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

Emitters/Definitions/EmitterDefinition.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ public partial class EmitterDefinition : BaseEmitterDefinition {
1111

1212
public bool IsGoreMode { get; set; }
1313
public int Type { get; set; }
14-
public float Scale { get; set; }
14+
public float Scale { get; set; } = 1f;
1515
public int Delay { get; set; }
1616
public float SpeedX { get; set; }
1717
public float SpeedY { get; set; }
18-
public Color Color { get; set; }
18+
public Color Color { get; set; } = Color.White;
1919
public byte Transparency { get; set; }
2020
public float Scatter { get; set; }
2121
public bool HasGravity { get; set; }

Emitters/Definitions/HologramDefinition.cs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ public static int GetFrameCount( HologramMode mode, int type ) {
7575

7676
public int Type { get; set; }
7777

78-
public float Scale { get; set; }
78+
public float Scale { get; set; } = 1f;
7979

80-
public Color Color { get; set; }
80+
public Color Color { get; set; } = Color.White;
8181

82-
public byte Alpha { get; set; }
82+
public byte Alpha { get; set; } = 255;
8383

84-
public int Direction { get; set; }
84+
public int Direction { get; set; } = 1;
8585

8686
public float Rotation { get; set; }
8787

@@ -126,7 +126,10 @@ public bool CrtEffect {
126126

127127
////////////////
128128

129-
public HologramDefinition() { }
129+
public HologramDefinition() {
130+
this.Color = Color.White;
131+
this.Alpha = 255;
132+
}
130133

131134
public HologramDefinition( HologramDefinition copy ) {
132135
this.Mode = copy.Mode;

Emitters/build.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
displayName = Emitters
22
author = hamstar
3-
version = 2.0.0.4
3+
version = 2.0.0.5
44
modReferences = HamstarHelpers@5.8.1
55
buildIgnore = *.csproj, *.user, *.bat, obj\*, bin\*, .vs\*, .git\*
66
homepage = https://forums.terraria.org/index.php?threads/emitters.87584/

0 commit comments

Comments
 (0)