110647 {
110648
110649
110650
110651
110652
110653
110654
110655
110656
110657
110658
110659
110660
110661
110662
110663
110664
110665
110666
110667
110668
110669
110670
110671
110672
110673
110674
110675
110676
110677
110678
110679
110680
110681
110682
110683
110684
110685
110686
110687
110688
110689
110690
110691
110692
110693
110694
110695
110696
110697
110698
110699
110700
110701
110702
110703
110704
110705
110706
110707
110708
110709
110710
110711
110712
110713
110714
110715
110716
110717
110718
110719
110721 {
110723 }
110726 {
110727 return val.GetValueOrDefault();
110728 }
110729 float num = (float)(255 -
alpha) / 255
f;
110735 {
110736 return new Color(255, 255, 255, 255);
110737 }
110739 {
110740 return new Color(250, 250, 250, 200);
110741 }
110743 {
110748 {
110750 }
110752 {
110754 }
110756 {
110758 }
110759 }
110761 {
110763 }
110765 {
110766 float num6 = Utils.Remap(Utils.WrappedLerp(0.75f, 1
f, (
float)Main.timeForVisualEffects % 120
f / 120
f), 0
f, 1
f, 0.5f, 1
f);
110769 {
110771 }
110773 }
110775 {
110777 }
110779 {
110780 Color
color = Color.Lerp(Color.White, Color.Cyan, 0.5f);
110783 }
110785 {
110790 }
110792 {
110795 }
110797 {
110799 if (Main.expertMode)
110800 {
110802 }
110803 b = (byte)((
float)(int)
b *
num);
110804 return new Color((
int)
b, (
int)
b, (
int)
b, (
int)
b);
110805 }
110807 {
110810 }
110812 {
110814 }
110816 {
110818 }
110820 {
110822 }
110824 {
110827 }
110828 if (
type == 370 &&
ai[0] != -1
f &&
ai[0] < 9
f)
110829 {
110832 {
110834 }
110836 }
110838 {
110839 return new Color(250, 250, 250, 100);
110840 }
110842 {
110843 return new Color(200, 200, 200, 0);
110844 }
110846 {
110851 {
110853 }
110855 {
110857 }
110859 {
110861 }
110863 }
110865 {
110870 {
110872 }
110874 {
110876 }
110878 {
110880 }
110882 }
110884 {
110885 return new Color(255, 255, 255, 200);
110886 }
110888 {
110892 }
110893 else
110894 {
110896 {
110897 return new Color(200, 200, 200, 0);
110898 }
110900 {
110901 return new Color(250, 250, 250, 50);
110902 }
110904 {
110907 {
110909 }
110911 {
110913 }
110914 }
110916 {
110919 {
110921 }
110923 {
110925 }
110926 }
110927 else
110928 {
110930 {
110934 }
110936 {
110941 {
110943 }
110945 {
110947 }
110949 {
110951 }
110952 }
110953 }
110954 }
110956 {
110961 }
110963 {
110965 }
110967 {
110969 }
110971 }
static ? Color GetAlpha(NPC npc, Color lightColor)
This serves as the central class from which NPC-related functions are carried out....
bool CanApplyHunterPotionEffects()
float[] ai
An array with 4 slots used for any sort of data storage, which is occasionally synced from the server...
int type
The NPC ID of this NPC. The NPC ID is a unique number assigned to each NPC loaded into the game....
int alpha
0 is opaque, and 255 is transparent. Note that this is the opposite of how alpha is typically express...
float shimmerTransparency
bool IsABestiaryIconDummy