Skip to content

Commit

Permalink
Hub 01 laser turrets. (CleverRaven#41943)
Browse files Browse the repository at this point in the history
* Robofac laser turrets.

* Format json

* Update data/json/monsters/robofac_robots.json

Co-authored-by: Anton Burmistrov <[email protected]>

* Fix weight

Co-authored-by: Anton Burmistrov <[email protected]>
(cherry picked from commit cd672e4)
  • Loading branch information
John-Candlebury authored and tung committed Jul 22, 2020
1 parent f19acfe commit 0060bcf
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 8 deletions.
9 changes: 9 additions & 0 deletions data/json/items/generic.json
Original file line number Diff line number Diff line change
Expand Up @@ -2805,6 +2805,15 @@
"to_hit": -3,
"flags": [ "TRADER_AVOID", "NO_REPAIR" ]
},
{
"type": "GENERIC",
"id": "broken_robofac_laserturret_mk1",
"symbol": ",",
"color": "green",
"name": { "str": "broken laser turret" },
"weight": "40 kg",
"copy-from": "broken_turret"
},
{
"type": "GENERIC",
"id": "fire_brick",
Expand Down
18 changes: 10 additions & 8 deletions data/json/mapgen/robofachq_static.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@
"fill_ter": "t_thconc_floor",
"rows": [
"############################################| |############################################",
"########|||||||||||||||||||||||||#|||||||||||||22|||############################################",
"########|||||||||||||||||||||||||#|||||||||||||55|||############################################",
"########|k ht|A h ^|#|lll|lllll| YY |############################################",
"########|i k k htth ht| Cd6ddC |#|bYb|bYbYb|T YY T|########||||||||############################",
"########|k o k htth ht| CCCCCC |#|b b|b b b|| YY ||######||=A6666A=||##########################",
"########| W ^|^ h ^|#|l l|l l l| YY |######|,=Y Y=,|##########################",
"########|FFFF| htth ?||||[[||||||l l|l l l|T YY T|######|,= htth =,|##########################",
"########|||||| htth ?||^^ ^^|| |||22||||||||||,= htth =,|##########################",
"########|||||| htth ?||^^ ^^|| |||55||||||||||,= htth =,|##########################",
"########|ffff| 2 YY 2Y bbb bbbb| |L | i|,= htth =,|##########################",
"########| |^??t t??^| ,, ||||||||||||| |LY2 Y;|,= htth =,|##########################",
"###||||||hd ||||||||||| ,, 2 r r r| d( Y b|||||2||,= htth =,|##########################",
Expand Down Expand Up @@ -211,7 +211,7 @@
{ "item": "lab_bookshelves", "chance": 55, "repeat": [ 1, 3 ] }
]
},
"monster": { "T": { "monster": "mon_turret_rifle" } },
"monster": { "T": { "monster": "mon_robofac_laserturret_mk1" } },
"npcs": { "G": { "class": "hub_security" }, "Q": { "class": "hub_security_head" } }
}
},
Expand Down Expand Up @@ -450,19 +450,19 @@
"##############################################||5555||tt tt|####################################",
"#####################################||||||||||^ ^| h h|####################################",
"#####################################|rrrrrrrr|^ ^| |####################################",
"#####################################|r r|| ||||2|||####################################",
"#####################################|r r||T T||||2|||####################################",
"#####################################|r YY 2 (t r|####################################",
"#####################################|||||||||| YY (thY r|####################################",
"#####################################|bbbbbbbb| YY (t Y r|####################################",
"#####################################|bbbbbbbb| YY (tGY r|####################################",
"#####################################|Y Y2 ( r|####################################",
"#####################################| llllll ||2222||||2|||####################################",
"#####################################|2||||||2|^ Y^|####################################",
"#####################################|2||||||2|^ G Y^|####################################",
"#####################################| ~| |~ |^ Y^|####################################",
"#####################################| i| |i |^ Y^|####################################",
"#####################################||||||||||| ||||||||####################################",
"#####################################|lll 2 ^|##########################################",
"#####################################|^ ( YY ^|##########################################",
"#####################################| d ( YY ^|##########################################",
"#####################################| dG ( YY ^|##########################################",
"#####################################|^hdh ( ^|##########################################",
"#####################################|||||||| ||||##########################################"
],
Expand All @@ -472,7 +472,9 @@
"l": [ { "item": "NC_ROBOFAC_FIELD_RESEARCHER_worn", "chance": 50 }, { "item": "NC_ROBOFAC_SCIENTIST_worn", "chance": 50 } ],
"i": { "item": "cleaning", "chance": 50 },
"B": [ { "item": "textbooks", "chance": 50 }, { "item": "manuals", "chance": 50 } ]
}
},
"monster": { "T": { "monster": "mon_robofac_laserturret_mk1" } },
"npcs": { "G": { "class": "hub_security" } }
}
},
{
Expand Down
6 changes: 6 additions & 0 deletions data/json/monster_factions.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@
"name": "jabberwock",
"by_mood": [ "jabberwock" ]
},
{
"type": "MONSTER_FACTION",
"name": "robofac",
"neutral": [ "cop_bot", "defense_bot", "utility_bot", "animal" ],
"hate": [ "zombie", "fungus", "cult", "triffid", "nether" ]
},
{
"type": "MONSTER_FACTION",
"name": "bot",
Expand Down
36 changes: 36 additions & 0 deletions data/json/monsters/robofac_robots.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[
{
"id": "mon_robofac_laserturret_mk1",
"type": "MONSTER",
"name": { "str": "prototype laser turret" },
"description": "This appears to be a very experimental automated tower. Plating-less and seemingly half-built, it's little more than an oversized laser emitter and a camera, both welded to a swiveling platform.",
"default_faction": "robofac",
"species": [ "ROBOT" ],
"volume": "30000 ml",
"weight": "40750 g",
"hp": 30,
"speed": 100,
"material": [ "steel" ],
"symbol": "2",
"color": "white",
"aggression": 100,
"morale": 100,
"armor_bash": 2,
"armor_cut": 5,
"armor_bullet": 2,
"vision_day": 50,
"special_attacks": [
{
"type": "gun",
"cooldown": 1,
"gun_type": "v29",
"fake_skills": [ [ "gun", 4 ], [ "pistol", 4 ] ],
"ranges": [ [ 0, 30, "DEFAULT" ] ]
}
],
"special_when_hit": [ "RETURN_FIRE", 100 ],
"death_drops": { },
"death_function": [ "BROKEN" ],
"flags": [ "SEES", "NOHEAD", "ELECTRONIC", "COLDPROOF", "IMMOBILE", "NO_BREATHE" ]
}
]
1 change: 1 addition & 0 deletions data/json/npcs/factions.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"type": "faction",
"id": "robofac",
"name": "Hub 01",
"mon_faction": "robofac",
"likes_u": -200,
"respects_u": 0,
"known_by_u": false,
Expand Down
20 changes: 20 additions & 0 deletions data/json/recipes/recipe_deconstruction.json
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,26 @@
[ [ "steel_chunk", 12 ] ]
]
},
{
"result": "broken_robofac_laserturret_mk1",
"type": "uncraft",
"skill_used": "electronics",
"difficulty": 6,
"time": "3 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 ] ],
[ [ "medium_storage_battery", 1 ] ],
[ [ "power_supply", 1 ] ],
[ [ "robot_controls", 1 ] ],
[ [ "turret_chassis", 1 ] ]
]
},
{
"result": "broken_eyebot",
"type": "uncraft",
Expand Down

0 comments on commit 0060bcf

Please sign in to comment.