You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* * SPDX-License-Identifier: Apache-2.0 * * Copyright 2015-2021 Andre White. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.*/packageio.truthencode.ddo.model.itemimportio.truthencode.ddo.MonetaryValue.Coinsimportio.truthencode.ddo.model.effect.Effectimportio.truthencode.ddo.model.misc.Materialimportio.truthencode.ddo.model.race.Raceimportio.truthencode.ddo.{BindingFlags, MetaData, SetItem}
/** * A general Item, which can be a Weapon, Armor, potion, scroll etc.*/traitItemextendsMetaData {
/** * A Friendly, Kobold readable description or explanation of the item.*/valdescription:Option[String]
/** * requiredRaces - list of races the player or pet MUST be to naturally equip the item unless they * can bypass with a high enough UMD.*/valrequiredRaces:List[Race] =Nil/** * A list of races that a player MUST be to equip the item.*/valabsoluteRequiredRaces:List[Race] =Nil/** * A list of races the player MUST NOT be in order to wear. * @example * Warforged can NOT wear plate armor.*/valabsoluteRestrictedRaces:List[Race] =Nil/** * Represents the Minimum level a player must be to equip this item.*/valminimumLevel:Int/** * Represents the absolute minimum level of the item. This is usually due to augments or crafting * or other alterations to a base item.*/valabsoluteMinimumLevel:Option[Int]
/** * Use Magical Device [[http://ddowiki.com/page/Use_Magic_Device UMD]] Skill level needed to * bypass certain restrictions such as using wands below level or out of class or bypassing race * restrictions.*/valumd:Int/** * Additional Effects such as enchantments on a Weapon*/valeffects:List[Effect] =Nil/** * //TODO: create set bonus case classes*/valsetBonus:List[SetItem] =Nil/** * Represents monetary in game amount. plat / gold / copper. Low Priority * i.e. Base Value: 7pp 5gp TODO: Base Value may need to be a double or something to better * represent*/valbaseValue:Option[Coins]
/** * Weight of item, in pounds * i.e. Weight: 2 lbs*/valweight:Option[Int]
/** * Durability * * The durability is the toughness of the item. The higher the durability, the more damage it can * withstand before breaking. The material also contributes to this value. * * @note * For purposes of this API, only maximum durability is considered. Not instance. * i.e. Durability 120 means 120 / 120, your actual item may have wear.*/valdurability:Int/** * Material what the item is "made from" * I.e. bows - typically wood, plate mail may be steel or dwarven iron. * * @example * Druids (and their pets) can wear leather armour. Generally they wear light armour or cloth, * however, there are a few medium armours made from chiten or carapace that would not violate * the druidic oath.*/valmaterial:Option[Material]
/** * Hardness Generally based on the material and influences how quickly durability is decreased. * Adamantum and Diamond would have a higher rating that wood.*/valhardness:Int/** * Indicates the binding status, if any for the item.*/valbinding:Option[BindingFlags]
/** * List of enchantments*/valenchantments:Option[Seq[String]]
}
cdd39fcf4293ceb4bc06a81ef0c430ce51a9608a
The text was updated successfully, but these errors were encountered:
create set bonus case classes
ddo-calc/subprojects/common/ddo-core/src/main/scala/io/truthencode/ddo/model/item/Item.scala
Line 75 in 29a0277
cdd39fcf4293ceb4bc06a81ef0c430ce51a9608a
The text was updated successfully, but these errors were encountered: