()
| 1916 | } |
| 1917 | |
| 1918 | func (c *Character) GetGearValue() int { |
| 1919 | value := 0 |
| 1920 | for _, slot := range AllSlots() { |
| 1921 | if itm := c.Equipment.Get(slot); itm.ItemId > 0 { |
| 1922 | value += itm.GetSpec().Value |
| 1923 | } |
| 1924 | } |
| 1925 | return value |
| 1926 | } |
| 1927 | |
| 1928 | func (c *Character) Wear(i items.Item) (returnItems []items.Item, newItemWorn bool, failureReason string) { |
| 1929 |
no test coverage detected