diff --git a/Resources/Prototypes/Civ14/Entities/Objects/Materials/materials_metals.yml b/Resources/Prototypes/Civ14/Entities/Objects/Materials/materials_metals.yml index 6daa74c494452..5fd6b0812544f 100644 --- a/Resources/Prototypes/Civ14/Entities/Objects/Materials/materials_metals.yml +++ b/Resources/Prototypes/Civ14/Entities/Objects/Materials/materials_metals.yml @@ -93,3 +93,54 @@ state: copper - type: Stack count: 1 + +- type: entity + parent: IngotBase + id: IngotPigIron + name: pig iron ingot + suffix: Full + components: + - type: Material + - type: PhysicalComposition + materialComposition: + Iron: 100 + - type: Stack + stackType: PigIron + baseLayer: base + layerStates: + - pig_iron_one + - pig_iron_half + - pig_iron_full + - type: Sprite + state: pig_iron_full + layers: + - state: pig_iron_full + map: ["base"] + - type: Item + heldPrefix: iron + - type: Appearance + - type: Extractable + grindableSolutionName: iron + - type: SolutionContainerManager + solutions: + iron: + reagents: + - ReagentId: Iron + Quantity: 10 + +- type: entity + parent: IngotPigIron + id: IngotPigIron1 + name: pig iron ingot + suffix: Single + components: + - type: Sprite + state: pig_iron_one + - type: Stack + count: 1 +- type: stack + id: PigIron + name: PigIron + icon: { sprite: /Textures/Objects/Materials/ingots.rsi, state: pig_iron_one } + spawn: IngotPigIron1 + maxCount: 30 diff --git a/Resources/Prototypes/Civ14/Entities/Structures/Craft/armor.yml b/Resources/Prototypes/Civ14/Entities/Structures/Craft/armor.yml index 2ffc972fc46bb..abae1342d92b0 100644 --- a/Resources/Prototypes/Civ14/Entities/Structures/Craft/armor.yml +++ b/Resources/Prototypes/Civ14/Entities/Structures/Craft/armor.yml @@ -17,6 +17,7 @@ - civ13_suit_hauberk - civ13_suit_emirate_armor - civ13_suit_imperial_chinese_armor + - SheetSheetCiv14 - type: latheRecipePack id: AnvilArmorImperial @@ -103,3 +104,13 @@ materials: Iron: 1000 result: civ13_suit_imperial_chinese_armor + + - type: latheRecipe + id: SheetSheetCiv14 + categories: + - AnvilArmorMedieval + result: SheetSteel1 + completetime: 4 + materials: + PigIron: 100 + diff --git a/Resources/Prototypes/Civ14/Entities/Structures/Craft/metallurgy.yml b/Resources/Prototypes/Civ14/Entities/Structures/Craft/metallurgy.yml index 2bceaade8f48d..c10d3bc47a78f 100644 --- a/Resources/Prototypes/Civ14/Entities/Structures/Craft/metallurgy.yml +++ b/Resources/Prototypes/Civ14/Entities/Structures/Craft/metallurgy.yml @@ -148,3 +148,45 @@ completetime: 2 materials: RawSand: 100 + +- type: entity + id: BlastFurnace + name: blastfurnace + description: Used for making pig iron. + - type: Sprite + sprite: Civ14/Objects/metallurgy.rsi + layers: + - state: blast_furnace_on + shader: unshaded + map: [ "enum.LatheVisualLayers.IsRunning" ] + - state: blast_furnace + map: [ "enum.PowerDeviceVisualLayers.Powered" ] + - state: blast_furnace + map: [ "enum.MaterialStorageVisualLayers.Inserting" ] + - state: blast_furnace + map: [ "enum.WiresVisualLayers.MaintenancePanel" ] + - type: Destructible + thresholds: + - trigger: !type:DamageTrigger + damage: 200 + behaviors: + - !type:PlaySoundBehavior + sound: + collection: StoneBreak + - !type:DoActsBehavior + acts: [ "Destruction" ] + - type: ApcPowerReceiver + needsPower: false + - type: Lathe + idleState: blast_furnace + runningState: blast_furnace_on + staticPacks: + - BlastFurnace + - type: Construction + graph: BlastFurnace + node: end + + - type: latheRecipePack + id: BlastFurnace + recipes: + - IngotPigIron diff --git a/Resources/Prototypes/Civ14/Recipes/Construction/metallurgy.yml b/Resources/Prototypes/Civ14/Recipes/Construction/metallurgy.yml index c64e5954e4f97..1cbf33457242f 100644 --- a/Resources/Prototypes/Civ14/Recipes/Construction/metallurgy.yml +++ b/Resources/Prototypes/Civ14/Recipes/Construction/metallurgy.yml @@ -35,6 +35,37 @@ graph: - node: start edges: + +- type: constructionGraph + id: BlastFurnace + start: start + graph: + - node: start + edges: + - to: end + steps: + - material: Iron + amount: 25 + doAfter: 15 + - node: end + entity: BlastFurnace + +- type: construction + name: blastfurnace + id: BlastFurnace + graph: BlastFurnace + startNode: start + targetNode: end + category: construction-category-production + description: Used for smelting pig iron. + icon: { sprite: Civ14/Objects/metallurgy.rsi, state: bloomery } + objectType: Structure + agemin: 0 + agemax: 8 + placementMode: SnapgridCenter + canBuildInImpassable: false + conditions: + - !type:TileNotBlocked - to: end steps: - material: Stone @@ -121,3 +152,34 @@ canBuildInImpassable: false conditions: - !type:TileNotBlocked + + - type: constructionGraph + id: BlastFurnace + start: start + graph: + - node: start + edges: + - to: end + steps: + - material: Iron + amount: 25 + doAfter: 15 + - node: end + entity: BlastFurnace + +- type: construction + name: blast furnace + id: BlastFurnace + graph: BlastFurnace + startNode: start + targetNode: end + category: construction-category-production + description: Used for smelting pig iron. + icon: { sprite: Civ14/Objects/metallurgy.rsi, state: blast_furnace } + objectType: Structure + agemin: 2 + agemax: 8 + placementMode: SnapgridCenter + canBuildInImpassable: false + conditions: + - !type:TileNotBlocked diff --git a/Resources/Textures/Objects/Materials/ingots.rsi/pig_iron_full.png b/Resources/Textures/Objects/Materials/ingots.rsi/pig_iron_full.png new file mode 100644 index 0000000000000..a5d52911d7d92 Binary files /dev/null and b/Resources/Textures/Objects/Materials/ingots.rsi/pig_iron_full.png differ diff --git a/Resources/Textures/Objects/Materials/ingots.rsi/pig_iron_half.png b/Resources/Textures/Objects/Materials/ingots.rsi/pig_iron_half.png new file mode 100644 index 0000000000000..ae0c918fae687 Binary files /dev/null and b/Resources/Textures/Objects/Materials/ingots.rsi/pig_iron_half.png differ diff --git a/Resources/Textures/Objects/Materials/ingots.rsi/pig_iron_one.png b/Resources/Textures/Objects/Materials/ingots.rsi/pig_iron_one.png new file mode 100644 index 0000000000000..1ff5158a91da1 Binary files /dev/null and b/Resources/Textures/Objects/Materials/ingots.rsi/pig_iron_one.png differ