Example #1
0
 private void completeScroll(ScrollName s)
 {
     switch(s) {
     case ScrollName.None:
         itemName = "Empty";
         itemDescription = "Empty";
         weight = 0;
         value = 0;
         scrollEffect = ScrollEffect.None;
         break;
     case ScrollName.Health:
         itemName = "Health Scroll";
         itemDescription = "";
         weight = 1;
         value = 1;
         scrollEffect = ScrollEffect.Health;
         break;
     case ScrollName.Strength:
         itemName = "Strength Scroll";
         itemDescription = "";
         weight = 1;
         value = 1;
         scrollEffect = ScrollEffect.Strength;
         break;
     case ScrollName.Dexterity:
         itemName = "Dexterity Scroll";
         itemDescription = "";
         weight = 1;
         value = 1;
         scrollEffect = ScrollEffect.Dexterity;
         break;
     default:
         break;
     }
 }
Example #2
0
 public Scroll(ScrollName scrollName)
 {
     this.scrollName = scrollName;
     baseItemType = BaseItemType.Scroll;
     completeScroll(scrollName);
 }