Пример #1
0
 //Constructor
 internal Weapon(MultiLang name = null, int attack = 0, StatusEffect statusEffect = null, int affinity = 0, SharpnessBar sharpnessBar = null, slot[] slots = null, int defense = 0, eldersealEnum elderseal = eldersealEnum.None, int rarity = 1, MultiLang description = null, bool buyableFromStore = false, int buyingCost = 0, Material[] creationMaterials = null, int creationCost = 0, Material[] upgradeMaterials = null, int upgradeCost = 0, Bitmap picture = null, Bitmap icon = null)
 {
     this.name         = name ?? new MultiLang();
     this.attack       = attack;
     this.statusEffect = statusEffect ?? new StatusEffect();
     this.affinity     = affinity;
     this.sharpnessBar = sharpnessBar ?? new SharpnessBar();
     this.slots        = slots ?? new slot[3]
     {
         slot.None,
         slot.None,
         slot.None
     };
     this.defense           = defense;
     this.elderseal         = elderseal;
     this.rarity            = rarity;
     this.description       = new MultiLang();
     this.buyableFromStore  = buyableFromStore;
     this.buyingCost        = buyingCost;
     this.creationMaterials = creationMaterials;
     this.creationCost      = creationCost;
     this.upgradeMaterials  = upgradeMaterials;
     this.upgradeCost       = upgradeCost;
     this.picture           = picture;
     this.picture           = icon;
 }
Пример #2
0
 //Constructor
 internal Item(MultiLang name = null, MultiLang description = null, MultiLang howToGet = null, int rarity = 1, int maxCarry = 1, int sellPrice = 0, Bitmap icon = null, Material[] combination = null)
 {
     this.name        = name ?? new MultiLang();
     this.description = description ?? new MultiLang();
     this.howToGet    = howToGet ?? new MultiLang();
     this.rarity      = rarity;
     this.maxCarry    = maxCarry;
     this.sellPrice   = sellPrice;
     this.icon        = icon;
     this.combination = combination;
 }