From c63c38d98a699d93eac570ab17b2a94ef99faa1b Mon Sep 17 00:00:00 2001 From: borsek Date: Sun, 17 Sep 2023 22:56:08 +0100 Subject: [PATCH] Add files via upload --- data/mods/Borsek_teleporters/furniture.json | 56 ++++----- data/mods/Borsek_teleporters/item.json | 111 ++++++++++-------- data/mods/Borsek_teleporters/item_groups.json | 22 ++++ data/mods/Borsek_teleporters/main.lua | 10 +- data/mods/Borsek_teleporters/modinfo.json | 2 +- data/mods/Borsek_teleporters/recipes.json | 75 ++++++++++++ 6 files changed, 187 insertions(+), 89 deletions(-) create mode 100644 data/mods/Borsek_teleporters/item_groups.json create mode 100644 data/mods/Borsek_teleporters/recipes.json diff --git a/data/mods/Borsek_teleporters/furniture.json b/data/mods/Borsek_teleporters/furniture.json index def2cdb7224d..3f701ff1d791 100644 --- a/data/mods/Borsek_teleporters/furniture.json +++ b/data/mods/Borsek_teleporters/furniture.json @@ -1,28 +1,28 @@ -[ - { - "id": "teleporter_anchor_deployed", - "type": "furniture", - "name": "Teleporter anchor (deployed)", - "move_cost_mod": 4, - "coverage": 0, - "required_str": 100, - "description": "A teleporter anchor, functioning as a target you can teleport to.", - "symbol": "O", - "color": "yellow", - "flags": [ "EASY_DECONSTRUCT", "NOCOLLIDE" ], - "looks_like": "telepad" - }, - { - "id": "teleporter_station_deployed", - "type": "furniture", - "name": "Teleporter station (deployed)", - "move_cost_mod": 4, - "coverage": 0, - "required_str": 100, - "description": "A teleporter station, can be used to teleport.", - "symbol": "O", - "color": "yellow", - "flags": [ "EASY_DECONSTRUCT" ], - "looks_like": "f_MRI" - } -] +[ +{ + "id": "teleporter_anchor_deployed", + "type": "furniture", + "name": "Teleporter anchor (deployed)", + "move_cost_mod": 4, + "coverage": 0, + "required_str": 100, + "description": "A teleporter anchor, functioning as a target you can teleport to.", + "symbol": "O", + "color": "yellow", + "flags": [ "EASY_DECONSTRUCT", "NOCOLLIDE" ], + "looks_like": "telepad" + }, + { + "id": "teleporter_station_deployed", + "type": "furniture", + "name": "Teleporter station (deployed)", + "move_cost_mod": 4, + "coverage": 0, + "required_str": 100, + "description": "A teleporter station, can be used to teleport.", + "symbol": "O", + "color": "yellow", + "flags": [ "EASY_DECONSTRUCT" ], + "looks_like": "f_MRI" + } +] \ No newline at end of file diff --git a/data/mods/Borsek_teleporters/item.json b/data/mods/Borsek_teleporters/item.json index e5866935111f..448c6af032b1 100644 --- a/data/mods/Borsek_teleporters/item.json +++ b/data/mods/Borsek_teleporters/item.json @@ -1,24 +1,24 @@ [ { - "id": "teleporter_controller", - "category": "tools", - "type": "TOOL", - "name": { "str": "A teleporter remote" }, - "description": "A device with a digital display, connected to the teleporter network. Can be used to check teleporter status and teleport the user.", - "symbol": "{", - "color": "black", - "weight": "1680 g", - "volume": "1 L", - "price": 40000, - "price_postapoc": 10000, - "material": [ "steel" ], - "to_hit": -4, - "bashing": 1, - "use_action": "teleporter_controller_use", - "looks_like": "teleporter", - "ammo": "battery", - "charges_per_use": 1, - "magazines": [ + "id": "teleporter_controller", + "category": "tools", + "type": "TOOL", + "name": { "str": "Teleporter remote" }, + "description": "A device with a digital display, connected to the teleporter network. Can be used to check teleporter status and teleport the user.", + "symbol": "{", + "color": "black", + "weight": "1680 g", + "volume": "1 L", + "price": 40000, + "price_postapoc": 10000, + "material": [ "steel" ], + "to_hit": -4, + "bashing": 1, + "use_action": "teleporter_controller_use", + "looks_like": "teleporter", + "ammo": "battery", + "charges_per_use": 1, + "magazines": [ [ "battery", [ @@ -35,39 +35,46 @@ "magazine_well": "250 ml" }, { - "id": "teleporter_anchor_undeployed", - "category": "tools", - "type": "TOOL", - "name": { "str": "Teleporter anchor" }, - "description": "A teleporter anchor, can be placed to function as a target.", - "symbol": "{", - "color": "black", - "weight": "150000 g", - "volume": "150 L", - "price": 40000, - "price_postapoc": 10000, - "material": [ "steel" ], - "to_hit": -4, - "bashing": 1, - "use_action": "teleporter_anchor_use", - "looks_like": "tr_firewood_source" + "id": "teleporter_anchor_undeployed", + "category": "tools", + "type": "TOOL", + "name": { "str": "Teleporter anchor (undeployed)" }, + "description": "A teleporter anchor, can be placed to function as a target.", + "symbol": "{", + "color": "black", + "weight": "150000 g", + "volume": "150 L", + "price": 40000, + "price_postapoc": 10000, + "material": [ "steel" ], + "to_hit": -4, + "bashing": 1, + "use_action": "teleporter_anchor_use", + "looks_like": "tr_firewood_source" }, { - "id": "teleporter_station_undeployed", - "category": "tools", - "type": "TOOL", - "name": { "str": "Teleporter station (undeployed), can be used to be deployed." }, - "description": "A deployable teleporter station.", - "symbol": "{", - "color": "black", - "weight": "400000 g", - "volume": "350 L", - "price": 40000, - "price_postapoc": 10000, - "material": [ "steel" ], - "to_hit": -4, - "bashing": 1, - "use_action": "teleporter_station_use", - "looks_like": "f_fridge" - } + "id": "teleporter_station_undeployed", + "category": "tools", + "type": "TOOL", + "name": { "str": "Teleporter station (undeployed)" }, + "description": "A deployable teleporter station.", + "symbol": "{", + "color": "black", + "weight": "400000 g", + "volume": "350 L", + "price": 40000, + "price_postapoc": 10000, + "material": [ "steel" ], + "to_hit": -4, + "bashing": 1, + "use_action": "teleporter_station_use", + "looks_like": "f_fridge" + }, + { + "id": "schematics_teleportation", + "type": "BOOK", + "name": { "str_sp": "Teleporter network schematics" }, + "description": "A disjointed collection of lab book pages , post-it notes, and computer printouts containing some funky physics equations and circuit diagrams. They seem to be describing some form of stable teleportation technology.", + "copy-from": "schematics_generic" + }, ] diff --git a/data/mods/Borsek_teleporters/item_groups.json b/data/mods/Borsek_teleporters/item_groups.json new file mode 100644 index 000000000000..7ff5636874e8 --- /dev/null +++ b/data/mods/Borsek_teleporters/item_groups.json @@ -0,0 +1,22 @@ +[ + { + "id": "science", + "type": "item_group", + "items": [ [ "schematics_teleportation", 1 ] ] + }, + { + "id": "schematics", + "type": "item_group", + "items": [ [ "schematics_teleportation", 10 ] ] + }, + { + "id": "books_bank_vault", + "type": "item_group", + "items": [ [ "schematics_teleportation", 10 ] ] + }, + { + "id": "teleport", + "type": "item_group", + "items": [ [ "schematics_teleportation", 10 ] ] + } +] \ No newline at end of file diff --git a/data/mods/Borsek_teleporters/main.lua b/data/mods/Borsek_teleporters/main.lua index 4e69c82dacad..4b7e2b57e34c 100644 --- a/data/mods/Borsek_teleporters/main.lua +++ b/data/mods/Borsek_teleporters/main.lua @@ -46,14 +46,8 @@ local storage = game.mod_storage[ game.current_mod ] --Feature frenzy <- not done - can draw vehicle power to charge stations -- removable bases and anchors -- add book that teaches this tech -- make item graphics/switch to better stuff than a fridge or log - - -- personal teleporter costs a teleporter, 5 proc units, assorted (s)crap, high-cap heavy battery as fuel -- base costs 10 advanced solar panels, 5 teleporters, teleporter controls (50 proc units, 5 antennae, heavy frame, assorted (s)crap -- target anchor costs a solar panel, heavy frame +- removable bases and anchors (requires saving of abs_ms, function to remove it) +- add book spawn to labs <- ask if done with itemgroups ]]-- diff --git a/data/mods/Borsek_teleporters/modinfo.json b/data/mods/Borsek_teleporters/modinfo.json index 815a329a29da..b89b19652bf8 100644 --- a/data/mods/Borsek_teleporters/modinfo.json +++ b/data/mods/Borsek_teleporters/modinfo.json @@ -4,7 +4,7 @@ "id": "teleportation_tech", "name": "Teleportation", "authors": [ "Borsek" ], - "description": "Add craftable and buildable teleporters for use (with vehicles in the future) and static bases.", + "description": "Add craftable and buildable teleporters for use with vehicles and static bases.", "category": "content", "obsolete": false, "lua_api_version": 1, diff --git a/data/mods/Borsek_teleporters/recipes.json b/data/mods/Borsek_teleporters/recipes.json new file mode 100644 index 000000000000..e56a53bb2db4 --- /dev/null +++ b/data/mods/Borsek_teleporters/recipes.json @@ -0,0 +1,75 @@ +[ + { + "result": "teleporter_controller", + "type": "recipe", + "category": "CC_ELECTRONIC", + "subcategory": "CSC_ELECTRONIC_TOOLS", + "skill_used": "fabrication", + "skills_required": [ "electronics", 7 ], + "difficulty": 7, + "time": 10000, + "decomp_learn": 3, + "reversible": true, + "book_learn": [ [ "schematics_teleportation", 7 ] ], + "using": [ [ "soldering_standard", 15 ], [ "surface_heat", 10 ] ], + "components": [ [ [ "teleporter", 1 ] ], +[ [ "plastic_chunk", 4 ] ], +[ [ "cable", 2 ] ], +[ [ "scrap", 2 ] ], +[ [ "adhesive", 1, "LIST" ] ], +[ [ "amplifier", 2 ] ], +[ [ "antenna", 1 ] ], +[ [ "receiver", 1 ] ], +[ [ "processor", 5 ] ], +[ [ "RAM", 1 ] ], +[ [ "e_scrap", 10 ] ] ] + }, + { + "result": "teleporter_station_undeployed", + "type": "recipe", + "category": "CC_ELECTRONIC", + "subcategory": "CSC_ELECTRONIC_TOOLS", + "skill_used": "fabrication", + "skills_required": [ "electronics", 9 ], + "difficulty": 9, + "time": 10000, + "decomp_learn": 3, + "reversible": true, + "book_learn": [ [ "schematics_teleportation", 9 ] ], + "using": [ [ "soldering_standard", 150 ], [ "welding_standard", 500 ] ], + "components": [ [ [ "teleporter", 5 ] ], +[ [ "solar_panel_v2", 5 ] ], +[ [ "plastic_chunk", 12 ] ], +[ [ "processor", 50 ] ], +[ [ "hdframe", 1 ] ], +[ [ "adhesive", 10, "LIST" ] ], +[ [ "antenna", 3 ] ], +[ [ "receiver", 3 ] ], +[ [ "RAM", 10 ] ], +[ [ "e_scrap", 30 ] ], +[ [ "sheet_metal_small", 5 ] ] ] + }, + { + "result": "teleporter_anchor_undeployed", + "type": "recipe", + "category": "CC_ELECTRONIC", + "subcategory": "CSC_ELECTRONIC_TOOLS", + "skill_used": "fabrication", + "skills_required": [ "electronics", 8 ], + "difficulty": 8, + "time": 10000, + "decomp_learn": 3, + "reversible": true, + "book_learn": [ [ "schematics_teleportation", 8 ] ], + "using": [ [ "soldering_standard", 150 ], [ "welding_standard", 500 ] ], + "components": [ [ [ "solar_panel_v2", 1 ] ], +[ [ "processor", 1 ] ], +[ [ "plastic_chunk", 4 ] ], +[ [ "hdframe", 1 ] ], +[ [ "adhesive", 1, "LIST" ] ], +[ [ "antenna", 1 ] ], +[ [ "receiver", 1 ] ], +[ [ "RAM", 1 ] ], +[ [ "e_scrap", 3 ] ] ] + } + ]