mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-18 16:01:42 +00:00
Adding Conjured Item
This commit is contained in:
parent
e9541d42b8
commit
71459293bb
@ -11,6 +11,7 @@ struct ItemNameConstants {
|
|||||||
static let kAgedBrieItem: String = "Aged Brie"
|
static let kAgedBrieItem: String = "Aged Brie"
|
||||||
static let kBackstagePassesItem: String = "Backstage passes to a TAFKAL80ETC concert"
|
static let kBackstagePassesItem: String = "Backstage passes to a TAFKAL80ETC concert"
|
||||||
static let kSulfurasItem: String = "Sulfuras, Hand of Ragnaros"
|
static let kSulfurasItem: String = "Sulfuras, Hand of Ragnaros"
|
||||||
|
static let kConjuredItem: String = "Conjured Mana Cake"
|
||||||
}
|
}
|
||||||
|
|
||||||
struct ValueConstants {
|
struct ValueConstants {
|
||||||
|
|||||||
18
swift/Sources/GildedRose/Items/ConjuredItem.swift
Normal file
18
swift/Sources/GildedRose/Items/ConjuredItem.swift
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
//
|
||||||
|
// File.swift
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Created by Manali Mogre on 18/08/2020.
|
||||||
|
//
|
||||||
|
|
||||||
|
import Foundation
|
||||||
|
|
||||||
|
class ConjuredItem: StandardItem{
|
||||||
|
|
||||||
|
override var decreasingValueOverZeroDaysToSell: Int {
|
||||||
|
return 2
|
||||||
|
}
|
||||||
|
override init(item: Item) {
|
||||||
|
super.init(item: item)
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user