(i items.Item)
| 2106 | } |
| 2107 | |
| 2108 | func (c *Character) RemoveFromBody(i items.Item) bool { |
| 2109 | |
| 2110 | for _, slot := range AllSlots() { |
| 2111 | if i.Equals(*c.Equipment.Get(slot)) { |
| 2112 | if i.IsRemoveLocked() && c.Health > 0 { |
| 2113 | return false |
| 2114 | } |
| 2115 | c.Equipment.Set(slot, items.Item{}) |
| 2116 | c.reapplyPermabuffs(i) |
| 2117 | return true |
| 2118 | } |
| 2119 | } |
| 2120 | |
| 2121 | return false |
| 2122 | } |
| 2123 | |
| 2124 | // Used with SpawnInfo to gift spawning mobs with permabuffs |
| 2125 | func (c *Character) SetPermaBuffs(buffIds []int) { |
no test coverage detected