TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ ShouldDropCrystals()

static bool Terraria.GameContent.Events.DD2Event.ShouldDropCrystals ( )
inlinestatic

Definition at line 873 of file DD2Event.cs.

874 {
877 {
880 {
882 }
883 if (OngoingDifficulty == 1)
884 {
885 switch (currentWave)
886 {
887 case 1:
889 break;
890 case 2:
892 break;
893 case 3:
895 break;
896 case 4:
898 break;
899 case 5:
901 break;
902 }
903 }
904 else if (OngoingDifficulty == 2)
905 {
906 switch (currentWave)
907 {
908 case 1:
910 break;
911 case 2:
913 break;
914 case 3:
916 break;
917 case 4:
919 break;
920 case 5:
922 break;
923 case 6:
925 break;
926 case 7:
928 break;
929 }
930 }
931 else if (OngoingDifficulty == 3)
932 {
933 switch (currentWave)
934 {
935 case 1:
937 break;
938 case 2:
940 break;
941 case 3:
943 break;
944 case 4:
946 break;
947 case 5:
949 break;
950 case 6:
952 break;
953 case 7:
955 break;
956 }
957 }
958 }
959 if (Main.netMode != 0 && Main.expertMode)
960 {
961 _crystalsDropping_toDrop = (int)((float)_crystalsDropping_toDrop * NPC.GetBalance());
962 }
963 float num = (float)currentKillCount / (float)requiredKillCount;
965 {
967 return true;
968 }
969 return false;
970 }
static void GetInvasionStatus(out int currentWave, out int requiredKillCount, out int currentKillCount, bool currentlyInCheckProgress=false)
Definition DD2Event.cs:488

References Terraria.GameContent.Events.DD2Event._crystalsDropping_alreadyDropped, Terraria.GameContent.Events.DD2Event._crystalsDropping_lastWave, Terraria.GameContent.Events.DD2Event._crystalsDropping_toDrop, Terraria.Main.expertMode, Terraria.NPC.GetBalance(), Terraria.GameContent.Events.DD2Event.GetInvasionStatus(), Terraria.Main.netMode, and Terraria.GameContent.Events.DD2Event.OngoingDifficulty.

Referenced by Terraria.NPC.DoDeathEvents().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: