コード例 #1
0
ファイル: Trophies.cs プロジェクト: tflynt91/TrueUO
        public FishTrophy(Type type, TrophyStyle style, bool north, int label, int weight, Mobile fisher, DateTime datecaught)
        {
            int hue = FishInfo.GetFishHue(type);

            m_TypeName = type;

            m_FishWeight = weight;
            m_Fisher     = fisher;
            m_DateCaught = datecaught;

            switch (style)
            {
            case TrophyStyle.Marlin:
            {
                if (north)
                {
                    AddComponent(new TrophyComponent(17641, label, hue), 0, 0, 0);
                    AddComponent(new TrophyComponent(17642, label, hue), -1, 0, 0);
                    AddComponent(new TrophyComponent(17643, label, hue), 1, 0, 0);
                }
                else
                {
                    AddComponent(new TrophyComponent(17644, label, hue), 0, 0, 0);
                    AddComponent(new TrophyComponent(17645, label, hue), 0, 1, 0);
                    AddComponent(new TrophyComponent(17646, label, hue), 0, -1, 0);
                }
                break;
            }

            case TrophyStyle.Dragonfish:
            {
                if (north)
                {
                    AddComponent(new TrophyComponent(17639, label, hue), 0, 0, 0);
                }
                else
                {
                    AddComponent(new TrophyComponent(17640, label, hue), 0, 0, 0);
                }
                break;
            }

            case TrophyStyle.BoardMahi:
            {
                if (north)
                {
                    AddComponent(new TrophyComponent(19283, label, 0), 0, 0, 0);
                    AddComponent(new TrophyComponent(19287, label, hue), 0, 0, 0);
                }
                else
                {
                    AddComponent(new TrophyComponent(19282, label, 0), 0, 0, 0);
                    AddComponent(new TrophyComponent(19286, label, hue), 0, 0, 0);
                }
                break;
            }

            case TrophyStyle.BoardGrouper:
            {
                if (north)
                {
                    AddComponent(new TrophyComponent(19281, label, 0), 0, 0, 0);
                    AddComponent(new TrophyComponent(19285, label, hue), 0, 0, 0);
                }
                else
                {
                    AddComponent(new TrophyComponent(19280, label, 0), 0, 0, 0);
                    AddComponent(new TrophyComponent(19284, label, hue), 0, 0, 0);
                }
                break;
            }

            case TrophyStyle.Crab:
            {
                if (north)
                {
                    AddComponent(new TrophyComponent(18106, label, hue), 0, 0, 0);
                }
                else
                {
                    AddComponent(new TrophyComponent(18107, label, hue), 0, 0, 0);
                }
                break;
            }

            case TrophyStyle.Lobster:
            {
                if (north)
                {
                    AddComponent(new TrophyComponent(18108, label, hue), 0, 0, 0);
                }
                else
                {
                    AddComponent(new TrophyComponent(18109, label, hue), 0, 0, 0);
                }
                break;
            }
            }
        }
コード例 #2
0
ファイル: Trophies.cs プロジェクト: Crome696/ServUO
        public FishTrophy(Type type, TrophyStyle style, bool north, int label, int weight, Mobile fisher, DateTime datecaught)
        {
            int hue = FishInfo.GetFishHue(type);
            m_TypeName = type;

            m_FishWeight = weight;
            m_Fisher = fisher;
            m_DateCaught = datecaught;

            switch(style)
            {
                case TrophyStyle.Marlin:
                    {
                        if(north)
                        {
                            AddComponent(new TrophyComponent(17641, label, hue), 0, 0, 0);
                            AddComponent(new TrophyComponent(17642, label, hue), -1, 0, 0); 
                            AddComponent(new TrophyComponent(17643, label, hue), 1, 0, 0); 
                        }
                        else
                        {
                            AddComponent(new TrophyComponent(17644, label, hue), 0, 0, 0); 
                            AddComponent(new TrophyComponent(17645, label, hue), 0, 1, 0); 
                            AddComponent(new TrophyComponent(17646, label, hue), 0, -1, 0); 
                        }
                        break;
                    }
                case TrophyStyle.Dragonfish:
                    {
                        if (north)
                            AddComponent(new TrophyComponent(17639, label, hue), 0, 0, 0);
                        else
                            AddComponent(new TrophyComponent(17640, label, hue), 0, 0, 0);
                        break;
                    }
                case TrophyStyle.BoardMahi:
                    {
                        if (north)
                        {
                            AddComponent(new TrophyComponent(19283, label, 0), 0, 0, 0);
                            AddComponent(new TrophyComponent(19287, label, hue), 0, 0, 0);
                        }
                        else
                        {
                            AddComponent(new TrophyComponent(19282, label, 0), 0, 0, 0);
                            AddComponent(new TrophyComponent(19286, label, hue), 0, 0, 0);
                        }
                        break;
                    }
                case TrophyStyle.BoardGrouper:
                    {
                        if (north)
                        {
                            AddComponent(new TrophyComponent(19281, label, 0), 0, 0, 0);
                            AddComponent(new TrophyComponent(19285, label, hue), 0, 0, 0);
                        }
                        else
                        {
                            AddComponent(new TrophyComponent(19280, label, 0), 0, 0, 0);
                            AddComponent(new TrophyComponent(19284, label, hue), 0, 0, 0);
                        }
                        break;
                    }
                case TrophyStyle.Crab:
                    {
                        if (north)
                        {
                            AddComponent(new TrophyComponent(18106, label, hue), 0, 0, 0);
                        }
                        else
                        {
                            AddComponent(new TrophyComponent(18107, label, hue), 0, 0, 0);
                        }
                        break;
                    }
                case TrophyStyle.Lobster:
                    {
                        if (north)
                        {
                            AddComponent(new TrophyComponent(18108, label, hue), 0, 0, 0);
                        }
                        else
                        {
                            AddComponent(new TrophyComponent(18109, label, hue), 0, 0, 0);
                        }
                        break;
                    }
            }
        }