20230719_Homework-디아블로_아이템사전 1~10
2023. 7. 20.

1

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)
        {//1
            string nameHead = "VEIL OF STEEL";
            string typeHead = "Magic Helm";
            int minDamage = 21;
            int maxDamage = 24;
            string typeItem = "Armor";
            string msg = "+3 Random Magic Properties";

            Console.WriteLine("{0}\n{1}",nameHead,typeHead);
            Console.WriteLine("{0}-{1}\n{2}\n{3}", minDamage,maxDamage, typeItem,msg);
        }
    }
}

2

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)
        {//2
            string nameHead = "THE UNDEAD CROWN";
            string typeHead = "Magic Helm";
            int minDamage = 21;
            int maxDamage = 24;
            string typeItem = "Armor";
            string msg = "+3 Random Magic Properties";

            Console.WriteLine("{0}\n{1}",nameHead,typeHead);
            Console.WriteLine("{0}-{1}\n{2}\n{3}", minDamage,maxDamage, typeItem,msg);
        }
    }
}

 

3

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)
        {//3
            string nameShoulder = "LEATHER MANTLE";
            string typeShoulder = "Shoulders";
            int minDamage = 34;
            int maxDamage = 47;
            string typeItem = "Armor";
          //  string msg = "+3 Random Magic Properties";

            Console.WriteLine("{0}\n{1}",nameShoulder,typeShoulder);
            Console.WriteLine("{0}-{1}\n{2}\n", minDamage,maxDamage, typeItem);
        }
    }
}

 

 

4

 

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)
        {//4
            string nameShoulder = "JOURNEYMAN AMICE";
            string typeShoulder = "Rare Shoulders";
            int minDamage = 58;
            int maxDamage = 68;
            string typeItem = "Armor";
            string msg = "+4 Random Magic Properties";

            Console.WriteLine("{0}\n{1}",nameShoulder,typeShoulder);
            Console.WriteLine("{0}-{1}\n{2}\n{3}", minDamage,maxDamage, typeItem,msg);
        }
    }
}

 

5

 

 

 

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)
        {//5
            string nameShoulder = "SPAULDERS OF ZAKARA";
            string typeShoulder = "Legendary Shoulders";
            int minDamage = 58;
            int maxDamage = 68;
            string typeItem = "Armor";
            string msg = "Secondary\nYour items become indestructible. (Emanates)";
            int numProperty = 3;
            int minProperty = 416;
            int maxProperty = 500;
            string nameProperty1 = "Dexterity";
            string nameProperty2 = "Intelligence";
            string nameProperty3 = "Strength";

            Console.WriteLine("{0}\n{1}",nameShoulder,typeShoulder);
            Console.WriteLine("{0}-{1}\n{2}\n\n{3}\n", minDamage,maxDamage, typeItem,msg);
            Console.WriteLine("One of {0} Magic Properties (varies)",numProperty);
            Console.WriteLine("  +[{0}-{1}] {2}",minProperty,maxProperty,nameProperty1);
            Console.WriteLine("  +[{0}-{1}] {2}", minProperty, maxProperty, nameProperty2);
            Console.WriteLine("  +[{0}-{1}] {2}", minProperty, maxProperty, nameProperty3);
        }
    }
}

