Skip to content
Permalink
Browse files

Merged PR 547: Merge 617_building_types to master

Related work items: #617
  • Loading branch information...
realms-mud committed Aug 5, 2019
1 parent 97e1ab7 commit 9927d54038237946efca407eb6922a43e2a1a050
Showing with 134 additions and 49 deletions.
  1. +115 −49 dictionaries/domains/buildings.h
  2. +19 −0 instances/research/crafting/materials/refineMetal.c
@@ -234,84 +234,150 @@ protected mapping BuildingBlueprints = ([
"structure": 300,
]),

"forge":([
"type": "crafting",
"smelter":([
"type": "craftsman's floorplan",
"description": "",
"effects": ([
"default units": ([
"henchman": 1,
"blacksmith": 2,
]),
"upgrades": ([
"effects": ([
"smelt metal":([
"action": "smelt metal",
"duration bonus": 10,
"quantity bonus": 10,
])
]),
"colors": ([
"default":([
"3-bit": "\x1b[0;31m",
"8-bit": "\x1b[0;38;5;9m",
"24-bit": "\x1b[0;38;2;200;0;0m"
"building prerequisites": ([
"smelt metal":(["type":"research", "value": ({
"/lib/instances/research/crafting/materials/refineMetal.c", })
]),
"stonemasonry": (["type":"skill", "value": 5]),
"carpentry": (["type":"skill", "value": 5]),
"blacksmithing": (["type":"skill", "value": 5]),
"engineering": (["type":"skill", "value": 5]),
"sewing": (["type":"skill", "value": 2]),
]),
"icon":([
"ascii": "",
"unicode": "",
"building materials": ([
"stone": 100,
"wood": 150,
"metal": 15,
"textile": 5,
]),
"added duration": 300,
"structure": 300,
]),

"blacksmith":([
"type": "crafting",
"type": "craftsman's floorplan",
"description": "",
"effects": ([
"default units": ([
"henchman": 1,
"blacksmith": 2,
]),
"upgrades": ([
"effects": ([
"blacksmithing":([
"action": "blacksmithing",
"duration bonus": 10,
])
]),
"colors": ([
"default":([
"3-bit": "\x1b[0;31m",
"8-bit": "\x1b[0;38;5;9m",
"24-bit": "\x1b[0;38;2;200;0;0m"
]),
"building prerequisites": ([
"stonemasonry": (["type":"skill", "value": 5]),
"carpentry": (["type":"skill", "value": 5]),
"blacksmithing": (["type":"skill", "value": 5]),
"engineering": (["type":"skill", "value": 5]),
"sewing": (["type":"skill", "value": 2]),
]),
"icon":([
"ascii": "",
"unicode": "",
"building materials": ([
"stone": 100,
"wood": 150,
"metal": 15,
"textile": 5,
]),
"added duration": 300,
"structure": 300,
]),

"weaponsmith":([
"type": "crafting",
"type": "craftsman's floorplan",
"description": "",
"effects": ([
"default units": ([
"henchman": 1,
"weaponsmith": 2,
]),
"upgrades": ([
"effects": ([
"well-armed":([
"trait": "/lib/instances/unit-traits/well-armed",
"applies to category": "fighters"
]),
"craft weapons":([
"action": "craft weapons",
"duration bonus": 10,
"quantity bonus": 10,
])
]),
"colors": ([
"default":([
"3-bit": "\x1b[0;31m",
"8-bit": "\x1b[0;38;5;9m",
"24-bit": "\x1b[0;38;2;200;0;0m"
"building prerequisites": ([
"craft weapons":(["type":"research", "value" : ({
"/lib/instances/research/crafting/weapons/craftWeapons.c", })
]),
"weaponsmithing": (["type":"skill", "value": 15]),
"stonemasonry": (["type":"skill", "value": 5]),
"carpentry": (["type":"skill", "value": 5]),
"wood crafting": (["type":"skill", "value": 5]),
"engineering": (["type":"skill", "value": 5]),
"sewing": (["type":"skill", "value": 2]),
]),
"icon":([
"ascii": "",
"unicode": "",
"building materials": ([
"stone": 100,
"wood": 150,
"metal": 15,
"textile": 5,
]),
"added duration": 300,
"structure": 300,
]),

"armorer":([
"type": "crafting",
"type": "craftsman's floorplan",
"description": "",
"effects": ([
"default units": ([
"henchman": 1,
"armorer": 2,
]),
"upgrades": ([
"effects": ([
"well-protected":([
"trait": "/lib/instances/unit-traits/well-protected",
"applies to category": "fighters"
]),
"craft weapons":([
"action": "craft armor",
"duration bonus": 10,
"quantity bonus": 10,
])
]),
"colors": ([
"default":([
"3-bit": "\x1b[0;31m",
"8-bit": "\x1b[0;38;5;9m",
"24-bit": "\x1b[0;38;2;200;0;0m"
"building prerequisites": ([
"craft weapons":(["type":"research", "value" : ({
"/lib/instances/research/crafting/weapons/craftArmor.c", })
]),
"armorer": (["type":"skill", "value": 15]),
"stonemasonry": (["type":"skill", "value": 5]),
"carpentry": (["type":"skill", "value": 5]),
"wood crafting": (["type":"skill", "value": 5]),
"engineering": (["type":"skill", "value": 5]),
"sewing": (["type":"skill", "value": 2]),
]),
"icon":([
"ascii": "",
"unicode": "",
"building materials": ([
"stone": 100,
"wood": 150,
"metal": 15,
"textile": 5,
]),
"added duration": 300,
"structure": 300,
]),

"workshop":([
"type": "crafting",
"type": "craftsman's floorplan",
"description": "",
"effects": ([
]),
@@ -330,7 +396,7 @@ protected mapping BuildingBlueprints = ([
]),
]),
"carpenter":([
"type": "crafting",
"type": "craftsman's floorplan",
"description": "",
"effects": ([
]),
@@ -349,7 +415,7 @@ protected mapping BuildingBlueprints = ([
]),
]),
"stone mason":([
"type": "crafting",
"type": "craftsman's floorplan",
"description": "",
"effects": ([
]),
@@ -0,0 +1,19 @@
//*****************************************************************************
// Copyright (c) 2019 - Allen Cummings, RealmsMUD, All rights reserved. See
// the accompanying LICENSE file for details.
//*****************************************************************************
inherit "/lib/modules/research/knowledgeResearchItem.c";

/////////////////////////////////////////////////////////////////////////////
public void reset(int arg)
{
if (!arg)
{
knowledgeResearchItem::reset(arg);
addSpecification("name", "Refine Metal");
addSpecification("source", "crafting");
addSpecification("description", "This skill provides the user with the "
"knowledge required to smelt metal from ores.");
addSpecification("research type", "granted");
}
}

0 comments on commit 9927d54

Please sign in to comment.
You can’t perform that action at this time.