C#프로그래밍

디아블로 아이템 사전

다모아 2023. 7. 19. 15:56

1.

using System;
using System.ComponentModel;

namespace HelloWorld
{
    internal class Program
    {
        static void Main(string[] args) 
        {
                        string weapon = "Hand Axe";
            string supweapon = "Axe";

            float damage = 3.2f;
            String dps = "Damage Per Second";

            int mindamage = 2;
            int maxdamage = 3;
            float aps = 1.30f;
            string str = "";
            str = String.Format("{0:0.00}", aps);
            
            string minmaxdamage = mindamage + "-" + maxdamage + " Damage";
            string sumaps =  str + " Attacks per Second";

            Console.WriteLine("{0}\n{1}\n\n{2}\n{3}\n\n{4}\n{5}", weapon, supweapon, damage, dps, minmaxdamage, sumaps);
        }
    }
}

2.

using System;
using System.ComponentModel;

namespace HelloWorld
{
    internal class Program
    {
        static void Main(string[] args)
        {
            string name = "Lumber Axe";
            string supName = "Two-Handed Axe";
            float damage = 10.0f;
            string dps = "Damage Per Second";
            int mindamage = 9;
            int maxdamage = 11;
            string str = "";
            string str2 = "";
            float aps = 1.00f;
            str2 = String.Format("{0:0.00}", aps);
            str = String.Format("{0:0.0}", damage);
            string sum = mindamage + "-" + maxdamage + " Damage";
            string sumAps = str2 + " Attacks per Second";

            Console.WriteLine("{0}\n{1}\n\n{2}\n{3}\n\n{4}\n{5}", name, supName, str, dps, sum, sumAps);
        }
    }
}

 

3.

using System;
using System.ComponentModel;

namespace HelloWorld
{
    internal class Program
    {
        static void Main(string[] args)
        {
            String name = "Star Pauldrons";
            String supName = "Shoulders";

            int mindamage = 58;
            int maxdamage = 68;

            String str = mindamage + "-" + maxdamage; ;
            String weapon = "Armor";

            Console.WriteLine("{0}\n{1}\n\n{2}\n{3}", name, supName, str, weapon);
        }
    }
}

 

4.

using System;
using System.ComponentModel;

namespace HelloWorld
{
    internal class Program
    {
        static void Main(string[] args)
        {
            String name = "Mystery Helm";
            String supName = "Helm";
            String weapon = "Armor";

            Console.WriteLine("{0}\n{1}\n\n{2}", name, supName, weapon);
        }
    }
}

 

5.

using System;
using System.ComponentModel;

namespace HelloWorld
{
    internal class Program
    {
        static void Main(string[] args)
        {
            String name = "Leather Gloves";
            String supName = "Gloves";

            int mindamage = 14;
            int maxdamage = 16;
            String weapon = "Armor";

            String str = mindamage + "-" + maxdamage;

            Console.WriteLine("{0}\n{1}\n\n{2}\n{3}", name, supName, str,weapon);
        }
    }
}

6.

using System;
using System.ComponentModel;

namespace HelloWorld
{
    internal class Program
    {
        static void Main(string[] args)
        {
            String name = "Warden Bow";
            String supName = "Magic Bow";

            float damage = 15.4f;
            String dps = "Damage Per Second";

            int mindamage = 3;
            int maxdamage = 19;

            float aps = 1.40f;
            String str = "";
            str = String.Format("{0:0.00}", aps);

            String minmax = mindamage + "-" + maxdamage + " Damage";
            String sumAPS = str + " Attacks per Second";

            int rmp = 2;
            String sumRMP = "+" + rmp + " Random Magic Properties";

            String npc = "Blacksmith";
            String craft = "Crafted By " + npc + " (Level 1)";
            Console.WriteLine("{0}\n{1}\n\n{2}\n{3}\n\n{4}\n{5}\n\n  {6}\n\n{7}", name, supName, damage, dps, minmax, sumAPS, sumRMP, craft);
        }
    }
}

 

 

7.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HelloWorld
{
    internal class Program
    {
        static void Main(string[] args)
        {
            string name = "Boots";
            string supName = "Magic Boots";

            int mindamage = 16;
            int maxdamage = 18;
            string weapon = "Armor";

            int rmp = 2;
            string craft = "Blacksmith";

            string minmax = mindamage + "-" + maxdamage;
            string sumRmp = "+" + rmp + " Random Magic Properties";
            string sumCraft = "Crafted By: " + craft + " (level 1)";

            Console.WriteLine("{0}\n{1}\n\n{2}\n{3}\n\n {4}\n\n{5}", name, supName, minmax, weapon, sumRmp, sumCraft);
        }
    }
}

 

8.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HelloWorld
{
    internal class Program
    {
        static void Main(string[] args)
        {
            string name = "Amulet";
            string supName = "Rare Amulet";

            int rmp = 4;
            string craft = "Jeweler";

            string sumRmp = "+" + rmp + " Random Magic Properties";
            string sumCraft = "Crafted By: " + craft + " (level 6)";

            Console.WriteLine("{0}\n{1}\n\n {2}\n\n{3}", name, supName, sumRmp, sumCraft);  
        }
    }
}

9.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HelloWorld
{
    internal class Program
    {
        static void Main(string[] args)
        {
            string name = "BUCKLER";
            string supName = "Shield";

            int mindamage = 8;
            int maxdamage = 9;
            string weapon = "Armor";

            float minChanceToBlock = 10.0f;
            float maxChanceToBlock = 20.0f;

            string strMinChanceToBlock = "";
            strMinChanceToBlock = String.Format("{0:0.0}", minChanceToBlock);
            string strMaxChanceToBlock = "";
            strMaxChanceToBlock = String.Format("{0:0.0}", maxChanceToBlock);

            int minBlockAmount = 7;
            int maxBlockAmount = 12;

            string sumMinMax = mindamage + "-" + maxdamage;
            string sumChanceToBlock = "+[" + strMinChanceToBlock + " - " + strMaxChanceToBlock + "]% Chance to Block";
            string sumBlockAmount = minBlockAmount + "-" + maxBlockAmount  + " Block Amount";

            Console.WriteLine("{0}\n{1}\n\n{2}\n{3}\n\n{4}\n{5}", name, supName, sumMinMax, weapon, sumChanceToBlock, sumBlockAmount);  
        }
    }
}

 

10.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HelloWorld
{
    internal class Program
    {
        static void Main(string[] args)
        {
            string name = "Godly Plate of the Whale";
            string supName = "Magic Chest Armor";

            int mindamage = 87;
            int maxdamage = 107;
            string weapon = "Armor";

            int rmp = 3;
            string sumMinMax = mindamage + " - " + maxdamage; 
            string sumRmp = "+" + rmp + " Random Magic Properties";

            Console.WriteLine("{0}\n{1}\n\n{2}\n{3}\n\n {4}", name, supName, sumMinMax, weapon, sumRmp);  
        }
    }
}

 

'C#프로그래밍' 카테고리의 다른 글

영웅 피  (0) 2023.07.19
변환(캐스팅)  (0) 2023.07.19
문자열 보간  (0) 2023.07.19
결합연산자  (0) 2023.07.19
HelloWorld  (0) 2023.07.19