6

 

 

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)
        {//6
            string nameShoulder = "HOMING PADS";
            string typeShoulder = "Legendary Shoulders";
            int minDamage = 144;
            int maxDamage = 164;
            string typeItem = "Armor";
            string msg = "Your Town Portal is no longer interrupted by taking damage.\n While casting Town Portal you gain a protective bubble that \nreduces damage taken by 54%. (Emanates) [50 - 65]%";
            int numProperty = 3;
            int minProperty = 416;
            int maxProperty = 500;
            string nameProperty1 = "Dexterity";
            string nameProperty2 = "Intelligence";
            string nameProperty3 = "Strength";
            string msg2 = "Secondary\n+[32 - 35]% Extra Gold from Monsters";
            string msg3 = "+3 Random Magic Proterties";

            Console.WriteLine("{0}\n{1}",nameShoulder,typeShoulder);
            Console.WriteLine("{0}-{1}\n{2}\n\n{3}\n{4}\n", minDamage,maxDamage, typeItem,msg2,msg);
            Console.WriteLine("One of {0} Magic Properties (varies)",numProperty);
            Console.WriteLine("  +[{0}-{1}] {2}",minProperty,maxProperty,nameProperty1);
            Console.WriteLine("  +[{0}-{1}] {2}", minProperty, maxProperty, nameProperty2);
            Console.WriteLine("  +[{0}-{1}] {2}", minProperty, maxProperty, nameProperty3);
            Console.WriteLine(msg3);
        }
    }
}

 

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)
        {//7
            string nameShoulder = "ST.ARCHEW'S GAGE";
            string typeShoulder = "Legendary Gloves";
            int minDamage = 42;
            int maxDamage = 55;
            string typeItem = "Armor";
            string msg = "The first time an elite pack damages you, gain an absorb\nshield equal to 145% of your maximum Life for 10 seconds.\n[120 - 150]%";
            int numProperty = 3;
            int minProperty = 626;
            int maxProperty = 750;
            string nameProperty1 = "Dexterity";
            string nameProperty2 = "Intelligence";
            string nameProperty3 = "Strength";
            string msg2 = "Secondary\n+[32 - 35]% Extra Gold from Monsters";
            string msg3 = "\n+4 Random Magic Proterties";

            Console.WriteLine("{0}\n{1}",nameShoulder,typeShoulder);
            Console.WriteLine("{0}-{1}\n{2}\n\n{3}\n", minDamage,maxDamage, typeItem,msg);
            Console.WriteLine("One of {0} Magic Properties (varies)",numProperty);
            Console.WriteLine("  +[{0}-{1}] {2}",minProperty,maxProperty,nameProperty1);
            Console.WriteLine("  +[{0}-{1}] {2}", minProperty, maxProperty, nameProperty2);
            Console.WriteLine("  +[{0}-{1}] {2}", minProperty, maxProperty, nameProperty3);
            Console.WriteLine(msg3);
        }
    }
}

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)
        {//8
            string nameGloves = "MASTER PLATED GAUNTLETS";
            string typeGloves = "Rare Gloves";
            int minDamage = 70;
            int maxDamage = 87;
            string typeItem = "Armor";
            string msg = "+4 Random Magic Properties";

            Console.WriteLine("{0}\n{1}", nameGloves, typeGloves);
            Console.WriteLine("{0}-{1}\n{2}\n{3}", minDamage, maxDamage, typeItem, msg);
        }
    }
}

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)
        {//9
            string nameGloves = "GRAND MASTER GRIPS";
            string typeGloves = "Rare Gloves";
            int minDamage = 88;
            int maxDamage = 106;
            string typeItem = "Armor";
            string msg = "+4 Random Magic Properties";

            Console.WriteLine("{0}\n{1}", nameGloves, typeGloves);
            Console.WriteLine("{0}-{1}\n{2}\n{3}", minDamage, maxDamage, typeItem, msg);
        }
    }
}

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)
        {//10
            string nameGloves = "ILLUSTRIOUS VAMBRACES";
            string typeGloves = "Rare Gloves";
            int minDamage = 126;
            int maxDamage = 143;
            string typeItem = "Armor";
            string msg = "+4 Random Magic Properties";

            Console.WriteLine("{0}\n{1}", nameGloves, typeGloves);
            Console.WriteLine("{0}-{1}\n{2}\n{3}", minDamage, maxDamage, typeItem, msg);
        }
    }
}

'C# 기초 Homework' 카테고리의 다른 글

복소수와 사원수, 벡터  (1) 2023.08.13
Unity-Homework-몬스터 이동&공격(수정중)  (2) 2023.08.06
미션-보상 만들기  (2) 2023.07.31
디자인 패턴& 싱글톤 패턴,Dictionary 검색  (0) 2023.07.26
2048  (0) 2023.07.26
myoskin