Skip to content

Commit

Permalink
Remove laserturret
Browse files Browse the repository at this point in the history
  • Loading branch information
ymber committed May 19, 2020
1 parent f8f9f52 commit affa0bd
Show file tree
Hide file tree
Showing 12 changed files with 79 additions and 137 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,6 @@
"subtype": "distribution",
"entries": [ { "item": "9mm", "prob": 8 } ]
},
{
"type": "item_group",
"id": "laserturret",
"subtype": "distribution",
"entries": [ { "item": "cerberus_laser", "prob": 1 } ]
},
{
"type": "item_group",
"id": "turret_rifle",
Expand Down
2 changes: 0 additions & 2 deletions data/json/itemgroups/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
{ "item": "bio_blade", "prob": 10 },
{ "item": "bio_speed", "prob": 10 },
{ "item": "bot_c4_hack", "prob": 30 },
{ "item": "bot_laserturret", "prob": 20 },
{ "item": "c4", "prob": 50 },
{ "item": "canister_goo", "prob": 80 },
{ "item": "cleansuit", "prob": 100 },
Expand Down Expand Up @@ -87,7 +86,6 @@
"subtype": "distribution",
"entries": [
{ "item": "12mm", "prob": 10 },
{ "item": "bot_laserturret", "prob": 10 },
{ "item": "alloy_plate", "prob": 10 },
{ "item": "plasma_gun", "prob": 10 },
{ "item": "can_sealer", "prob": 10 },
Expand Down
1 change: 0 additions & 1 deletion data/json/itemgroups/military.json
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@
{ "item": "match_trigger", "prob": 2 },
{ "item": "grapnel", "prob": 1 },
{ "item": "bucket", "prob": 4 },
{ "item": "bot_laserturret", "prob": 1 },
{ "item": "sheath", "prob": 13 },
{ "item": "bootsheath", "prob": 8 },
{ "item": "toolbox", "prob": 1 },
Expand Down
23 changes: 0 additions & 23 deletions data/json/items/corpses/inactive_bots.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,29 +134,6 @@
"skill2": "computer"
}
},
{
"id": "bot_laserturret",
"type": "TOOL",
"name": { "str": "inactive laser turret" },
"description": "This is an inactive laser turret. Using this item involves turning it on and placing it on the ground, where it will attach itself. If reprogrammed and rewired successfully the turret will identify you as a friendly, and attack all enemies with its revolving laser cannons. It requires sunlight in order to fire.",
"weight": "40750 g",
"volume": "30 L",
"price": 600000,
"price_postapoc": 12000,
"to_hit": -3,
"bashing": 8,
"material": [ "steel", "plastic" ],
"symbol": ";",
"color": "white",
"use_action": {
"type": "place_monster",
"monster_id": "mon_laserturret",
"difficulty": 6,
"moves": 100,
"skill1": "electronics",
"skill2": "computer"
}
},
{
"id": "bot_antimateriel",
"type": "TOOL",
Expand Down
9 changes: 0 additions & 9 deletions data/json/items/generic.json
Original file line number Diff line number Diff line change
Expand Up @@ -2933,15 +2933,6 @@
"weight": "100 kg",
"copy-from": "broken_turret"
},
{
"type": "GENERIC",
"id": "broken_laserturret",
"symbol": ",",
"color": "green",
"name": { "str": "broken laser turret" },
"weight": "110 kg",
"copy-from": "broken_turret"
},
{
"type": "GENERIC",
"id": "broken_secubot",
Expand Down
32 changes: 32 additions & 0 deletions data/json/items/obsolete.json
Original file line number Diff line number Diff line change
Expand Up @@ -2679,5 +2679,37 @@
[ "underbarrel", 1 ]
],
"magazines": [ [ "545x39", [ "ak74mag", "rpk74mag" ] ] ]
},
{
"id": "bot_laserturret",
"type": "TOOL",
"name": { "str": "inactive laser turret" },
"description": "This is an inactive laser turret. Using this item involves turning it on and placing it on the ground, where it will attach itself. If reprogrammed and rewired successfully the turret will identify you as a friendly, and attack all enemies with its revolving laser cannons. It requires sunlight in order to fire.",
"weight": "40750 g",
"volume": "30 L",
"price": 600000,
"price_postapoc": 12000,
"to_hit": -3,
"bashing": 8,
"material": [ "steel", "plastic" ],
"symbol": ";",
"color": "white",
"use_action": {
"type": "place_monster",
"monster_id": "mon_laserturret",
"difficulty": 6,
"moves": 100,
"skill1": "electronics",
"skill2": "computer"
}
},
{
"type": "GENERIC",
"id": "broken_laserturret",
"symbol": ",",
"color": "green",
"name": { "str": "broken laser turret" },
"weight": "110 kg",
"copy-from": "broken_turret"
}
]
37 changes: 37 additions & 0 deletions data/json/monsters/obsolete.json
Original file line number Diff line number Diff line change
Expand Up @@ -367,5 +367,42 @@
"special_attacks": [ [ "CHICKENBOT", 4 ] ],
"death_function": [ "BROKEN" ],
"flags": [ "SEES", "HEARS", "BASHES", "NO_BREATHE", "ELECTRONIC", "PRIORITIZE_TARGETS", "DROPS_AMMO" ]
},
{
"id": "mon_laserturret",
"type": "MONSTER",
"name": { "str": "laser turret" },
"description": "The TX-5LR Cerberus is an upgrade to its predecessors. It features a state of the art revolving laser cannon system with three barrels that charge from solar cells embedded in its hull.",
"default_faction": "military",
"species": [ "ROBOT" ],
"diff": 20,
"volume": "30000 ml",
"weight": "40750 g",
"hp": 30,
"speed": 100,
"material": [ "steel" ],
"symbol": "2",
"color": "white",
"aggression": 100,
"morale": 100,
"armor_bash": 14,
"armor_cut": 16,
"armor_bullet": 13,
"vision_day": 50,
"revert_to_itype": "bot_laserturret",
"special_attacks": [
{
"type": "gun",
"cooldown": 1,
"gun_type": "laser_cannon",
"fake_skills": [ [ "gun", 4 ], [ "rifle", 8 ] ],
"ranges": [ [ 0, 30, "DEFAULT" ] ],
"require_sunlight": true
}
],
"special_when_hit": [ "RETURN_FIRE", 100 ],
"death_drops": { },
"death_function": [ "BROKEN" ],
"flags": [ "SEES", "NOHEAD", "ELECTRONIC", "COLDPROOF", "IMMOBILE", "NO_BREATHE" ]
}
]
37 changes: 0 additions & 37 deletions data/json/monsters/turrets.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,43 +75,6 @@
"death_function": [ "FOCUSEDBEAM" ],
"flags": [ "SEES", "NOHEAD", "ELECTRONIC", "COLDPROOF", "IMMOBILE", "NO_BREATHE", "PRIORITIZE_TARGETS" ]
},
{
"id": "mon_laserturret",
"type": "MONSTER",
"name": { "str": "laser turret" },
"description": "The TX-5LR Cerberus is an upgrade to its predecessors. It features a state of the art revolving laser cannon system with three barrels that charge from solar cells embedded in its hull.",
"default_faction": "military",
"species": [ "ROBOT" ],
"diff": 20,
"volume": "30000 ml",
"weight": "40750 g",
"hp": 30,
"speed": 100,
"material": [ "steel" ],
"symbol": "2",
"color": "white",
"aggression": 100,
"morale": 100,
"armor_bash": 14,
"armor_cut": 16,
"armor_bullet": 13,
"vision_day": 50,
"revert_to_itype": "bot_laserturret",
"special_attacks": [
{
"type": "gun",
"cooldown": 1,
"gun_type": "laser_cannon",
"fake_skills": [ [ "gun", 4 ], [ "rifle", 8 ] ],
"ranges": [ [ 0, 30, "DEFAULT" ] ],
"require_sunlight": true
}
],
"special_when_hit": [ "RETURN_FIRE", 100 ],
"death_drops": { },
"death_function": [ "BROKEN" ],
"flags": [ "SEES", "NOHEAD", "ELECTRONIC", "COLDPROOF", "IMMOBILE", "NO_BREATHE" ]
},
{
"id": "mon_turret_bmg",
"type": "MONSTER",
Expand Down
22 changes: 0 additions & 22 deletions data/json/recipes/recipe_deconstruction.json
Original file line number Diff line number Diff line change
Expand Up @@ -948,28 +948,6 @@
[ [ "copbot_chassis", 1 ] ]
]
},
{
"result": "broken_laserturret",
"type": "uncraft",
"skill_used": "electronics",
"difficulty": 4,
"time": "1 h",
"using": [ [ "soldering_standard", 10 ] ],
"qualities": [ { "id": "SCREW", "level": 1 } ],
"components": [
[ [ "ai_module", 1 ] ],
[ [ "gun_module", 1 ] ],
[ [ "targeting_module", 1 ] ],
[ [ "identification_module", 1 ] ],
[ [ "sensor_module", 1 ] ],
[ [ "laser_cannon", 1 ] ],
[ [ "medium_storage_battery", 1 ] ],
[ [ "solar_cell", 4 ] ],
[ [ "power_supply", 1 ] ],
[ [ "robot_controls", 1 ] ],
[ [ "turret_chassis", 1 ] ]
]
},
{
"result": "broken_science_bot",
"type": "uncraft",
Expand Down
33 changes: 0 additions & 33 deletions data/json/recipes/recipe_electronics.json
Original file line number Diff line number Diff line change
Expand Up @@ -1294,39 +1294,6 @@
[ [ "spring", 2 ] ]
]
},
{
"type": "recipe",
"result": "bot_laserturret",
"category": "CC_ELECTRONIC",
"subcategory": "CSC_ELECTRONIC_OTHER",
"skill_used": "electronics",
"skills_required": [ [ "mechanics", 8 ], [ "computer", 5 ] ],
"difficulty": 8,
"time": "30 m",
"reversible": true,
"decomp_learn": 9,
"book_learn": [ [ "recipe_lab_elec", 8 ] ],
"using": [ [ "soldering_standard", 14 ] ],
"qualities": [
{ "id": "SCREW", "level": 1 },
{ "id": "SCREW_FINE", "level": 1 },
{ "id": "WRENCH", "level": 2 },
{ "id": "WRENCH_FINE", "level": 1 }
],
"components": [
[ [ "ai_module", 1 ] ],
[ [ "gun_module", 1 ] ],
[ [ "targeting_module", 1 ] ],
[ [ "identification_module", 1 ] ],
[ [ "sensor_module", 1 ] ],
[ [ "laser_cannon", 1 ] ],
[ [ "medium_storage_battery", 1 ] ],
[ [ "solar_cell", 4 ] ],
[ [ "power_supply", 1 ] ],
[ [ "robot_controls", 1 ] ],
[ [ "turret_chassis", 1 ] ]
]
},
{
"type": "recipe",
"result": "bot_rifleturret",
Expand Down
10 changes: 10 additions & 0 deletions data/json/recipes/recipe_obsolete.json
Original file line number Diff line number Diff line change
Expand Up @@ -2469,5 +2469,15 @@
"type": "recipe",
"result": "control_laptop",
"obsolete": true
},
{
"type": "recipe",
"result": "bot_laserturret",
"obsolete": true
},
{
"type": "recipe",
"result": "broken_laserturret",
"obsolete": true
}
]
4 changes: 0 additions & 4 deletions src/iuse_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -936,10 +936,6 @@ int place_monster_iuse::use( player &p, item &it, bool, const tripoint & ) const
}
newmon.friendly = -1;
}
// TODO: add a flag instead of monster id or something?
if( newmon.type->id == mtype_id( "mon_laserturret" ) && !g->is_in_sunlight( newmon.pos() ) ) {
p.add_msg_if_player( _( "A flashing LED on the laser turret appears to indicate low light." ) );
}
return 1;
}

Expand Down

0 comments on commit affa0bd

Please sign in to comment.