43078 {
43080 {
43083 if (Main.netMode != 1)
43084 {
43085 if (Main.invasionType == 0)
43086 {
43087 Main.invasionDelay = 0;
43088 Main.StartInvasion();
43089 }
43090 }
43091 else
43092 {
43093 NetMessage.SendData(61, -1, -1,
null,
whoAmI, -1
f);
43094 }
43095 }
43097 {
43100 if (Main.netMode != 1)
43101 {
43102 if (Main.invasionType == 0)
43103 {
43104 Main.invasionDelay = 0;
43105 Main.StartInvasion(2);
43106 }
43107 }
43108 else
43109 {
43110 NetMessage.SendData(61, -1, -1,
null,
whoAmI, -2
f);
43111 }
43112 }
43114 {
43117 if (Main.netMode != 1)
43118 {
43119 if (Main.invasionType == 0)
43120 {
43121 Main.invasionDelay = 0;
43122 Main.StartInvasion(3);
43123 }
43124 }
43125 else
43126 {
43127 NetMessage.SendData(61, -1, -1,
null,
whoAmI, -3
f);
43128 }
43129 }
43131 {
43134 if (Main.netMode != 1)
43135 {
43136 Main.NewText(Lang.misc[31].Value, 50, byte.MaxValue, 130);
43137 Main.startPumpkinMoon();
43138 }
43139 else
43140 {
43141 NetMessage.SendData(61, -1, -1,
null,
whoAmI, -4
f);
43142 }
43143 }
43145 {
43148 if (Main.netMode == 0)
43149 {
43150 Main.eclipse = true;
43151 if (Main.remixWorld)
43152 {
43153 Main.NewText(Lang.misc[106].Value, 50, byte.MaxValue, 130);
43154 }
43155 else
43156 {
43157 Main.NewText(Lang.misc[20].Value, 50, byte.MaxValue, 130);
43158 }
43159 }
43160 else
43161 {
43162 NetMessage.SendData(61, -1, -1,
null,
whoAmI, -6
f);
43163 }
43164 }
43166 {
43169 if (Main.netMode == 0)
43170 {
43172 Main.bloodMoon = true;
43173 if (Main.GetMoonPhase() ==
MoonPhase.Empty)
43174 {
43175 Main.moonPhase = 5;
43176 }
43177 Main.NewText(Lang.misc[8].Value, 50, byte.MaxValue, 130);
43178 }
43179 else
43180 {
43181 NetMessage.SendData(61, -1, -1,
null,
whoAmI, -10
f);
43182 }
43183 }
43185 {
43188 if (Main.netMode == 0)
43189 {
43191 }
43192 else
43193 {
43194 NetMessage.SendData(61, -1, -1,
null,
whoAmI, -8
f);
43195 }
43196 }
43198 {
43201 if (Main.netMode != 1)
43202 {
43203 Main.NewText(Lang.misc[34].Value, 50, byte.MaxValue, 130);
43204 Main.startSnowMoon();
43205 }
43206 else
43207 {
43208 NetMessage.SendData(61, -1, -1,
null,
whoAmI, -5
f);
43209 }
43210 }
43211 }
static SlotId PlaySound(in SoundStyle? style, Vector2? position=null, SoundUpdateCallback? updateCallback=null)
Attempts to play a sound style with the provided sound style (if it's not null), and returns a valid ...
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Vector2 position
The position of this Entity in world coordinates.
static void NotifyProgressionEvent(int eventID)
void ApplyItemTime(Item sItem, float multiplier=1f, bool? callUseItem=null)