Compare commits

...

58 Commits

Author SHA1 Message Date
Anton Simakov 32ea5ef29a fix test issues 2026-11-13 14:41:24 +01:00
Anton Simakov a842fe4385 Lint 2026-11-13 14:07:49 +01:00
Anton Simakov 58b2799974 cleanup explosive materials and requirements 2026-11-13 13:19:20 +01:00
Anton Simakov 27c423be6b Merge pull request #89538 from ehughsbaird/s-30-10
Conversion kits have lower capacity magazines
2026-11-13 08:06:45 +01:00
Nicolai e99f5c21a3 Fuse amounts for recipes adjusted, minor recipe tweaks (#89533)
* Update explosive.json

* Update explosive.json
2026-11-13 00:33:34 -06:00
Maleclypse 9e8e765e77 Merge pull request #89526 from Standing-Storm/cough-chance
Slightly nerf Nauseating Stench
2026-11-12 22:46:01 -06:00
ehughsbaird 6c309bad77 Conversion kits have lower capacity magazines
Gun stores should only sell legal lower capacity magazines.
2026-11-13 04:45:11 +00:00
Anton Simakov f0b1240a6c revamp the berserk code a bit (#89531)
* revamp the berserk code a bit

* place back the neat trick with [&]

* Astyle

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-12 22:43:54 -06:00
Thelis Stambolliu a8b6d06b90 Merge pull request #89516 from FarFarLakeSea/acorns
Blanched acorns correspond properly to raw acorns
2026-11-12 21:52:32 -06:00
Maleclypse f3e90c4734 Merge pull request #89529 from Tektolnes/add_laby_warlords_to_laby
the warlord arrives
2026-11-12 21:51:11 -06:00
Maleclypse e988fdb770 Merge pull request #89525 from Standing-Storm/taranis 2026-11-12 19:56:56 -06:00
Standing-Storm feb2e6336f [Xedra Evolved] Elemental samples to essence (#89522) 2026-11-12 16:27:20 -06:00
Tektolnes db9b8835f4 the warlord arrives 2026-11-12 14:06:34 -05:00
Standing-StormStanding-Storm git config --global user.name Standing-Storm git config --global user.name Standing-Storm 32572764fd Initial commit 2026-11-12 11:39:04 -06:00
Standing-StormStanding-Storm git config --global user.name Standing-Storm git config --global user.name Standing-Storm 25517b9291 Initial commit 2026-11-12 11:34:37 -06:00
phoenix492 a7303e0d83 Merge pull request #89492 from phoenix492/wound_rewrites
Rewrite wound text to be more colorful and immersive
2026-11-11 23:39:34 -06:00
Maleclypse fba0bd04cc Merge pull request #89509 from ShnitzelX2/remove-int-indexed-item-access
Remove all legacy `int`-indexed item accessors for `Character` and `outfit`
2026-11-11 23:35:51 -06:00
Maleclypse 55e507a538 Merge pull request #89513 from Standing-Storm/knockdown-fix
[MoM] Fix the Knockdown power
2026-11-11 23:33:46 -06:00
Nicolai 7a1b90aaa0 one of the fuse recipes now also accepts red phosphorus (#89507) 2026-11-11 21:06:44 +01:00
Standing-Storm 4cebf8021d add flag 2026-11-11 09:17:41 -06:00
Nicolai 7d4900fe0e Minor description updates for dynamite and dynamite bomb (#89506) 2026-11-11 14:19:36 +01:00
Evan Balster aad5e3796f Merge pull request #89139 from EvanBalster/eb-activity-dissect
Add zone "Work: Dissect Corpses"
2026-11-10 23:51:11 -06:00
ShnitzelX2 d91ffc3018 CI 2026-11-10 22:57:43 -05:00
BTSU_Edelweiss a90146c091 Add HESCO MIL 3 earth-filled barriers (#89443)
* Update helipad.json

* Add HESCO MIL 3 barrier and wall to furniture

Added HESCO MIL 3 barrier and wall definitions with properties including description, flags, and deconstruction items.

* Add new construction entries for hesco barriers

* Add HESCO MIL 3 Barrier construction group

* Add HESCO MIL 3 cell item to home improvement resources

Added HESCO MIL 3 cell item with details including description, weight, volume, material, symbol, color, and price.

* Replace fully_loaded_medium_battery_cell with hesco_mil3_cell

* lint, fix some json syntax errors

* fix item name

---------

Co-authored-by: Anton Simakov <67688115+GuardianDll@users.noreply.github.com>
2026-11-10 21:09:37 -06:00
ShnitzelX2 7c421453ff fix debug menu change spells error for mods
opening change spells menu threw debugmsg when using Magiclysm
2026-11-10 21:54:47 -05:00
ShnitzelX2 68981787a0 Character::use_wielded() uses get_wielded_item 2026-11-10 21:54:47 -05:00
ShnitzelX2 b1f8d667ca remove Character+outfit::i_at(int)
along with Character::use(int), Character::takeoff(int), Character::wear(int)
2026-11-10 21:54:47 -05:00
ShnitzelX2 b74d4a56de remove Character+outfit::get_item_position
legacy inventory accessor marked for deprecation
2026-11-10 21:54:46 -05:00
ShnitzelX2 acf4fa9865 remove most uses of Character::get_item_position
including migration for longsalvage_activity_actor, modification of item_location_impl::item_on_person
2026-11-10 21:54:45 -05:00
John Candlebury 700e1e9881 Merge pull request #89438 from John-Candlebury/afs-headsets
Aftershock: Combat Headsets
2026-11-10 20:11:29 -06:00
Maleclypse 79409a87e8 Check canceled_mutations as well as canceled_mutations to see if a mutation will destroy a bionic (#89498) 2026-11-10 20:10:53 -06:00
Anton Simakov 315a018a79 Merge pull request #89469 from CleverRaven/combat-weariness-2
Combat weariness 2
2026-11-10 22:17:45 +01:00
Maya Granade 77036fd927 Merge pull request #89488 from CleverRaven/changelog-weekly-2026-11-09 2026-11-10 19:46:32 +01:00
Nicolai 51c589bf94 Merge pull request #89460 from Nicolai-67/ItemActivationUpdates
Activating certain items now takes up some in-game time
2026-11-09 22:05:53 -06:00
Maleclypse bfcdfb1504 repair_item_activity_actor (#89451) 2026-11-09 22:05:16 -06:00
thaelina 2cc5835d8c Check canceled_mutations as well as canceled_mutations to see if a mutation will destroy a bionic 2026-11-09 20:18:32 -06:00
Maya Granade 5317074a97 Crank down COMBAT_EXERCISE magnitude to bring pugilist test in line with expectations 2026-11-09 16:18:23 -08:00
Maya Granade ff3e0238bc Skip over EXTRA_EXERCISE at weariness level one to avoid changing weariness behavior 2026-11-09 16:18:23 -08:00
Maya Granade 8057017f39 Add a weariness test modelling a boxing match 2026-11-09 16:18:23 -08:00
Standing-Storm a4956d1691 Merge pull request #89481 from Standing-Storm/arvore-values
[Xedra Evolved] Update Arvore regen wounds
2026-11-09 17:41:34 -06:00
Maleclypse e5e57a2674 Merge pull request #89453 from GuardianDll/wound_pain
wound pain is affected by other stuff
2026-11-09 17:40:41 -06:00
Anton Simakov 990bc50d47 Merge pull request #89491 from MBasala/fix/windows_build_namespace_fix
Tests fix on CMake Windows builds in npc_test.cpp
2026-11-09 21:26:04 +01:00
Standing-Storm e8df78ecfe [Xedra Evolved] March Lords can carry unique gear (#88993) 2026-11-09 19:07:38 +01:00
Michael Basala a65401424e Minor change updating a var name in the npc_test.cpp file. Windows defines a macro called far, so the variable name far causes a namespace collision. 2026-11-09 12:31:56 -05:00
Standing-Storm d5038aa5a5 Add vine wounds (#89489)
* Initial commit

* Reaction too
2026-11-09 13:43:11 +01:00
Anton Simakov 09a96990d7 Merge pull request #89467 from thaelina/fixable-wounds-sidebar
Add _bodypart_is_wounded_and_fixable condition
2026-11-09 11:15:34 +01:00
madez 1e8509b46f [innawoods] remove recipes for canvas bags without using canvas (#89472)
Co-authored-by: madez <madez+github@madez.de>
2026-11-09 11:14:32 +01:00
Maya Granade fa80780e5c remove radiation triggered mutation from lore doc (#89485)
Not a meaningful interaction.
2026-11-09 11:13:57 +01:00
Maya Granade 7495fbb51c remove blob healing factor section from lore doc (#89484)
This section fairly heavily overstates the impact of this in practice, and we are actively working toward shrinking the difference between in game and IRL healing rates.
Remaining difference are going to be explainable via,  "this is just too big a pain in the ass to model", no lore adjustment is necessary.
2026-11-09 11:12:21 +01:00
Maleclypse da501b8b8a Merge pull request #89487 from Standing-Storm/wounds-stage-down
Stabs and cuts stage down
2026-11-09 00:47:33 -06:00
Standing-StormStanding-Storm git config --global user.name Standing-Storm git config --global user.name Standing-Storm 138c01eb2b Stabs and cuts stage down 2026-11-08 19:19:25 -06:00
Maleclypse 84cb5d4fb0 Fix (#89474) 2026-11-08 13:30:10 -08:00
RenechCDDA 4b058f7098 Add actual weariness to life-or-death combat
Done by implementing a new exercise level, COMBAT_EXERCISE. This is 100x (not a typo, two orders of magnitude) higher than EXTRA_EXERCISE.
2026-11-07 20:17:05 -08:00
thaelina 620c7c10c3 Add clauses for bodypart_X_status_text and bodypart_status_indicator_template for wounds 2026-11-07 19:29:19 -06:00
thaelina 9d720bebf9 Add documentation 2026-11-07 19:15:42 -06:00
thaelina 13a0580dd8 Add f_bodypart_is_wounded_and_fixable condition for wounds that have fixes, even if the player cannot perform the fixes 2026-11-07 19:12:28 -06:00
ShnitzelX2 9dad7e7027 repair_item_activity_actor 2026-11-06 17:45:13 -05:00
GuardianDll 58b0c8fbcd wound pain is affected by other stuff 2026-11-06 21:26:58 +01:00
137 changed files with 3626 additions and 1497 deletions
+5
View File
@@ -227,6 +227,7 @@ Add "serum ferals" to serum labs
A moving, trans-dimensional event - the Scarlet Storm
Add a second blob singularity: the Reclaimer
Bionic wounds and ways to repair them
Labyrinth expansion: sprawling buildings, raised walkways, and transitions to-and-fro
## Interface:
@@ -465,6 +466,7 @@ Scarlet Storm is less punishing with acute exposure, more punishing with chronic
More efficient sugar and rum from sugar beets
Forest floors are now littered with stuff you would expect to find, in large quantities: Sticks, leaves, twigs, and rocks.
make zombies able to move through guardrails
Wounds stage down when healing
## Bugfixes:
Fix forced traits being applied to NPCs
@@ -676,6 +678,7 @@ Factions that are mad at you won't talk to you.
NPCs keep tasks through naps, leave other factions' stuff alone, light fires only in hearths, stop stale fights
NPCs don't freeze when something comes up on the way to their job
NPCs fetch construction components from containers and spread over construction sites
Fix dragged furniture deleting every second item
## Performance:
can_contain: calculate pocket volume once (huge speed up in special cases)
@@ -701,6 +704,7 @@ Speed up the crafting menu near large piles of items
Smooth filtered lighting draws about as fast as smooth
Speed up the repair and construction menus near large item piles
Slightly reduce RAM usage of item class
Lightweight game metrics report.
## Infrastructure:
@@ -848,6 +852,7 @@ Fix GCC 9 tiles build error in cataimgui::draw_texture
Android apk with sounds
MSVC C used to build third-party libs
Fix `Parameter format not correct - -Command` error
More support for C++20
## I18N and A11Y:
@@ -87,6 +87,36 @@
"pre_terrain": "f_sandbag_half",
"post_terrain": "f_sandbag_wall"
},
{
"type": "construction",
"id": "constr_hesco_mil3",
"group": "build_hesco_mil3",
"category": "CONSTRUCT",
"//": "Step 1: build the single-cell barrier.",
"required_skills": [ [ "fabrication", 1 ] ],
"time": "45 m",
"activity_level": "EXTRA_EXERCISE",
"qualities": [ [ { "id": "DIG", "level": 1 } ] ],
"components": [ [ [ "hesco_mil3_cell", 1 ] ], [ [ "material_soil", 40 ], [ "material_sand", 40000 ] ] ],
"pre_special": "check_empty",
"pre_note": "Unfold and pin the cell, then fill it with about 200 L of sand or soil.",
"post_terrain": "f_hesco_barrier"
},
{
"type": "construction",
"id": "constr_hesco_mil3_wall",
"group": "build_hesco_mil3",
"category": "CONSTRUCT",
"//": "Step 2: stack a second cell on the barrier and fill it.",
"required_skills": [ [ "fabrication", 1 ] ],
"time": "30 m",
"activity_level": "EXTRA_EXERCISE",
"qualities": [ [ { "id": "DIG", "level": 1 } ] ],
"components": [ [ [ "hesco_mil3_cell", 1 ] ], [ [ "material_soil", 40 ], [ "material_sand", 40000 ] ] ],
"pre_terrain": "f_hesco_barrier",
"pre_note": "Stack a second cell on the barrier and fill it with about 200 L of sand or soil.",
"post_terrain": "f_hesco_wall"
},
{
"type": "construction",
"id": "constr_showjump",
+5
View File
@@ -360,6 +360,11 @@
"id": "build_improvised_shelter",
"name": "Build Improvised Shelter"
},
{
"type": "construction_group",
"id": "build_hesco_mil3",
"name": "Build HESCO MIL 3 Barrier"
},
{
"type": "construction_group",
"id": "build_junk_metal_barrier",
+1 -8
View File
@@ -5833,14 +5833,7 @@
"rating": "bad",
"max_duration": 120,
"immune_flags": [ "INHALED_TOXIN_IMMUNE" ],
"base_mods": {
"str_mod": [ -1 ],
"dex_mod": [ -1 ],
"speed_mod": [ -10 ],
"cough_chance": [ 3 ],
"vomit_chance": [ 15 ],
"vomit_tick": [ 10 ]
}
"base_mods": { "str_mod": [ -1 ], "dex_mod": [ -1 ], "cough_chance": [ 8 ], "vomit_chance": [ 15 ], "vomit_tick": [ 10 ] }
},
{
"type": "effect_type",
@@ -226,6 +226,58 @@
]
}
},
{
"type": "furniture",
"id": "f_hesco_barrier",
"name": "HESCO MIL 3 barrier",
"symbol": "#",
"bgcolor": "brown",
"looks_like": "f_sandbag_half",
"//": "One MIL 3 (3939) cell: 1.0 m high, 1.0 m wide, about 1.2 m3 of fill.",
"description": "A single HESCO MIL 3 cell: a wire mesh cage lined with heavy geotextile and filled with sand and gravel. It is waist high, so it can be climbed over, but it stops bullets and fragments and makes a steady rest for a mounted gun.",
"move_cost_mod": 0,
"required_str": -1,
"flags": [ "CLIMB_SIMPLE", "TRANSPARENT", "MOUNTABLE", "BLOCKSDOOR", "SHORT", "THIN_OBSTACLE", "CLIMBABLE", "PERMEABLE" ],
"examine_action": "chainfence",
"deconstruct": { "items": [ { "item": "hesco_mil3_cell", "count": 1 }, { "item": "material_soil", "count": [ 100, 160 ] } ] },
"bash": {
"str_min": 30,
"str_max": 100,
"sound": "clang!",
"sound_fail": "thump.",
"items": [
{ "item": "material_soil", "count": [ 70, 110 ] },
{ "item": "wire", "count": [ 4, 8 ] },
{ "item": "scrap", "count": [ 1, 3 ] }
]
}
},
{
"type": "furniture",
"id": "f_hesco_wall",
"name": "HESCO MIL 3 wall",
"symbol": "#",
"bgcolor": "brown",
"looks_like": "f_sandbag_wall",
"//": "Two MIL 3 cells stacked: 2.0 m high, the maximum for a 1.0 m base.",
"description": "Two HESCO MIL 3 cells stacked and pinned together, a barrier two meters tall. It blocks sight and wind, and the top is too high to climb.",
"move_cost_mod": 0,
"required_str": -1,
"flags": [ "NOITEM", "BLOCKSDOOR", "BLOCK_WIND", "REDUCE_SCENT" ],
"deconstruct": { "items": [ { "item": "hesco_mil3_cell", "count": 2 }, { "item": "material_soil", "count": [ 200, 320 ] } ] },
"bash": {
"str_min": 36,
"str_max": 115,
"sound": "clang!",
"sound_fail": "thump.",
"furn_set": "f_hesco_barrier",
"items": [
{ "item": "material_soil", "count": [ 70, 110 ] },
{ "item": "wire", "count": [ 6, 12 ] },
{ "item": "scrap", "count": [ 2, 5 ] }
]
}
},
{
"type": "furniture",
"id": "f_showjump",
@@ -13,7 +13,7 @@
"subtype": "collection",
"container-item": "box_retool_huge",
"on_overflow": "spill",
"entries": [ { "item": "retool_ar15_223rem_extended" }, { "item": "stanag30", "charges": 0 }, { "group": "nested_retool_extras" } ]
"entries": [ { "item": "retool_ar15_223rem_extended" }, { "item": "stanag10", "charges": 0 }, { "group": "nested_retool_extras" } ]
},
{
"type": "item_group",
@@ -22,7 +22,7 @@
"subtype": "collection",
"container-item": "box_retool_large",
"on_overflow": "spill",
"entries": [ { "item": "retool_ar15_223rem" }, { "item": "stanag30", "charges": 0 }, { "group": "nested_retool_extras" } ]
"entries": [ { "item": "retool_ar15_223rem" }, { "item": "stanag10", "charges": 0 }, { "group": "nested_retool_extras" } ]
},
{
"type": "item_group",
@@ -31,7 +31,7 @@
"subtype": "collection",
"container-item": "box_retool_large",
"on_overflow": "spill",
"entries": [ { "item": "retool_ar15_223rem_medium" }, { "item": "stanag30", "charges": 0 }, { "group": "nested_retool_extras" } ]
"entries": [ { "item": "retool_ar15_223rem_medium" }, { "item": "stanag10", "charges": 0 }, { "group": "nested_retool_extras" } ]
},
{
"type": "item_group",
@@ -40,7 +40,7 @@
"subtype": "collection",
"container-item": "box_retool_sbr",
"on_overflow": "spill",
"entries": [ { "item": "retool_ar15_223rem_short" }, { "item": "stanag30", "charges": 0 }, { "group": "nested_retool_extras" } ]
"entries": [ { "item": "retool_ar15_223rem_short" }, { "item": "stanag10", "charges": 0 }, { "group": "nested_retool_extras" } ]
},
{
"type": "item_group",
@@ -49,7 +49,7 @@
"subtype": "collection",
"container-item": "box_retool_large",
"on_overflow": "spill",
"entries": [ { "item": "retool_ar15_300blk" }, { "item": "stanag30", "charges": 0 }, { "group": "nested_retool_extras" } ]
"entries": [ { "item": "retool_ar15_300blk" }, { "item": "stanag10", "charges": 0 }, { "group": "nested_retool_extras" } ]
},
{
"type": "item_group",
@@ -58,7 +58,7 @@
"subtype": "collection",
"container-item": "box_retool_sbr",
"on_overflow": "spill",
"entries": [ { "item": "retool_ar15_300blk_medium" }, { "item": "stanag30", "charges": 0 }, { "group": "nested_retool_extras" } ]
"entries": [ { "item": "retool_ar15_300blk_medium" }, { "item": "stanag10", "charges": 0 }, { "group": "nested_retool_extras" } ]
},
{
"type": "item_group",
@@ -67,7 +67,7 @@
"subtype": "collection",
"container-item": "box_retool_sbr_micro",
"on_overflow": "spill",
"entries": [ { "item": "retool_ar15_300blk_short" }, { "item": "stanag30", "charges": 0 }, { "group": "nested_retool_extras" } ]
"entries": [ { "item": "retool_ar15_300blk_short" }, { "item": "stanag10", "charges": 0 }, { "group": "nested_retool_extras" } ]
},
{
"type": "item_group",
@@ -165,7 +165,7 @@
"subtype": "collection",
"container-item": "box_retool_large",
"on_overflow": "spill",
"entries": [ { "item": "retool_mdrx_223rem" }, { "item": "stanag30", "charges": 0 }, { "group": "nested_retool_extras" } ]
"entries": [ { "item": "retool_mdrx_223rem" }, { "item": "stanag10", "charges": 0 }, { "group": "nested_retool_extras" } ]
},
{
"type": "item_group",
@@ -173,7 +173,7 @@
"//": "a conversion kit packed along with an appropriate empty magazine and miscellaneous items.",
"subtype": "collection",
"container-item": "box_retool",
"entries": [ { "item": "retool_mdrx_223rem_medium" }, { "item": "stanag30", "charges": 0 }, { "group": "nested_retool_extras" } ]
"entries": [ { "item": "retool_mdrx_223rem_medium" }, { "item": "stanag10", "charges": 0 }, { "group": "nested_retool_extras" } ]
},
{
"type": "item_group",
@@ -181,7 +181,7 @@
"//": "a conversion kit packed along with an appropriate empty magazine and miscellaneous items.",
"subtype": "collection",
"container-item": "box_retool_sbr",
"entries": [ { "item": "retool_mdrx_223rem_short" }, { "item": "stanag30", "charges": 0 }, { "group": "nested_retool_extras" } ]
"entries": [ { "item": "retool_mdrx_223rem_short" }, { "item": "stanag10", "charges": 0 }, { "group": "nested_retool_extras" } ]
},
{
"type": "item_group",
@@ -190,7 +190,7 @@
"subtype": "collection",
"container-item": "box_retool",
"on_overflow": "spill",
"entries": [ { "item": "retool_mdrx_300blk" }, { "item": "stanag30", "charges": 0 }, { "group": "nested_retool_extras" } ]
"entries": [ { "item": "retool_mdrx_300blk" }, { "item": "stanag10", "charges": 0 }, { "group": "nested_retool_extras" } ]
},
{
"type": "item_group",
@@ -7,8 +7,8 @@
"ammo": 100,
"entries": [
{ "group": "ar15_223long", "charges": [ 0, 30 ] },
{ "item": "stanag30" },
{ "item": "stanag30", "prob": 50 },
{ "item": "stanag10" },
{ "item": "stanag10", "prob": 50 },
{ "group": "on_hand_223" }
]
},
@@ -20,8 +20,8 @@
"ammo": 100,
"entries": [
{ "group": "modular_ar15", "charges": [ 0, 30 ] },
{ "item": "stanag30" },
{ "item": "stanag30", "prob": 50 },
{ "item": "stanag10" },
{ "item": "stanag10", "prob": 50 },
{ "group": "on_hand_223" }
]
},
@@ -33,8 +33,8 @@
"ammo": 100,
"entries": [
{ "group": "ar15_223medium", "charges": [ 0, 30 ] },
{ "item": "stanag30" },
{ "item": "stanag30", "prob": 50 },
{ "item": "stanag10" },
{ "item": "stanag10", "prob": 50 },
{ "group": "on_hand_223" }
]
},
@@ -46,8 +46,8 @@
"ammo": 100,
"entries": [
{ "group": "ar15_223short", "charges": [ 0, 30 ] },
{ "item": "stanag30" },
{ "item": "stanag30", "prob": 50 },
{ "item": "stanag10" },
{ "item": "stanag10", "prob": 50 },
{ "group": "on_hand_223" }
]
},
@@ -59,8 +59,8 @@
"ammo": 100,
"entries": [
{ "group": "ar15_300", "charges": [ 0, 30 ] },
{ "item": "stanag30" },
{ "item": "stanag30", "prob": 50 },
{ "item": "stanag10" },
{ "item": "stanag10", "prob": 50 },
{ "group": "on_hand_300BLK" }
]
},
@@ -72,8 +72,8 @@
"ammo": 100,
"entries": [
{ "group": "ar15_300medium", "charges": [ 0, 30 ] },
{ "item": "stanag30" },
{ "item": "stanag30", "prob": 50 },
{ "item": "stanag10" },
{ "item": "stanag10", "prob": 50 },
{ "group": "on_hand_300BLK" }
]
},
@@ -202,8 +202,8 @@
],
"prob": 100
},
{ "item": "stanag30" },
{ "item": "stanag30", "prob": 50 },
{ "item": "stanag10" },
{ "item": "stanag10", "prob": 50 },
{ "group": "on_hand_223" }
]
},
@@ -219,8 +219,8 @@
"distribution": [ { "group": "mdrx_223", "charges": [ 0, 30 ], "prob": 4 }, { "group": "mdrx", "charges": [ 0, 30 ], "prob": 5 } ],
"prob": 100
},
{ "item": "stanag30" },
{ "item": "stanag30", "prob": 50 },
{ "item": "stanag10" },
{ "item": "stanag10", "prob": 50 },
{ "group": "on_hand_223" }
]
},
@@ -233,8 +233,8 @@
"ammo": 100,
"entries": [
{ "group": "mdrx_300", "charges": [ 0, 30 ] },
{ "item": "stanag30" },
{ "item": "stanag30", "prob": 50 },
{ "item": "stanag10" },
{ "item": "stanag10", "prob": 50 },
{ "group": "on_hand_300BLK" }
]
},
+6 -5
View File
@@ -767,8 +767,8 @@
"ammo_type": "gunpowder",
"id": "gunpowder",
"category": "chems",
"price": "5 USD",
"price_postapoc": "20 USD",
"price": "14 cent",
"price_postapoc": "4 USD",
"name": { "str_sp": "mixed smokeless gunpowder" },
"display_type": "BY_WEIGHT",
"symbol": "=",
@@ -777,11 +777,12 @@
"sealed": false,
"material": [ "powder" ],
"flags": [ "TINDER" ],
"volume": "250 ml",
"volume": "55 ml",
"weight": "100 mg",
"count": 4540,
"//": "tnt equivalent 1.08 g/tnt",
"count": 1000,
"explode_in_fire": true,
"explosion": { "power": 42 }
"explosion": { "power": 10 }
},
{
"type": "ITEM",
@@ -53,6 +53,7 @@
"need_wielding": true,
"target": "grenade_act",
"msg": "You snap the retaining fuse on the grenade.",
"moves": 100,
"target_timer": "5 seconds",
"menu_text": "Activate",
"type": "transform"
@@ -85,6 +86,7 @@
"need_wielding": true,
"target": "small_homemade_grenade_act",
"msg": "You light the retaining fuse on the improvised grenade. Throw it before it blows in your face!",
"moves": 200,
"target_timer": "5 seconds",
"need_fire": 1,
"menu_text": "Light fuse",
@@ -112,6 +114,7 @@
"need_wielding": true,
"target": "homemade_grenade_act",
"msg": "You light the retaining fuse on the improvised grenade. Throw it before it blows in your face!",
"moves": 200,
"target_timer": "5 seconds",
"need_fire": 1,
"menu_text": "Light fuse",
@@ -139,6 +142,7 @@
"need_wielding": true,
"target": "military_explosive_small_grenade_act",
"msg": "You light the retaining fuse on the improvised grenade. Throw it before it blows in your face!",
"moves": 200,
"target_timer": "5 seconds",
"need_fire": 1,
"menu_text": "Light fuse",
@@ -166,6 +170,7 @@
"need_wielding": true,
"target": "military_explosive_grenade_act",
"msg": "You light the retaining fuse on the improvised grenade. Throw it before it blows in your face!",
"moves": 200,
"target_timer": "5 seconds",
"need_fire": 1,
"menu_text": "Light fuse",
+18 -22
View File
@@ -981,21 +981,6 @@
{
"type": "ITEM",
"id": "chem_ammonium_nitrate",
"category": "chems",
"price": "1 cent",
"price_postapoc": "1 cent",
"name": { "str_sp": "ammonium nitrate powder" },
"symbol": "=",
"color": "white",
"description": "A handful of ammonium nitrate powder. This white, crystalline powder is commonly used as a component of fertilizers and explosives. Could also be dissolved in water to sharply lower its temperature, but is there any use for this quality in this new world?",
"material": [ "powder_nonflam" ],
"volume": "1 ml",
"weight": "1 g",
"container": "bag_canvas"
},
{
"type": "ITEM",
"id": "chem_ammonium_nitrate_pellets",
"looks_like": "fertilizer_commercial",
"category": "chems",
"price": "1 cent",
@@ -1004,9 +989,19 @@
"symbol": "=",
"color": "white",
"description": "A handful of ammonium nitrate pellets. These pellets are commonly used as a component of fertilizers and explosives. Could also be dissolved in water to sharply lower its temperature, but is there any use for this quality in this new world?",
"material": [ "powder_nonflam" ],
"variant_type": "generic",
"variants": [
{
"id": "powder",
"name": { "str": "ammonium nitrate powder" },
"description": "A handful of ammonium nitrate powder. This white, crystalline powder is commonly used as a component of fertilizers and explosives. Could also be dissolved in water to sharply lower its temperature, but is there any use for this quality in this new world?.",
"weight": 0
}
],
"material": [ "dense_powder_nonflam" ],
"volume": "1 ml",
"weight": "1 g",
"weight": "1725 mg",
"//": "tnt equivalent 0.38 g/tnt",
"container": "bag_canvas"
},
{
@@ -1119,6 +1114,7 @@
"material": [ "powder" ],
"volume": "1 ml",
"weight": "1 g",
"//": "tnt equivalent 0.74 g/tnt",
"container": "bag_canvas"
},
{
@@ -1133,7 +1129,7 @@
"color": "dark_gray",
"description": "A handful of black gunpowder, a mix of saltpeter, charcoal, and sulfur. Pretty useless for making modern cartridges, as the soot produced when it burns will quickly clog any firearm, but it could be used to make some vicious bombs.",
"material": [ "powder" ],
"volume": "89 ml",
"volume": "83 ml",
"weight": "151 mg",
"ammo_type": "chem_black_powder",
"container": "bag_plastic_small",
@@ -1150,7 +1146,7 @@
"color": "white",
"description": "A handful of Hexogen powder or RDX, commonly known as cyclonite: a military-grade, shelf-stable high explosive white, crystalline powder. Can be cast into shaped charges, or mixed with scrap to pepper the blast area with high-velocity shrapnel.",
"material": [ "dense_powder" ],
"//": "Density of RDX/Hexogen is 1.858 g/cm3",
"//": [ "Density of RDX/Hexogen is 1.858 g/cm3", "tnt equivalent 1.38 g/tnt" ],
"volume": "1 ml",
"weight": "1858 mg"
},
@@ -1165,7 +1161,7 @@
"color": "brown",
"description": "Composition B is an explosive consisting of castable mixtures of Hexogen/RDX and TNT. It is used as the main explosive filling in artillery projectiles, rockets, land mines, hand grenades, and various other munitions.",
"material": [ "dense_powder" ],
"//": "Density of composition B is 1.65 g/cm3",
"//": [ "Density of composition B is 1.65 g/cm3", "tnt equivalent 1.32 g/tnt" ],
"volume": "1 ml",
"weight": "1650 mg"
},
@@ -1180,7 +1176,7 @@
"color": "white",
"description": "Hexamine peroxide: this fine, yellowish powder is a powerful primary explosive, used to initiate detonation of more stable explosives, such as RDX. Relatively stable, but best not store it for too long. Widely used pre-Cataclysm in amateur-made blasting caps.",
"material": [ "dense_powder" ],
"//": "Density of RDX is 1.57 g/cm3",
"//": [ "Density of RDX is 1.57 g/cm3", "tnt equivalent 0.8 g/tnt" ],
"volume": "1 ml",
"weight": "1570 mg",
"container": "bag_plastic_small"
@@ -1196,7 +1192,7 @@
"color": "white",
"description": "Acetone peroxide, also called APEX or Mother of Satan: this fine, white crystalline powder is a powerful primary explosive, used to initiate detonation of more stable explosives, such as RDX. Relatively stable, with a fruit-like smell when pure.",
"material": [ "powder" ],
"//": "Detonation velocity about 2500–3000 m/s near 0.5 g/cm3",
"//": [ "Detonation velocity about 2500–3000 m/s near 0.5 g/cm3", "tnt equivalent 0.8 g/tnt" ],
"volume": "1 ml",
"weight": "500 mg",
"container": "bag_plastic_small"
+1 -23
View File
@@ -706,7 +706,7 @@
"name": { "str": "Handful of blanched acorns", "str_pl": "of blanched acorns" },
"display_type": "BY_WEIGHT",
"copy-from": "acorns",
"spoils_in": "5 days",
"spoils_in": "11 days",
"description": "A handful of mushy blanched acorns. No longer bitter, but not pleasant to eat in this state.",
"price": "90 cent",
"price_postapoc": "2 USD",
@@ -716,28 +716,6 @@
"into": "paste_nut",
"recipe": "paste_nut_mill_10_1"
},
{
"type": "ITEM",
"subtypes": [ "COMESTIBLE" ],
"id": "acorns_blanching_active",
"name": { "str": "Blanching acorns", "str_pl": "of blanching acorns" },
"display_type": "BY_WEIGHT",
"copy-from": "acorns",
"description": "A mix of water and hulled acorns, slowly leaching the tannins. It'll take about a week before they're palatable.",
"comestible_type": "DRINK",
"symbol": "~",
"quench": 25,
"price_postapoc": "50 cent",
"delete": { "flags": [ "EDIBLE_FROZEN" ] },
"extend": { "flags": [ "SPAWN_ACTIVE" ] },
"weight": "512 g",
"volume": "500 ml",
"charges": 1,
"phase": "liquid",
"looks_like": "coffee",
"countdown_interval": "6 days",
"revert_to": "acorns_blanched"
},
{
"type": "ITEM",
"subtypes": [ "COMESTIBLE" ],
+2 -2
View File
@@ -107,7 +107,7 @@
"material": [ "powder" ],
"volume": "1 ml",
"weight": "442 mg",
"//": "density: 4.42 g/cm3"
"//": [ "density: 4.42 g/cm3", "tnt equivalent 0.40 g/tnt" ]
},
{
"type": "ITEM",
@@ -162,7 +162,7 @@
"material": [ "powder" ],
"volume": "1 ml",
"weight": "471 mg",
"//": "density: 4.71 g/cm3"
"//": [ "density: 4.71 g/cm3", "tnt equivalent 0.33 g/tnt" ]
},
{
"type": "ITEM",
@@ -231,5 +231,19 @@
"melee_damage": { "bash": 4 },
"weight": "327 g",
"volume": "1750 ml"
},
{
"type": "ITEM",
"id": "hesco_mil3_cell",
"category": "spare_parts",
"name": { "str": "HESCO MIL 3 cell" },
"description": "A flat-packed length of wire mesh with a heavy geotextile liner. Unfolded, pinned in place and filled with sand or soil, it makes a solid barrier.",
"weight": "7 kg",
"volume": "20 L",
"material": [ "steel", "plastic" ],
"symbol": "]",
"color": "brown",
"price": "350 USD",
"price_postapoc": "5 USD"
}
]
+45 -18
View File
@@ -14,7 +14,7 @@
"material": [ "rdx" ],
"symbol": ";",
"color": "light_gray",
"use_action": { "target": "c4armed", "set_timer": true, "menu_text": "Activate", "type": "transform" },
"use_action": { "target": "c4armed", "set_timer": true, "moves": 100, "menu_text": "Activate", "type": "transform" },
"flags": [ "RADIO_MODABLE", "RADIO_INVOKE_PROC", "BOMB", "ALLOWS_REMOTE_USE" ]
},
{
@@ -34,7 +34,7 @@
"subtypes": [ "TOOL" ],
"category": "weapons",
"name": { "str": "dynamite" },
"description": "Several sticks of explosives, bundled together with a fuse attached. Use this item to light the fuse. You will, of course, need a lighter or matches in your inventory to do this. Shortly after lighting the fuse, this item will explode, so get away!",
"description": "Several sticks of explosives, bundled together with a fuse attached. Use this item to light the fuse. You will, of course, need a lighter or matches in your inventory to do this. 20 seconds after lighting the fuse, this item will explode, so get away!",
"weight": "1133 g",
"volume": "750 ml",
"price": "60 USD",
@@ -49,6 +49,7 @@
"need_wielding": true,
"target": "dynamite_act",
"msg": "You light the dynamite.",
"moves": 200,
"need_fire": 1,
"menu_text": "Light fuse",
"type": "transform"
@@ -73,7 +74,7 @@
"subtypes": [ "TOOL" ],
"category": "weapons",
"name": { "str": "dynamite bomb" },
"description": "Several sticks of explosives stuffed inside a metal container and surrounded with shrapnel. The fuse is sticking out through a small hole. Use this item to light the fuse. You will, of course, need a lighter or matches in your inventory to do this. Shortly after lighting the fuse, this item will explode, so get away!",
"description": "Several sticks of explosives stuffed inside a metal container and surrounded with shrapnel. The fuse is sticking out through a small hole. Use this item to light the fuse. You will, of course, need a lighter or matches in your inventory to do this. 20 seconds after lighting the fuse, this item will explode, so get away!",
"weight": "2531 g",
"volume": "2430 ml",
"price": "60 USD",
@@ -88,6 +89,7 @@
"need_wielding": true,
"target": "dynamite_bomb_act",
"msg": "You light the dynamite.",
"moves": 200,
"need_fire": 1,
"menu_text": "Light fuse",
"type": "transform"
@@ -123,7 +125,13 @@
"explode_in_fire": true,
"explosion": { "power": 600, "shrapnel": { "casing_mass": 3214, "fragment_mass": 0.5 } },
"color": "light_gray",
"use_action": { "target": "EMPbomb_act", "msg": "You activate the EMP bomb.", "menu_text": "Activate", "type": "transform" },
"use_action": {
"target": "EMPbomb_act",
"msg": "You activate the EMP bomb.",
"moves": 100,
"menu_text": "Activate",
"type": "transform"
},
"flags": [ "RADIO_MODABLE", "RADIO_INVOKE_PROC", "BOMB", "GRENADE", "WATER_BREAK", "ALLOWS_REMOTE_USE" ],
"melee_damage": { "bash": 12 }
},
@@ -161,6 +169,7 @@
"type": "transform",
"target": "firecracker_act",
"msg": "You light the firecracker.",
"moves": 200,
"need_fire": 1,
"need_wielding": true,
"menu_text": "Light up"
@@ -196,6 +205,7 @@
"target": "firecracker_pack_act",
"target_timer": "27 seconds",
"msg": "You light the pack of firecrackers.",
"moves": 200,
"need_fire": 1,
"need_wielding": true,
"menu_text": "Light up"
@@ -232,6 +242,7 @@
"need_wielding": true,
"target": "flashbang_act",
"msg": "You pull the pin on the %s.",
"moves": 100,
"menu_text": "Pull pin",
"type": "transform"
},
@@ -270,6 +281,7 @@
"need_wielding": true,
"target": "grenade_act",
"msg": "You pull the pin on the %s.",
"moves": 100,
"menu_text": "Pull pin",
"type": "transform"
},
@@ -308,6 +320,7 @@
"need_wielding": true,
"target": "grenade_emp_act",
"msg": "You pull the pin on the %s.",
"moves": 100,
"menu_text": "Pull pin",
"type": "transform"
},
@@ -351,6 +364,7 @@
"need_wielding": true,
"target": "grenade_inc_act",
"msg": "You pull the pin on the %s.",
"moves": 100,
"menu_text": "Pull pin",
"type": "transform"
},
@@ -392,6 +406,7 @@
"use_action": {
"target": "LAW",
"msg": "You pull the activating lever, readying the LAW to fire.",
"moves": 200,
"target_charges": 1,
"target_ammo": "66mm_HEAT",
"menu_text": "Unpack",
@@ -565,6 +580,7 @@
"need_wielding": true,
"target": "scrambler_act",
"msg": "You pull the pin on the %s.",
"moves": 100,
"menu_text": "Pull pin",
"type": "transform"
},
@@ -602,6 +618,7 @@
"need_wielding": true,
"target": "military_explosive_small_grenade_act",
"msg": "You light the fuse on the improvised grenade. Throw it before it blows up in your face!",
"moves": 200,
"need_fire": 1,
"menu_text": "Light fuse",
"type": "transform"
@@ -640,6 +657,7 @@
"need_wielding": true,
"target": "military_explosive_grenade_act",
"msg": "You light the fuse on the improvised grenade. Throw it before it blows up in your face!",
"moves": 200,
"need_fire": 1,
"menu_text": "Light fuse",
"type": "transform"
@@ -682,6 +700,7 @@
"need_wielding": true,
"target": "military_explosive_pipebomb_act",
"msg": "You pull the pin on the %s.",
"moves": 100,
"menu_text": "Pull pin",
"type": "transform"
},
@@ -720,6 +739,7 @@
"need_wielding": true,
"target": "military_explosive_bomb_act",
"msg": "You pull the pin on the %s.",
"moves": 100,
"menu_text": "Pull pin",
"type": "transform"
},
@@ -748,11 +768,12 @@
"copy-from": "half_barrel_bomb",
"name": { "str": "military explosive 50 L barrel bomb" },
"description": "A metal keg filled with military explosives. Once it has been activated, it will explode after 100 seconds, raining fire and steel on everything in sight.",
"weight": "135 kg",
"weight": "95 kg",
"explosion": { "power": 100000, "shrapnel": { "casing_mass": 12600, "fragment_mass": 600 } },
"use_action": {
"target": "military_explosive_half_barrel_bomb_act",
"msg": "You activate the fuse on the barrel bomb. Clear the area!",
"moves": 100,
"menu_text": "Activate fuse",
"type": "transform"
}
@@ -781,11 +802,12 @@
"copy-from": "full_barrel_bomb",
"name": { "str": "military explosive 100 L barrel bomb" },
"description": "A 100 L metal barrel filled with military explosives. Once it has been activated it will explode after 100 seconds, raining fire and steel on everything in sight.",
"weight": "252 kg",
"weight": "172 kg",
"explosion": { "power": 200000, "shrapnel": { "casing_mass": 12000, "fragment_mass": 600 } },
"use_action": {
"target": "military_explosive_full_barrel_bomb_act",
"msg": "You activate the fuse on the barrel bomb. Clear the area!",
"moves": 100,
"menu_text": "Activate fuse",
"type": "transform"
}
@@ -827,6 +849,7 @@
"need_wielding": true,
"target": "small_homemade_grenade_act",
"msg": "You light the fuse on the improvised grenade. Throw it before it blows up in your face!",
"moves": 200,
"need_fire": 1,
"menu_text": "Light fuse",
"type": "transform"
@@ -863,6 +886,7 @@
"need_wielding": true,
"target": "homemade_grenade_act",
"msg": "You light the fuse on the improvised grenade. Throw it before it blows up in your face!",
"moves": 200,
"need_fire": 1,
"menu_text": "Light fuse",
"type": "transform"
@@ -903,6 +927,7 @@
"need_wielding": true,
"target": "pipebomb_act",
"msg": "You light the fuse on the pipe bomb.",
"moves": 200,
"need_fire": 1,
"menu_text": "Light fuse",
"type": "transform"
@@ -940,6 +965,7 @@
"need_wielding": true,
"target": "homemade_bomb_act",
"msg": "You light the fuse on the bomb. Get rid of it quickly!",
"moves": 200,
"need_fire": 1,
"menu_text": "Light fuse",
"type": "transform"
@@ -981,6 +1007,7 @@
"use_action": {
"target": "homemade_demolition_charge_act",
"msg": "You light the fuse on the bomb. Get rid of it quickly!",
"moves": 200,
"need_fire": 1,
"menu_text": "Light fuse",
"type": "transform"
@@ -1018,8 +1045,10 @@
"explosion": { "power": 34400, "shrapnel": { "casing_mass": 12600, "fragment_mass": 600 } },
"use_action": {
"target": "half_barrel_bomb_act",
"msg": "You activate the fuse on the barrel bomb. Clear the area!",
"menu_text": "Activate fuse",
"msg": "You light the fuse on the barrel bomb. Clear the area!",
"moves": 200,
"need_fire": 1,
"menu_text": "Light fuse",
"type": "transform"
},
"flags": [ "RADIO_MODABLE", "RADIO_INVOKE_PROC", "BOMB", "ALLOWS_REMOTE_USE" ],
@@ -1032,11 +1061,7 @@
"copy-from": "half_barrel_bomb",
"description": "A metal keg filled with stable explosives. The fuse has been lit and once it ignites the primary explosive, the bomb will detonate and rain fire and steel on everything in sight.",
"color": "light_red",
"use_action": {
"type": "message",
"message": "You've already activated the %s. Get rid of it and clear out!",
"name": "Activate fuse"
},
"use_action": { "type": "message", "message": "You've already activated the %s. Get rid of it and clear out!", "name": "Light fuse" },
"countdown_interval": "100 seconds",
"countdown_action": { "type": "explosion", "explosion": { "power": 34400, "shrapnel": { "casing_mass": 12600, "fragment_mass": 600 } } },
"flags": [ "DANGEROUS", "SPAWN_ACTIVE" ]
@@ -1047,7 +1072,7 @@
"subtypes": [ "TOOL" ],
"category": "weapons",
"name": { "str": "100 L barrel bomb" },
"description": "A 100 L metal barrel filled with military explosives. Once it has been activated it will explode after 100 seconds, raining fire and steel on everything in sight.",
"description": "A 100 L metal barrel filled with stable explosives. Once it has been lit it will explode after 100 seconds, raining fire and steel on everything in sight.",
"weight": "110610 g",
"volume": "105 L",
"price": "900 USD",
@@ -1060,8 +1085,10 @@
"explosion": { "power": 69200, "shrapnel": { "casing_mass": 12000, "fragment_mass": 600 } },
"use_action": {
"target": "full_barrel_bomb_act",
"msg": "You activate the fuse on the barrel bomb. Clear the area!",
"menu_text": "Activate fuse",
"msg": "You light the fuse on the barrel bomb. Clear the area!",
"moves": 200,
"need_fire": 1,
"menu_text": "Light fuse",
"type": "transform"
},
"flags": [ "RADIO_MODABLE", "RADIO_INVOKE_PROC", "BOMB", "ALLOWS_REMOTE_USE" ],
@@ -1077,8 +1104,8 @@
"color": "light_red",
"use_action": {
"type": "message",
"message": "You've already activated the %s. Get rid of it and clear out!",
"name": "Activate fuse"
"message": "You've already lit the fuse. Get rid of the bomb and clear out!",
"name": "Light fuse"
},
"countdown_interval": "100 seconds",
"countdown_action": { "type": "explosion", "explosion": { "power": 69200, "shrapnel": { "casing_mass": 12000, "fragment_mass": 600 } } },
+8
View File
@@ -52,6 +52,7 @@
"need_wielding": true,
"menu_text": "Pull pin",
"msg": "You pull the pin on the %s.",
"moves": 100,
"type": "transform",
"target": "gasbomb_primed"
}
@@ -86,6 +87,7 @@
"need_wielding": true,
"menu_text": "Pull pin",
"msg": "You pull the pin on the %s.",
"moves": 100,
"type": "transform",
"target": "smokebomb_primed"
}
@@ -121,6 +123,7 @@
"need_wielding": true,
"menu_text": "Pull pin",
"msg": "You pull the pin on the %s.",
"moves": 100,
"type": "transform",
"target": "insecticidalbomb_primed"
}
@@ -149,6 +152,7 @@
"need_wielding": true,
"menu_text": "Pull pin",
"msg": "You pull the pin on the %s.",
"moves": 100,
"type": "transform",
"target": "insecticidalbomb_makeshift_primed"
}
@@ -179,6 +183,7 @@
"need_wielding": true,
"menu_text": "Pull pin",
"msg": "You pull the pin on the %s.",
"moves": 100,
"type": "transform",
"target": "fungicidalbomb_primed"
}
@@ -207,6 +212,7 @@
"need_wielding": true,
"menu_text": "Pull pin",
"msg": "You pull the pin on the %s.",
"moves": 100,
"type": "transform",
"target": "fungicidalbomb_makeshift_primed"
}
@@ -235,6 +241,7 @@
"need_wielding": true,
"menu_text": "Pull pin",
"msg": "You pull the pin on the %s.",
"moves": 100,
"type": "transform",
"target": "gasbomb_makeshift_primed"
}
@@ -273,6 +280,7 @@
"need_fire": 1,
"menu_text": "Light up",
"msg": "You light the rocket candy on fire. Throw it!",
"moves": 200,
"type": "transform",
"target": "tool_rocket_candy_primed"
},
@@ -485,7 +485,7 @@
},
{ "item": "elbow_pads", "x": 37, "y": 65, "chance": 75, "repeat": [ 50, 150 ] },
{ "item": "knee_pads", "x": 36, "y": 65, "chance": 75, "repeat": [ 50, 150 ] },
{ "group": "fully_loaded_medium_battery_cell", "x": 46, "y": 60, "chance": 75, "repeat": [ 50, 150 ] },
{ "item": "hesco_mil3_cell", "x": 46, "y": 60, "chance": 75, "repeat": [ 5, 10 ] },
{ "group": "fully_loaded_medium_battery_cell", "x": 45, "y": 60, "chance": 75, "repeat": [ 50, 150 ] },
{ "group": "fully_loaded_medium_battery_cell", "x": 44, "y": 60, "chance": 75, "repeat": [ 50, 150 ] },
{ "item": "hand_crank_charger", "x": 43, "y": 60, "chance": 75, "repeat": [ 25, 50 ] },
+77 -9
View File
@@ -32,7 +32,15 @@
"##+## "
],
"terrain": { "+": "t_nl_metal_wall", ".": "t_nl_metal_wall", "#": "t_nl_metal_wall" },
"place_nested": [ { "chunks": [ "labyrinth2_hall_roof_1" ], "x": 0, "y": 0, "z": 1 } ],
"place_nested": [
{
"chunks": [ "labyrinth2_hall_roof_1" ],
"x": 0,
"y": 0,
"z": 1,
"neighbors": { "above": [ { "om_terrain": "labyrinth2_roof" }, { "om_terrain": "labyrinth2_roof2" }, { "om_terrain": "open_air" } ] }
}
],
"flags": [ "ERASE_ALL_BEFORE_PLACING_TERRAIN" ]
}
},
@@ -69,7 +77,15 @@
" ##+##"
],
"terrain": { "+": "t_nl_metal_wall", ".": "t_nl_metal_wall", "#": "t_nl_metal_wall" },
"place_nested": [ { "chunks": [ "labyrinth2_hall_roof_2" ], "x": 0, "y": 0, "z": 1 } ],
"place_nested": [
{
"chunks": [ "labyrinth2_hall_roof_2" ],
"x": 0,
"y": 0,
"z": 1,
"neighbors": { "above": [ { "om_terrain": "labyrinth2_roof" }, { "om_terrain": "labyrinth2_roof2" }, { "om_terrain": "open_air" } ] }
}
],
"flags": [ "ERASE_ALL_BEFORE_PLACING_TERRAIN" ]
}
},
@@ -106,7 +122,15 @@
" ##+## "
],
"terrain": { "+": "t_nl_metal_wall", ".": "t_nl_metal_wall", "#": "t_nl_metal_wall" },
"place_nested": [ { "chunks": [ "labyrinth2_hall_roof_3" ], "x": 0, "y": 0, "z": 1 } ],
"place_nested": [
{
"chunks": [ "labyrinth2_hall_roof_3" ],
"x": 0,
"y": 0,
"z": 1,
"neighbors": { "above": [ { "om_terrain": "labyrinth2_roof" }, { "om_terrain": "labyrinth2_roof2" }, { "om_terrain": "open_air" } ] }
}
],
"flags": [ "ERASE_ALL_BEFORE_PLACING_TERRAIN" ]
}
},
@@ -143,7 +167,15 @@
" ##+##"
],
"terrain": { "+": "t_nl_metal_wall", ".": "t_nl_metal_wall", "#": "t_nl_metal_wall" },
"place_nested": [ { "chunks": [ "labyrinth2_hall_roof_4" ], "x": 0, "y": 0, "z": 1 } ],
"place_nested": [
{
"chunks": [ "labyrinth2_hall_roof_4" ],
"x": 0,
"y": 0,
"z": 1,
"neighbors": { "above": [ { "om_terrain": "labyrinth2_roof" }, { "om_terrain": "labyrinth2_roof2" }, { "om_terrain": "open_air" } ] }
}
],
"flags": [ "ERASE_ALL_BEFORE_PLACING_TERRAIN" ]
}
},
@@ -167,7 +199,15 @@
"#####+#####"
],
"terrain": { "+": "t_nl_metal_wall", ".": "t_nl_metal_wall", "#": "t_nl_metal_wall" },
"place_nested": [ { "chunks": [ "labyrinth2_large_room_roof_1" ], "x": 0, "y": 0, "z": 1 } ],
"place_nested": [
{
"chunks": [ "labyrinth2_large_room_roof_1" ],
"x": 0,
"y": 0,
"z": 1,
"neighbors": { "above": [ { "om_terrain": "labyrinth2_roof" }, { "om_terrain": "labyrinth2_roof2" }, { "om_terrain": "open_air" } ] }
}
],
"flags": [ "ERASE_ALL_BEFORE_PLACING_TERRAIN" ]
}
},
@@ -191,7 +231,15 @@
" ###+### "
],
"terrain": { "+": "t_nl_metal_wall", ".": "t_nl_metal_wall", "#": "t_nl_metal_wall" },
"place_nested": [ { "chunks": [ "labyrinth2_large_room_roof_2" ], "x": 0, "y": 0, "z": 1 } ],
"place_nested": [
{
"chunks": [ "labyrinth2_large_room_roof_2" ],
"x": 0,
"y": 0,
"z": 1,
"neighbors": { "above": [ { "om_terrain": "labyrinth2_roof" }, { "om_terrain": "labyrinth2_roof2" }, { "om_terrain": "open_air" } ] }
}
],
"flags": [ "ERASE_ALL_BEFORE_PLACING_TERRAIN" ]
}
},
@@ -208,7 +256,15 @@
"####"
],
"terrain": { "+": "t_nl_metal_wall", ".": "t_nl_metal_wall", "#": "t_nl_metal_wall" },
"place_nested": [ { "chunks": [ "labyrinth2_small_room_roof_1" ], "x": 0, "y": 0, "z": 1 } ],
"place_nested": [
{
"chunks": [ "labyrinth2_small_room_roof_1" ],
"x": 0,
"y": 0,
"z": 1,
"neighbors": { "above": [ { "om_terrain": "labyrinth2_roof" }, { "om_terrain": "labyrinth2_roof2" }, { "om_terrain": "open_air" } ] }
}
],
"flags": [ "ERASE_ALL_BEFORE_PLACING_TERRAIN" ]
}
},
@@ -226,8 +282,20 @@
],
"terrain": { "#": "t_nl_column" },
"place_nested": [
{ "chunks": [ "labyrinth2_roof_column_air" ], "x": 0, "y": 0, "z": 1 },
{ "chunks": [ "labyrinth2_roof_column_roof" ], "x": 0, "y": 0, "z": 2 }
{
"chunks": [ "labyrinth2_roof_column_air" ],
"x": 0,
"y": 0,
"z": 1,
"neighbors": { "above": [ { "om_terrain": "labyrinth2_roof" }, { "om_terrain": "labyrinth2_roof2" }, { "om_terrain": "open_air" } ] }
},
{
"chunks": [ "labyrinth2_roof_column_roof" ],
"x": 0,
"y": 0,
"z": 2,
"neighbors": { "above": [ { "om_terrain": "labyrinth2_roof" }, { "om_terrain": "labyrinth2_roof2" }, { "om_terrain": "open_air" } ] }
}
],
"flags": [ "ERASE_ALL_BEFORE_PLACING_TERRAIN" ]
}
@@ -541,86 +541,76 @@
},
{
"type": "mapgen",
"om_terrain": "labyrinth2_utility_tunnel_four_way",
"om_terrain": "labyrinth2_utility_tunnel_four_way_stairs",
"weight": 25,
"object": {
"fallback_predecessor_mapgen": "labyrinth2_roof2_north",
"rows": [
" |o,,o| ",
" |o,,o| ",
" |o,,o| ",
" |o,,o| ",
" |o,,o| ",
" |o,,o| ",
" |o,,o| ",
" |o,,o| ",
" ||o,,o|| ",
" ########|o,,o|######## ",
"##vvvvvvv|o,,o|vvvvvvv##",
"#vvvvvvvv|o,,o|vvvvvvvv#",
"#vvvvvvvv|o,,o|vvvvvvvv#",
"#vvvvvvvv|o,,o|vvvvvvvv#",
"#vvvvvvvv|o,,o|vvvvvvvv#",
"#vvvvvvvv|o,,o|vvvvvvvv#",
"#vvvvvvvv|o,,o|vvvvvvvv#",
"#vvvvvvv||o,,o||vvvvvvv#",
"|||||||||oo,,oo|||||||||",
"oooooooooo,,,,oooooooooo",
",,,,,,,,,,,,>,,,,,,,,,,,",
",,,,,,,,,,,A,,,,,,,,,,,,",
"oooooooooo,,,,oooooooooo",
"|||||||||oo,,oo|||||||||",
" ||o,,o|| ",
" |o,,o| ",
" |o,,o| ",
" |o,,o| ",
" |o,,o| ",
" |o,,o| ",
" |o,,o| ",
" |o,,o| ",
" |o,,o| "
"#vvvvvvv||o,,o||vvvvvvv#",
"#vvvvvvvv|o,,o|vvvvvvvv#",
"#vvvvvvvv|o,,o|vvvvvvvv#",
"#vvvvvvvv|o,,o|vvvvvvvv#",
"#vvvvvvvv|o,,o|vvvvvvvv#",
"#vvvvvvvv|o,,o|vvvvvvvv#",
"#vvvvvvvv|o,,o|vvvvvvvv#",
"##vvvvvvv|o,,o|vvvvvvv##",
" ########|o,,o|######## "
],
"palettes": [ "labyrinth2_utility_tunnel" ],
"flags": [ "ERASE_ALL_BEFORE_PLACING_TERRAIN" ],
"place_nested": [
{ "chunks": [ [ "labyrinth2_utility_tunnel_shaft", 1 ] ], "x": 11, "y": 10, "z": -1 },
{ "chunks": [ [ "labyrinth2_utility_tunnel_shaft", 1 ] ], "x": 11, "y": 10, "z": -2 },
{ "chunks": [ [ "labyrinth2_utility_tunnel_shaft", 1 ] ], "x": 11, "y": 10, "z": -3 },
{ "chunks": [ [ "labyrinth2_utility_tunnel_shaft_base", 1 ] ], "x": 11, "y": 10, "z": -4 }
]
"place_nested": [ { "chunks": [ [ "null", 49 ], [ "mon_wells_machine_encounter", 1 ] ], "x": 6, "y": 11 } ],
"flags": [ "ERASE_ALL_BEFORE_PLACING_TERRAIN" ]
}
},
{
"type": "mapgen",
"om_terrain": "labyrinth2_utility_tunnel_four_way",
"om_terrain": "labyrinth2_utility_tunnel_four_way_stairs",
"weight": 25,
"object": {
"fallback_predecessor_mapgen": "labyrinth2_roof2_north",
"rows": [
" |o,,o| ",
" |o,,o| ",
" |o,,o| ",
" |o,,o| ",
" |o,,o| ",
" |o,,o| ",
" |o,,o| ",
" |o,,o| ",
" |o,,o| ",
" ########|o,,o|######## ",
"##vvvvvvv|o,,o|vvvvvvv##",
"#vvvvvvvv|o,,o|vvvvvvvv#",
"#vvvvvvvv|o,,o|vvvvvvvv#",
"#vvvvvvvv|o,,o|vvvvvvvv#",
"#vvvvvvvv|o,,o|vvvvvvvv#",
"#vvvvvvvv|o,,o|vvvvvvvv#",
"#vvvvvvvv|o,,o|vvvvvvvv#",
"#vvvvvvvv|o,,o|vvvvvvvv#",
"||||||||||o,,o||||||||||",
"ooooooooooo,,ooooooooooo",
",,,,,,,,,,,,>,,,,,,,,,,,",
",,,,,,,,,,,A,,,,,,,,,,,,",
"ooooooooooo,,ooooooooooo",
"||||||||||o,,o||||||||||",
" |o,,o| ",
" |o,,o| ",
" |o,,o| ",
" |o,,o| ",
" |o,,o| ",
" |o,,o| ",
" |o,,o| ",
" |o,,o| ",
" |o,,o| "
"#vvvvvvvv|o,,o|vvvvvvvv#",
"#vvvvvvvv|o,,o|vvvvvvvv#",
"#vvvvvvvv|o,,o|vvvvvvvv#",
"#vvvvvvvv|o,,o|vvvvvvvv#",
"#vvvvvvvv|o,,o|vvvvvvvv#",
"#vvvvvvvv|o,,o|vvvvvvvv#",
"#vvvvvvvv|o,,o|vvvvvvvv#",
"##vvvvvvv|o,,o|vvvvvvv##",
" ########|o,,o|######## "
],
"palettes": [ "labyrinth2_utility_tunnel" ],
"flags": [ "ERASE_ALL_BEFORE_PLACING_TERRAIN" ],
"place_nested": [
{ "chunks": [ [ "labyrinth2_utility_tunnel_shaft", 1 ] ], "x": 11, "y": 10, "z": -1 },
{ "chunks": [ [ "labyrinth2_utility_tunnel_shaft", 1 ] ], "x": 11, "y": 10, "z": -2 },
{ "chunks": [ [ "labyrinth2_utility_tunnel_shaft", 1 ] ], "x": 11, "y": 10, "z": -3 },
{ "chunks": [ [ "labyrinth2_utility_tunnel_shaft_base", 1 ] ], "x": 11, "y": 10, "z": -4 }
]
"place_nested": [ { "chunks": [ [ "null", 49 ], [ "mon_wells_machine_encounter", 1 ] ], "x": 6, "y": 11 } ],
"flags": [ "ERASE_ALL_BEFORE_PLACING_TERRAIN" ]
}
},
{
@@ -697,30 +687,151 @@
},
{
"type": "mapgen",
"nested_mapgen_id": "labyrinth2_utility_tunnel_shaft_base",
"om_terrain": "labyrinth2_utility_tunnel_four_way_stairs_shaft-1",
"object": {
"mapgensize": [ 3, 3 ],
"fallback_predecessor_mapgen": "open_air",
"rows": [
"...",
".<.",
"..."
" ###################### ",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"############H###########",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
" ###################### "
],
"terrain": { ".": "t_nl_metal_floor", "<": "t_ladder_up" },
"palettes": [ "labyrinth2_utility_tunnel" ],
"flags": [ "ERASE_ALL_BEFORE_PLACING_TERRAIN" ]
}
},
{
"type": "mapgen",
"nested_mapgen_id": "labyrinth2_utility_tunnel_shaft",
"om_terrain": "labyrinth2_utility_tunnel_four_way_stairs_shaft-2",
"object": {
"mapgensize": [ 3, 3 ],
"fallback_predecessor_mapgen": "labyrinth2_roof2_north",
"rows": [
"###",
"#H#",
"###"
" ###################### ",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"############H###########",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
" ###################### "
],
"palettes": [ "labyrinth2_utility_tunnel" ],
"flags": [ "ERASE_ALL_BEFORE_PLACING_TERRAIN" ]
}
},
{
"type": "mapgen",
"om_terrain": "labyrinth2_utility_tunnel_four_way_stairs_shaft-3",
"object": {
"fallback_predecessor_mapgen": "labyrinth2_roof_north",
"rows": [
" ###################### ",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"############H###########",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
"########################",
" ###################### "
],
"palettes": [ "labyrinth2_utility_tunnel" ],
"flags": [ "ERASE_ALL_BEFORE_PLACING_TERRAIN" ]
}
},
{
"type": "mapgen",
"om_terrain": "labyrinth2_utility_tunnel_four_way_stairs_base",
"object": {
"fallback_predecessor_mapgen": "labyrinth2_north",
"rows": [
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ___ ",
" _<_ ",
" ___ ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" "
],
"palettes": [ "labyrinth2_utility_tunnel" ],
"flags": [ "ERASE_ALL_BEFORE_PLACING_TERRAIN" ]
}
},
{
"type": "mapgen",
"nested_mapgen_id": "mon_wells_machine_encounter",
"object": {
"mapgensize": [ 1, 1 ],
"rows": [ " " ],
"place_monster": [ { "monster": "mon_wells_machine", "x": 0, "y": 0, "chance": 100 } ]
}
}
]
@@ -544,10 +544,12 @@
"o": "t_nl_suspended_bridge",
"A": "t_nl_suspended_bridge",
"|": "t_nl_bridge_metal_railing",
"v": "t_nl_chasm",
">": "t_ladder_down",
"<": "t_ladder_up",
"H": "t_ladder_up_down",
"#": "t_nl_metal_wall"
"#": "t_nl_metal_wall",
"_": "t_nl_metal_floor"
},
"furniture": { "o": [ [ "f_null", 99 ], [ "f_nl_exodii_lamp", 1 ] ], "A": "f_scrap_antenna" }
}
@@ -88,6 +88,8 @@
{
"u_run_monster_eocs": [ "eoc_wells_machine_walker" ],
"monster_range": 65,
"z_min": -10,
"z_max": 10,
"mtype_ids": [ "mon_wells_machine" ]
}
],
@@ -115,7 +117,9 @@
]
}
],
"monster_range": 20,
"monster_range": 60,
"z_min": -10,
"z_max": 10,
"mtype_ids": [ "mon_wells_machine_leg" ]
}
]
@@ -135,6 +139,8 @@
}
],
"monster_range": 60,
"z_min": -10,
"z_max": 10,
"mtype_ids": [ "mon_wells_machine" ]
}
]
@@ -153,7 +159,9 @@
"effect": [ { "u_cast_spell": { "id": "wells_machine_hurt_self" } } ]
}
],
"monster_range": 20,
"monster_range": 60,
"z_min": -10,
"z_max": 10,
"mtype_ids": [ "mon_wells_machine_leg" ]
}
]
+4 -3
View File
@@ -51,7 +51,7 @@
"color": "dark_gray",
"luminance": 20,
"anger_triggers": [ "FRIEND_ATTACKED", "FRIEND_DIED", "HURT" ],
"path_settings": { "max_dist": 60, "max_length": 120 },
"path_settings": { "max_dist": 60, "max_length": 120, "avoid_traps": true, "avoid_sharp": true },
"hp": 2400,
"flags": [
"SEES",
@@ -65,7 +65,8 @@
"NOT_HALLUCINATION",
"ALWAYS_SEES_YOU",
"DESTROYS",
"FIREPROOF"
"FIREPROOF",
"PATH_AVOID_DANGER"
],
"special_attacks": [
{ "id": "wells_machine_control", "cooldown": 2, "condition": { "math": [ "u_heat_ray_iteration < 1" ] } },
@@ -101,7 +102,7 @@
},
"weakpoint_sets": [ "wps_yrax_quadraphract_leg" ],
"delete": { "flags": [ "PACIFIST" ] },
"extend": { "flags": [ "DESTROYS" ] }
"extend": { "flags": [ "DESTROYS", "FLIES" ] }
},
{
"id": "mon_amigara_horror",
+2 -32
View File
@@ -1728,6 +1728,8 @@
"ALWAYS_BLOCK",
"NO_LIMB_FIRST_AID",
"NON_FLESH_LIMB",
"PLANT_LIMB",
"VINE_LIMB",
"HEAL_OVERRIDE",
"MEND_LIMB",
"LIMB_UPPER",
@@ -1764,17 +1766,6 @@
"connected_to": "torso",
"limb_types": "arm",
"opposite_part": "vine_limb_upper_r",
"flags": [
"IGNORE_TEMP",
"ALWAYS_BLOCK",
"NO_LIMB_FIRST_AID",
"NON_FLESH_LIMB",
"HEAL_OVERRIDE",
"MEND_LIMB",
"LIMB_UPPER",
"NONSTANDARD_BLOCK",
"BONELESS"
],
"side": "left",
"sub_parts": [ "vine_sublimb_ul" ]
},
@@ -1795,17 +1786,6 @@
"limb_types": "arm",
"opposite_part": "vine_limb_lower_l",
"side": "right",
"flags": [
"IGNORE_TEMP",
"ALWAYS_BLOCK",
"NO_LIMB_FIRST_AID",
"NON_FLESH_LIMB",
"HEAL_OVERRIDE",
"MEND_LIMB",
"LIMB_LOWER",
"NONSTANDARD_BLOCK",
"BONELESS"
],
"sub_parts": [ "vine_sublimb_lr" ]
},
{
@@ -1825,16 +1805,6 @@
"limb_types": "arm",
"opposite_part": "vine_limb_lower_r",
"side": "left",
"flags": [
"ALWAYS_BLOCK",
"NO_LIMB_FIRST_AID",
"NON_FLESH_LIMB",
"HEAL_OVERRIDE",
"MEND_LIMB",
"LIMB_LOWER",
"NONSTANDARD_BLOCK",
"BONELESS"
],
"sub_parts": [ "vine_sublimb_ll" ]
},
{
@@ -4,6 +4,11 @@
"id": "methed_alcohol",
"replace": "denat_alcohol"
},
{
"type": "MIGRATION",
"id": "chem_ammonium_nitrate_pellets",
"replace": "chem_ammonium_nitrate"
},
{
"type": "MIGRATION",
"id": "reloaded_338lapua_api",
@@ -1031,5 +1031,10 @@
"type": "MIGRATION",
"id": "sandwich_cucumber",
"replace": "sandwich_veggy"
},
{
"type": "MIGRATION",
"id": "acorns_blanching_active",
"replace": "acorns_blanched"
}
]
@@ -150,7 +150,7 @@
{ "type": [ "labyrinth2_roof2" ], "from": [ 2, 2, 4 ], "to": [ -2, -2, 4 ] }
],
"city_distance": [ 0, -1 ],
"priority": 3,
"priority": -1,
"occurrences": [ 0, 15 ],
"joins": [
{ "id": "base_to_shaft", "opposite": "shaft_to_base" },
@@ -191,6 +191,17 @@
"south": "tunnel_to_tunnel",
"west": "tunnel_to_tunnel"
},
"crossroads_stairs": {
"overmap": "labyrinth2_utility_tunnel_four_way_stairs_north",
"north": "tunnel_to_tunnel",
"east": "tunnel_to_tunnel",
"south": "tunnel_to_tunnel",
"west": "tunnel_to_tunnel"
},
"crossroads_stairs_shaft-1": { "overmap": "labyrinth2_utility_tunnel_four_way_stairs_shaft-1_north" },
"crossroads_stairs_shaft-2": { "overmap": "labyrinth2_utility_tunnel_four_way_stairs_shaft-2_north" },
"crossroads_stairs_shaft-3": { "overmap": "labyrinth2_utility_tunnel_four_way_stairs_shaft-3_north" },
"crossroads_stairs_base": { "overmap": "labyrinth2_utility_tunnel_four_way_stairs_base_north", "locations": [ "labyrinth2" ] },
"tee": {
"overmap": "labyrinth2_utility_tunnel_T_north",
"north": "tunnel_to_tunnel",
@@ -207,12 +218,23 @@
[ { "overmap": "shaft2", "max": 1 } ],
[ { "overmap": "shaft3", "max": 1 } ],
[ { "overmap": "first_crossroads", "max": 1 } ],
[ { "overmap": "crossroads", "max": 1 } ],
[
{ "overmap": "straight_tunnel", "weight": 80 },
{ "overmap": "dead_end", "weight": 4 },
{ "overmap": "corner", "weight": 3 },
{ "overmap": "tee", "weight": 3 }
{ "overmap": "straight_tunnel", "weight": 160 },
{ "overmap": "dead_end", "weight": 8 },
{ "overmap": "corner", "weight": 6 },
{ "overmap": "tee", "weight": 6 },
{ "overmap": "crossroads", "weight": 2 },
{
"name": "labyrinth2_utility_tunnel_crossroads_stairs",
"chunk": [
{ "overmap": "crossroads_stairs", "pos": [ 0, 0, 0 ] },
{ "overmap": "crossroads_stairs_shaft-1", "pos": [ 0, 0, -1 ] },
{ "overmap": "crossroads_stairs_shaft-2", "pos": [ 0, 0, -2 ] },
{ "overmap": "crossroads_stairs_shaft-3", "pos": [ 0, 0, -3 ] },
{ "overmap": "crossroads_stairs_base", "pos": [ 0, 0, -4 ] }
],
"weight": 2
}
]
]
}
@@ -231,5 +231,20 @@
"color": "white",
"see_cost": "low",
"flags": [ "REQUIRES_PREDECESSOR" ]
},
{
"type": "overmap_terrain",
"id": [
"labyrinth2_utility_tunnel_four_way_stairs",
"labyrinth2_utility_tunnel_four_way_stairs_shaft-1",
"labyrinth2_utility_tunnel_four_way_stairs_shaft-2",
"labyrinth2_utility_tunnel_four_way_stairs_shaft-3",
"labyrinth2_utility_tunnel_four_way_stairs_base"
],
"name": "ladder",
"sym": "H",
"color": "white",
"see_cost": "low",
"flags": [ "REQUIRES_PREDECESSOR" ]
}
]
+9
View File
@@ -197,6 +197,15 @@
"multi_activity": true,
"auto_needs": true
},
{
"id": "ACT_MULTIPLE_DISSECT",
"type": "activity_type",
"activity_level": "LIGHT_EXERCISE",
"verb": "dissecting",
"based_on": "neither",
"multi_activity": true,
"auto_needs": true
},
{
"id": "ACT_MULTIPLE_CHOP_TREES",
"type": "activity_type",
-2
View File
@@ -5372,7 +5372,6 @@
"prof_fibers_rope",
"prof_knitting",
"prof_closures",
"prof_long_swords_familiar",
"prof_auto_rifles_familiar",
"prof_gross_anatomy",
"prof_butchering_basic",
@@ -5408,7 +5407,6 @@
{ "item": "wristwatch" },
{ "item": "water_clean", "container-item": "canteen" },
{ "item": "scar_h", "ammo-item": "762_51", "contents-item": "shoulder_strap" },
{ "item": "ch_katana", "container-item": "scabbard" },
{ "group": "starter_rich_wallet_full" }
]
},
+24 -9
View File
@@ -1578,21 +1578,36 @@
},
{
"type": "recipe",
"result": "acorns_blanching_active",
"activity_level": "MODERATE_EXERCISE",
"result": "acorns_blanched",
"category": "CC_FOOD",
"subcategory": "CSC_FOOD_VEGGI",
"skill_used": "cooking",
"skills_required": [ "survival", 2 ],
"difficulty": 3,
"time": "3 m",
"batch_time_factors": [ 15, 10 ],
"autolearn": true,
"charges": 2,
"qualities": [ { "id": "HAMMER", "level": 2 } ],
"proficiencies": [ { "proficiency": "prof_food_prep" }, { "proficiency": "prof_forage_cooking" } ],
"tools": [ [ [ "bag_canvas", -1 ], [ "pillowcase", -1 ], [ "sheet", -1 ] ] ],
"components": [ [ [ "acorns", 2 ] ], [ [ "water", 4 ], [ "water_clean", 4 ] ] ]
"components": [ [ [ "acorns", 1 ] ], [ [ "water", 2 ], [ "water_clean", 2 ] ] ],
"steps": [
{
"name": "Crush and bag",
"time": "5 m",
"activity_level": "LIGHT_EXERCISE",
"batch_time_factors": [ 70, 10 ],
"qualities": [ { "id": "HAMMER", "level": 2 } ],
"proficiencies": [ { "proficiency": "prof_food_prep" }, { "proficiency": "prof_forage_cooking" } ],
"tools": [ [ [ "bag_canvas", -1 ], [ "pillowcase", -1 ], [ "sheet", -1 ] ] ]
},
{
"name": "Leach tannins",
"time": "6 d",
"activity_level": "NO_EXERCISE",
"attention": "unattended",
"batch_time_factors": [ 99, 1 ],
"tools": [ [ [ "metal_tank", -1 ] ] ],
"//": "Assuming max batch size so 60L tank",
"unattend_message": "The acorns are ready to decant."
},
{ "name": "Decant", "time": "1 m", "activity_level": "LIGHT_EXERCISE", "batch_time_factors": [ 90, 10 ] }
]
},
{
"type": "recipe",
+1 -1
View File
@@ -1188,7 +1188,7 @@
"components": [
[ [ "string_36", 1 ] ],
[ [ "water", 1 ], [ "water_clean", 1 ] ],
[ [ "chem_black_powder", 6 ], [ "gunpowder", 60 ] ]
[ [ "chem_black_powder", 6 ], [ "red_phosphorous_small", 6 ], [ "gunpowder", 60 ] ]
]
},
{
+4 -17
View File
@@ -959,7 +959,7 @@
"time": "1 s",
"autolearn": true,
"flags": [ "BLIND_EASY" ],
"components": [ [ [ "chem_ammonium_nitrate_pellets", 27 ] ] ]
"components": [ [ [ "chem_ammonium_nitrate", 27 ] ] ]
},
{
"type": "recipe",
@@ -1344,6 +1344,7 @@
"type": "recipe",
"activity_level": "LIGHT_EXERCISE",
"result": "chem_ammonium_nitrate",
"variant": "powder",
"charges": 500,
"byproducts": [ [ "water" ] ],
"category": "CC_CHEM",
@@ -1361,24 +1362,10 @@
"tools": [ [ [ "surface_heat", 25, "LIST" ] ] ],
"components": [ [ [ "chem_nitric_acid", 5 ] ], [ [ "ammonia_liquid", 5 ] ] ]
},
{
"type": "recipe",
"activity_level": "LIGHT_EXERCISE",
"result": "chem_ammonium_nitrate",
"id_suffix": "from_pellets",
"name": "%s from pellets",
"category": "CC_CHEM",
"subcategory": "CSC_CHEM_CHEMICALS",
"charges": 100,
"time": "5 m",
"autolearn": true,
"qualities": [ { "id": "FINE_GRIND", "level": 1 }, { "id": "SIEVE", "level": 1 } ],
"components": [ [ [ "chem_ammonium_nitrate_pellets", 100 ] ] ]
},
{
"type": "recipe",
"activity_level": "NO_EXERCISE",
"result": "chem_ammonium_nitrate_pellets",
"result": "chem_ammonium_nitrate",
"category": "CC_CHEM",
"subcategory": "CSC_CHEM_CHEMICALS",
"charges": 27,
@@ -1584,7 +1571,7 @@
"book_learn": [ [ "textbook_anarch", 0 ], [ "recipe_labchem", 5 ], [ "textbook_chemistry", 7 ] ],
"qualities": [ { "id": "CONTAIN", "level": 1 } ],
"using": [ [ "fuel_liquid", 6 ] ],
"components": [ [ [ "chem_ammonium_nitrate", 94 ], [ "chem_ammonium_nitrate_pellets", 94 ] ] ]
"components": [ [ [ "chem_ammonium_nitrate", 94 ] ] ]
},
{
"type": "recipe",
+8 -12
View File
@@ -25,7 +25,8 @@
[ [ "chem_sulphuric_acid", 2 ] ],
[ [ "chem_nitric_acid", 1 ] ],
[ [ "ammonia_liquid", 1 ], [ "chem_ethanol", 250 ], [ "denat_alcohol", 250 ] ],
[ [ "chem_glycerol", 2 ] ]
[ [ "chem_glycerol", 2 ] ],
[ [ "fuse", 4 ] ]
]
},
{
@@ -206,12 +207,7 @@
[ "integrated_electrokit", 30 ]
]
],
"components": [
[ [ "metal_tank_little", 1 ] ],
[ [ "nails", 200, "LIST" ], [ "scrap", 16 ] ],
[ [ "fuse", 1 ] ],
[ [ "dynamite", 1 ] ]
]
"components": [ [ [ "metal_tank_little", 1 ] ], [ [ "nails", 200, "LIST" ], [ "scrap", 16 ] ], [ [ "dynamite", 1 ] ] ]
},
{
"result": "smokebomb",
@@ -451,7 +447,7 @@
"autolearn": true,
"proficiencies": [ { "proficiency": "prof_handloading" } ],
"qualities": [ { "id": "SAW_M", "level": 1 } ],
"using": [ [ "volatile_explosive", 30 ] ],
"using": [ [ "volatile_explosive_potent", 30 ] ],
"//": [
"As someone explained to me in the discord server, you could ",
"only realistically use only volatile explosives to make a bomb ",
@@ -482,7 +478,7 @@
"using": [ [ "stable_explosive", 226 ], [ "volatile_explosive", 6 ] ],
"qualities": [ { "id": "SAW_M", "level": 1 } ],
"components": [
[ [ "fuse", 1 ] ],
[ [ "fuse", 4 ] ],
[ [ "glue_strong", 4 ], [ "duct_tape", 10 ], [ "cordage", 1, "LIST" ] ],
[ [ "jug_plastic", 1 ] ],
[ [ "nails", 750, "LIST" ], [ "scrap", 30 ] ]
@@ -503,7 +499,7 @@
"proficiencies": [ { "proficiency": "prof_handloading" } ],
"using": [ [ "stable_explosive", 253 ], [ "volatile_explosive", 6 ] ],
"qualities": [ { "id": "SAW_M", "level": 1 } ],
"components": [ [ [ "fuse", 1 ] ], [ [ "glue_strong", 4 ], [ "duct_tape", 10 ], [ "cordage", 1, "LIST" ] ], [ [ "jug_plastic", 1 ] ] ]
"components": [ [ [ "fuse", 4 ] ], [ [ "glue_strong", 4 ], [ "duct_tape", 10 ], [ "cordage", 1, "LIST" ] ], [ [ "jug_plastic", 1 ] ] ]
},
{
"result": "half_barrel_bomb",
@@ -518,7 +514,7 @@
"book_learn": [ [ "manual_launcher", 7 ], [ "textbook_anarch", 8 ] ],
"proficiencies": [ { "proficiency": "prof_handloading" } ],
"using": [ [ "volatile_explosive", 86 ], [ "stable_explosive", 3354 ] ],
"components": [ [ [ "fuse", 1 ] ], [ [ "glue_strong", 4 ], [ "duct_tape", 10 ], [ "cordage", 1, "LIST" ] ], [ [ "keg_steel", 1 ] ] ]
"components": [ [ [ "fuse", 20 ] ], [ [ "glue_strong", 4 ], [ "duct_tape", 10 ], [ "cordage", 1, "LIST" ] ], [ [ "keg_steel", 1 ] ] ]
},
{
"result": "full_barrel_bomb",
@@ -533,6 +529,6 @@
"book_learn": [ [ "manual_launcher", 7 ], [ "textbook_anarch", 8 ] ],
"proficiencies": [ { "proficiency": "prof_handloading" } ],
"using": [ [ "volatile_explosive", 173 ], [ "stable_explosive", 6747 ] ],
"components": [ [ [ "fuse", 1 ] ], [ [ "glue_strong", 4 ], [ "duct_tape", 10 ], [ "cordage", 1, "LIST" ] ], [ [ "30gal_drum", 1 ] ] ]
"components": [ [ [ "fuse", 20 ] ], [ [ "glue_strong", 4 ], [ "duct_tape", 10 ], [ "cordage", 1, "LIST" ] ], [ [ "30gal_drum", 1 ] ] ]
}
]
+26 -15
View File
@@ -46,36 +46,47 @@
{
"id": "volatile_explosive",
"type": "requirement",
"name": "Volatile explosives",
"//": "This should contain all the explosives you can set off with only a fuse, 10g tnt equivalent.",
"components": [
[
[ "chem_black_powder", 90 ],
[ "gunpowder", 90 ],
[ "red_phosphorous_small", 100 ],
[ "red_phosphorous", 1 ],
[ "gunpowder_pistol", 90 ],
[ "gunpowder_shotgun", 90 ],
[ "gunpowder_magnum_pistol", 80 ],
[ "gunpowder_artillery", 90 ],
[ "gunpowder_rifle", 70 ],
[ "chem_hmtd", 14 ],
[ "chem_apex", 7 ],
[ "chem_mercury_fulminate", 21 ],
[ "chem_lead_azide", 21 ]
[ "chem_black_powder", 201 ],
[ "chem_mercury_fulminate", 57 ],
[ "chem_lead_azide", 65 ],
[ "volatile_explosive_potent", 1, "LIST" ]
]
]
},
{
"id": "volatile_explosive_potent",
"type": "requirement",
"name": "Potent volatile explosives",
"//": "Same as volatile_explosive, but only one that are strong enough to be effective in smaller quantities, as a standalone explosive (threshold is around 0.8 g/tnt), 10g tnt equivalent.",
"components": [
[
[ "gunpowder", 93 ],
[ "gunpowder_pistol", 93 ],
[ "gunpowder_shotgun", 93 ],
[ "gunpowder_magnum_pistol", 93 ],
[ "gunpowder_artillery", 93 ],
[ "gunpowder_rifle", 93 ],
[ "chem_hmtd", 8 ],
[ "chem_apex", 25 ]
]
]
},
{
"id": "stable_explosive",
"type": "requirement",
"name": "Stable explosives",
"//": "This should contain all the explosives you need to set off with an explosive primer, but can be used without casting in a crucible. 10g tnt equivalent.",
"components": [ [ [ "chem_ammonium_nitrate", 24 ], [ "chem_ammonium_nitrate_pellets", 24 ], [ "chem_anfo", 14 ], [ "chem_rdx", 6 ] ] ]
"components": [ [ [ "chem_ammonium_nitrate", 16 ], [ "chem_anfo", 14 ], [ "chem_rdx", 4 ] ] ]
},
{
"id": "military_explosive",
"type": "requirement",
"//": "This should contain all the explosives you need to set off with an explosive primer or a fuze, and also need casting in a crucible. 10g tnt equivalent.",
"components": [ [ [ "chem_compositionb", 8 ] ] ]
"components": [ [ [ "chem_compositionb", 5 ] ] ]
},
{
"id": "small_gas_canister_case",
@@ -9,6 +9,11 @@
"type": "requirement",
"qualities": [ { "id": "BUTCHER", "level": 1 }, { "id": "SAW_W", "level": 1 }, { "id": "SAW_M", "level": 1 } ]
},
{
"id": "multi_dissect",
"type": "requirement",
"qualities": [ { "id": "CUT_FINE", "level": 1 } ]
},
{
"id": "multi_farm_tilling",
"type": "requirement",
+6
View File
@@ -40,6 +40,12 @@
"text": { "str": "Extreme", "ctxt": "activity description" },
"color": "red",
"condition": { "math": [ "u_val('activity_level') == 5" ] }
},
{
"id": "combat",
"text": { "str": "Combat", "ctxt": "activity description" },
"color": "red",
"condition": { "math": [ "u_val('activity_level') == 500" ] }
}
]
},
+78 -6
View File
@@ -41,7 +41,19 @@
"condition": { "and": [ "u_is_bleeding", { "u_bodypart_is_bleeding": { "context_val": "widget" }, "severity": "MAJOR" } ] }
},
{ "id": "infected", "text": "HEAD ", "color": "green", "condition": { "u_has_effect": "infected" } },
{ "id": "bitten", "text": "HEAD ", "color": "blue", "condition": { "u_has_effect": "bite" } }
{ "id": "bitten", "text": "HEAD ", "color": "blue", "condition": { "u_has_effect": "bite" } },
{
"color": "c_blue",
"text": "HEAD ",
"condition": { "u_bodypart_is_wounded_and_fixable": { "context_val": "widget" } },
"id": "wounded_fixable"
},
{
"color": "c_cyan",
"text": "HEAD ",
"condition": { "u_bodypart_is_wounded": { "context_val": "widget" } },
"id": "wounded"
}
],
"flags": [ "W_LABEL_NONE" ]
},
@@ -86,7 +98,19 @@
"condition": { "and": [ "u_is_bleeding", { "u_bodypart_is_bleeding": { "context_val": "widget" }, "severity": "MAJOR" } ] }
},
{ "id": "infected", "text": "TORSO", "color": "green", "condition": { "u_has_effect": "infected" } },
{ "id": "bitten", "text": "TORSO", "color": "blue", "condition": { "u_has_effect": "bite" } }
{ "id": "bitten", "text": "TORSO", "color": "blue", "condition": { "u_has_effect": "bite" } },
{
"color": "c_blue",
"text": "TORSO",
"condition": { "u_bodypart_is_wounded_and_fixable": { "context_val": "widget" } },
"id": "wounded_fixable"
},
{
"color": "c_cyan",
"text": "TORSO",
"condition": { "u_bodypart_is_wounded": { "context_val": "widget" } },
"id": "wounded"
}
],
"flags": [ "W_LABEL_NONE" ]
},
@@ -131,7 +155,19 @@
"condition": { "and": [ "u_is_bleeding", { "u_bodypart_is_bleeding": { "context_val": "widget" }, "severity": "MAJOR" } ] }
},
{ "id": "infected", "text": "L ARM", "color": "green", "condition": { "u_has_effect": "infected" } },
{ "id": "bitten", "text": "L ARM", "color": "blue", "condition": { "u_has_effect": "bite" } }
{ "id": "bitten", "text": "L ARM", "color": "blue", "condition": { "u_has_effect": "bite" } },
{
"color": "c_blue",
"text": "L ARM",
"condition": { "u_bodypart_is_wounded_and_fixable": { "context_val": "widget" } },
"id": "wounded_fixable"
},
{
"color": "c_cyan",
"text": "L ARM",
"condition": { "u_bodypart_is_wounded": { "context_val": "widget" } },
"id": "wounded"
}
],
"flags": [ "W_LABEL_NONE" ]
},
@@ -176,7 +212,19 @@
"condition": { "and": [ "u_is_bleeding", { "u_bodypart_is_bleeding": { "context_val": "widget" }, "severity": "MAJOR" } ] }
},
{ "id": "infected", "text": "R ARM", "color": "green", "condition": { "u_has_effect": "infected" } },
{ "id": "bitten", "text": "R ARM", "color": "blue", "condition": { "u_has_effect": "bite" } }
{ "id": "bitten", "text": "R ARM", "color": "blue", "condition": { "u_has_effect": "bite" } },
{
"color": "c_blue",
"text": "R ARM",
"condition": { "u_bodypart_is_wounded_and_fixable": { "context_val": "widget" } },
"id": "wounded_fixable"
},
{
"color": "c_cyan",
"text": "R ARM",
"condition": { "u_bodypart_is_wounded": { "context_val": "widget" } },
"id": "wounded"
}
],
"flags": [ "W_LABEL_NONE" ]
},
@@ -221,7 +269,19 @@
"condition": { "and": [ "u_is_bleeding", { "u_bodypart_is_bleeding": { "context_val": "widget" }, "severity": "MAJOR" } ] }
},
{ "id": "infected", "text": "L LEG", "color": "green", "condition": { "u_has_effect": "infected" } },
{ "id": "bitten", "text": "L LEG", "color": "blue", "condition": { "u_has_effect": "bite" } }
{ "id": "bitten", "text": "L LEG", "color": "blue", "condition": { "u_has_effect": "bite" } },
{
"color": "c_blue",
"text": "L LEG",
"condition": { "u_bodypart_is_wounded_and_fixable": { "context_val": "widget" } },
"id": "wounded_fixable"
},
{
"color": "c_cyan",
"text": "L LEG",
"condition": { "u_bodypart_is_wounded": { "context_val": "widget" } },
"id": "wounded"
}
],
"flags": [ "W_LABEL_NONE" ]
},
@@ -266,7 +326,19 @@
"condition": { "and": [ "u_is_bleeding", { "u_bodypart_is_bleeding": { "context_val": "widget" }, "severity": "MAJOR" } ] }
},
{ "id": "infected", "text": "R LEG", "color": "green", "condition": { "u_has_effect": "infected" } },
{ "id": "bitten", "text": "R LEG", "color": "blue", "condition": { "u_has_effect": "bite" } }
{ "id": "bitten", "text": "R LEG", "color": "blue", "condition": { "u_has_effect": "bite" } },
{
"color": "c_blue",
"text": "R LEG",
"condition": { "u_bodypart_is_wounded_and_fixable": { "context_val": "widget" } },
"id": "wounded_fixable"
},
{
"color": "c_cyan",
"text": "R LEG",
"condition": { "u_bodypart_is_wounded": { "context_val": "widget" } },
"id": "wounded"
}
],
"flags": [ "W_LABEL_NONE" ]
}
+7
View File
@@ -63,6 +63,13 @@
"color": "red_red",
"condition": { "u_is_bleeding": "CRITICAL" }
},
{
"id": "wounded",
"text": "wounded",
"sym": "W",
"color": "blue",
"condition": { "u_bodypart_is_wounded_and_fixable": { "context_val": "widget" } }
},
{
"id": "wounded",
"text": "wounded",
+7 -1
View File
@@ -1906,7 +1906,13 @@
"id": "extreme",
"text": "Extreme ",
"color": "red",
"condition": { "math": [ "u_val('activity_level') >= 5" ] }
"condition": { "math": [ "u_val('activity_level') == 5" ] }
},
{
"id": "extreme",
"text": "Combat ",
"color": "red",
"condition": { "math": [ "u_val('activity_level') > 5" ] }
}
],
"type": "widget"
+6
View File
@@ -42,6 +42,12 @@
"text": { "str": "Extreme", "ctxt": "activity description" },
"color": "red",
"condition": { "math": [ "u_val('activity_level') == 5" ] }
},
{
"id": "extreme",
"text": { "str": "Combat", "ctxt": "activity description" },
"color": "red",
"condition": { "math": [ "u_val('activity_level') == 500" ] }
}
]
},
+64 -52
View File
@@ -2,8 +2,8 @@
{
"id": "bruise_small",
"type": "wound",
"name": { "str": "light bruise" },
"description": "You have been bruised lightly.",
"name": { "str_sp": "light bruising" },
"description": "A small patch of your skin has been left off color and slightly tender.",
"weight": 50,
"limit": 8,
"damage_types": [ "bash" ],
@@ -24,20 +24,24 @@
],
"blacklist_flag": [ "BRUISE_IMMUNE" ],
"blacklist_body_part_types": [ "sensor" ],
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB" ]
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB", "NON_FLESH_LIMB" ]
},
{
"id": "bruise_medium",
"type": "wound",
"name": { "str": "bruise" },
"description": "You have been bruised.",
"name": { "str_sp": "bruising" },
"description": "Parts of your skin are a light reddish color, and it's rather tender to the touch.",
"weight": 40,
"limit": 8,
"damage_types": [ "bash" ],
"damage_required": [ 10, 14 ],
"pain": [ 5, 8 ],
"wound_progression": [ { "id": "bruise_bad", "chance": 70 } ],
"progress_timer": { "id": "bruise_small", "time": [ "48 hours", "84 hours" ], "message": "Your bruise on your %s is almost healed." },
"progress_timer": {
"id": "bruise_small",
"time": [ "48 hours", "84 hours" ],
"message": "The bruising on your %s is faint now, and will soon disappear."
},
"limb_scores": [
{ "score": "manip", "value": 0.1 },
{ "score": "block", "value": 0.1 },
@@ -51,20 +55,24 @@
],
"blacklist_flag": [ "BRUISE_IMMUNE" ],
"blacklist_body_part_types": [ "sensor" ],
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB" ]
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB", "NON_FLESH_LIMB" ]
},
{
"id": "bruise_bad",
"type": "wound",
"name": { "str": "bad bruise" },
"description": "You have been bruised badly.",
"name": { "str_sp": "heavy bruising" },
"description": "The skin here is a deep purple, and a sharp painful jolt shoots through you whenever you touch the area.",
"weight": 40,
"limit": 8,
"damage_types": [ "bash" ],
"damage_required": [ 15, 25 ],
"pain": [ 10, 15 ],
"wound_progression": [ { "id": "bruise_terrible", "chance": 70 }, { "id": "bleeding_laceration_medium", "chance": 50 } ],
"progress_timer": { "id": "bruise_medium", "time": [ "60 hours", "96 hours" ], "message": "Your bad bruise on your %s is improving." },
"progress_timer": {
"id": "bruise_medium",
"time": [ "60 hours", "96 hours" ],
"message": "The heavy bruising on your %s has lessened in color, and is no longer as painful."
},
"limb_scores": [
{ "score": "manip", "value": 0.2 },
{ "score": "block", "value": 0.2 },
@@ -78,13 +86,13 @@
],
"blacklist_flag": [ "BRUISE_IMMUNE" ],
"blacklist_body_part_types": [ "sensor" ],
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB" ]
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB", "NON_FLESH_LIMB" ]
},
{
"id": "bruise_terrible",
"type": "wound",
"name": { "str": "terrible bruise" },
"description": "You have been bruised terribly.",
"name": { "str_sp": "severe bruising" },
"description": "The skin here is a terrifying patchwork of red, purple, blue, and almost black. Every small movement and touch brings aftershocks of pain to the area you can feel all the way to your bones. Getting hit again here could be very bad.",
"weight": 40,
"limit": 8,
"damage_types": [ "bash" ],
@@ -94,7 +102,7 @@
"progress_timer": {
"id": "bruise_bad",
"time": [ "3 days", "108 hours" ],
"message": "Your terrible bruise on your %s is healing a bit."
"message": "It still hurts quite a bit, but the color on your %s has faded and the pain lessened somewhat."
},
"limb_scores": [
{ "score": "manip", "value": 0.3 },
@@ -109,13 +117,13 @@
],
"blacklist_flag": [ "BRUISE_IMMUNE" ],
"blacklist_body_part_types": [ "sensor" ],
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB" ]
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB", "NON_FLESH_LIMB" ]
},
{
"id": "bleeding_laceration_medium",
"type": "wound",
"name": { "str": "bleeding laceration" },
"description": "You have been lacerated.",
"name": { "str": "bleeding torn skin", "str_pl": "bleeding torn skin sections" },
"description": "A tender part of your skin has been hit hard enough to tear it open, causing blood to drip out.",
"weight": 20,
"limit": 8,
"damage_types": [ "bash" ],
@@ -139,15 +147,15 @@
{ "type": "VITAMIN", "vitamin_id": "redcells", "rate": "1 seconds", "amount": -5 },
{ "type": "VITAMIN", "vitamin_id": "blood", "rate": "1 seconds", "amount": -5 }
],
"periodic_message": { "message": "Your laceration on your %s is bleeding!", "rate": "80 seconds" },
"periodic_message": { "message": "The torn skin on your %s is bleeding!", "rate": "80 seconds" },
"blacklist_body_part_types": [ "sensor" ],
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB" ]
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB", "NON_FLESH_LIMB" ]
},
{
"id": "bleeding_laceration_bad",
"type": "wound",
"name": { "str": "bad bleeding laceration" },
"description": "You have been lacerated badly.",
"name": { "str": "bleeding badly torn skin", "str_pl": "bleeding badly torn skin sections" },
"description": "A tender part of your skin has been hit hard enough to tear it open completely, causing blood to flow out.",
"weight": 20,
"limit": 8,
"damage_types": [ "bash" ],
@@ -170,15 +178,15 @@
{ "type": "VITAMIN", "vitamin_id": "redcells", "rate": "1 seconds", "amount": -11 },
{ "type": "VITAMIN", "vitamin_id": "blood", "rate": "1 seconds", "amount": -11 }
],
"periodic_message": { "message": "Your bad laceration on your %s is bleeding!", "rate": "40 seconds" },
"periodic_message": { "message": "The badly torn skin on your %s is bleeding!", "rate": "40 seconds" },
"blacklist_body_part_types": [ "sensor" ],
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB" ]
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB", "NON_FLESH_LIMB" ]
},
{
"id": "bone_fractured",
"type": "wound",
"name": { "str": "fractured bone" },
"description": "Your bone is fractured but still in alingnment.",
"description": "One of your bones has taken enough punishment to fracture, but remains in alignment.",
"weight": 40,
"limit": 2,
"damage_types": [ "bash" ],
@@ -198,13 +206,13 @@
],
"blacklist_flag": [ "MEND_ALL" ],
"blacklist_body_part_types": [ "torso", "sensor", "head" ],
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB", "BONELESS" ]
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB", "BONELESS", "NON_FLESH_LIMB" ]
},
{
"id": "bone_broken",
"type": "wound",
"name": { "str": "broken bone" },
"description": "Your bone broke.",
"description": "Your bone has completely broken and been knocked out of alignment. If not set properly, the bone could heal incorrectly causing permanent damage.",
"weight": 40,
"limit": 2,
"damage_types": [ "bash" ],
@@ -223,14 +231,14 @@
],
"blacklist_flag": [ "MEND_ALL" ],
"blacklist_body_part_types": [ "torso", "sensor", "head" ],
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB", "BONELESS" ]
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB", "BONELESS", "NON_FLESH_LIMB" ]
},
{
"id": "bone_broken_healing_good",
"copy-from": "bone_broken",
"type": "wound",
"name": { "str": "set bone" },
"description": "You set the broken bone.",
"name": { "str": "professionally set bone" },
"description": "Your broken bone has been set professionally, and all that remains is the long road to recovery.",
"weight": 0,
"limit": 2,
"healing_time": [ "30 days", "45 days" ],
@@ -241,7 +249,7 @@
"copy-from": "bone_broken",
"type": "wound",
"name": { "str": "improperly set bone" },
"description": "You somehow set the broken bone.",
"description": "Your broken bone has been set poorly, and once healed won't quite function the same without surgical intervention.",
"weight": 0,
"limit": 2,
"pain": [ 45, 50 ],
@@ -249,7 +257,7 @@
"progress_timer": {
"id": "bone_broken_healed_partial",
"time": [ "30 days", "45 days" ],
"message": "Your %s broken bone finally healed."
"message": "Your %s broken bone has healed as well as it's going to."
}
},
{
@@ -257,17 +265,21 @@
"copy-from": "bone_broken_healing_partial",
"type": "wound",
"name": { "str": "badly set bone" },
"description": "Your broken bone was set by a lunatic, badly.",
"description": "Your broken bone has been set by a lunatic without proper medical training, and once healed will still have severely inadequate function without surgical intervention.",
"pain": [ 50, 56 ],
"wound_progression": [ { "id": "bone_broken", "chance": 100 } ],
"progress_timer": { "id": "bone_broken_healed_bad", "time": [ "30 days", "45 days" ], "message": "Your %s broken bone finally healed." }
"progress_timer": {
"id": "bone_broken_healed_bad",
"time": [ "30 days", "45 days" ],
"message": "Your %s broken bone finished healing, but the pain and poor function hasn't gone away."
}
},
{
"id": "bone_broken_healed_partial",
"copy-from": "bone_broken_healing_partial",
"type": "wound",
"name": { "str": "improperly set bone" },
"description": "Your bone broken bone healed, somewhat.",
"description": "Your broken bone has healed as well as it can, but the pain remains and your limb doesn't work quite as well as it used to.",
"pain": [ 4, 6 ],
"limb_scores": [
{ "score": "manip", "value": 0.3 },
@@ -284,7 +296,7 @@
"copy-from": "bone_broken_healing_partial",
"type": "wound",
"name": { "str": "badly set bone" },
"description": "Your broken bone healed, badly.",
"description": "Your broken bone has fused together, but it would be a stretch to say it's healed. The pain remains, and the limb has precious little of the function it used to.",
"pain": [ 10, 14 ],
"limb_scores": [
{ "score": "manip", "value": 0.7 },
@@ -301,7 +313,7 @@
"copy-from": "bone_fractured",
"type": "wound",
"name": { "str": "splinted bone" },
"description": "You splinted the fractured bone.",
"description": "Your fractured bone is splinted, and just needs time to heal.",
"weight": 0,
"limit": 2,
"healing_time": [ "15 days", "20 days" ],
@@ -311,8 +323,8 @@
"id": "laceration_medium",
"copy-from": "bleeding_laceration_medium",
"type": "wound",
"name": { "str": "laceration" },
"description": "You have a laceration, you should probably clean it and bandage it.",
"name": { "str": "torn skin" },
"description": "Your skin has been torn open, but the bleeding has stopped. It's still dirty and needs to be cleaned out.",
"weight": 0,
"mod_values": [ ],
"periodic_message": { "message": "", "rate": "999 hours" },
@@ -322,8 +334,8 @@
"id": "laceration_bad",
"copy-from": "bleeding_laceration_bad",
"type": "wound",
"name": { "str": "bad laceration" },
"description": "You have a bad laceration, you should probably clean it and bandage it.",
"name": { "str": "badly torn skin" },
"description": "Your skin has been ripped open, but you've managed to staunch the bleeding. It's still dirty and needs to be cleaned out.",
"weight": 0,
"mod_values": [ ],
"periodic_message": { "message": "", "rate": "999 hours" },
@@ -333,47 +345,47 @@
"id": "clean_laceration_medium",
"copy-from": "laceration_medium",
"type": "wound",
"name": { "str": "clean laceration" },
"description": "You have a laceration you should probably bandage it.",
"name": { "str": "clean torn skin" },
"description": "Your skin has been torn open, but the bleeding has stopped and the wound is clean.",
"healing_time": [ "3 days", "5 days" ]
},
{
"id": "clean_laceration_bad",
"copy-from": "laceration_bad",
"type": "wound",
"name": { "str": "clean bad laceration" },
"description": "You have a bad laceration, you should probably bandage it.",
"name": { "str": "clean badly torn skin" },
"description": "Your skin has been ripped open, but the bleeding has stopped and the wound is clean.",
"progress_timer": {
"id": "clean_laceration_medium",
"time": [ "60 hours", "108 hours" ],
"message": "Your bad laceration on your %s looks less serious now, but you should still probably bandage it."
"message": "The badly torn skin on your %s has started to close up, though a bandage would still help it heal."
}
},
{
"id": "bandaged_laceration_medium",
"copy-from": "laceration_medium",
"type": "wound",
"name": { "str": "bandaged laceration" },
"description": "You have a laceration, you should wait till it heals.",
"name": { "str": "bandaged torn skin" },
"description": "Your torn skin has been cleaned and bandaged. All that's left is to wait for it to heal.",
"healing_time": [ "60 hours", "108 hours" ]
},
{
"id": "bandaged_laceration_bad",
"copy-from": "laceration_bad",
"type": "wound",
"name": { "str": "bandaged bad laceration" },
"description": "You have a bad laceration, you should wait till it heals.",
"name": { "str": "bandaged badly torn skin" },
"description": "Your ripped skin has been cleaned and bandaged. All that's left is to wait for it to heal.",
"progress_timer": {
"id": "bandaged_laceration_old_medium",
"time": [ "48 hours", "84 hours" ],
"message": "Your bad laceration on your %s looks less serious now, but you should probably change the dressing."
"message": "The badly torn skin on your %s has started to close up, but the dressing has grown old and is in need of replacing."
}
},
{
"id": "bandaged_laceration_old_medium",
"copy-from": "clean_laceration_medium",
"type": "wound",
"name": { "str": "bandaged laceration (old dressing)", "str_pl": "bandaged lacerations (old dressing)" },
"description": "You have a laceration you should probably change the bandages on."
"name": { "str": "bandaged torn skin (old dressing)", "str_pl": "bandaged torn skin sections (old dressing)" },
"description": "Your torn skin is starting to close up. It will heal soon, but the dressing has grown old and is in need of replacing."
}
]
+33 -32
View File
@@ -3,119 +3,120 @@
"id": "bleed_laceration_medium_fix",
"copy-from": "bleed_wound_medium",
"type": "wound_fix",
"name": "stop the bleeding",
"description": "Stop the bleeding of your laceration.",
"name": "Staunch the bleeding",
"description": "Use an absorbant material to apply pressure to your torn skin and stop the bleeding.",
"wounds_removed": [ "bleeding_laceration_medium" ],
"wounds_added": [ "laceration_medium" ],
"success_msg": "The laceration isn't bleeding anymore."
"success_msg": "You apply pressure, and the flow of blood from the torn skin stops."
},
{
"id": "bleed_laceration_bad_fix",
"copy-from": "bleed_wound_bad",
"type": "wound_fix",
"name": "stop the bleeding",
"description": "Stop the bleeding of your bad laceration.",
"name": "Staunch the bleeding",
"description": "Use an absorbant material to apply pressure to your badly torn skin and stop the bleeding.",
"wounds_removed": [ "bleeding_laceration_bad" ],
"wounds_added": [ "laceration_bad" ],
"success_msg": "The bad laceration isn't bleeding anymore."
"success_msg": "You apply pressure, and the flow of blood from the badly torn skin stops."
},
{
"id": "clean_laceration_medium_fix",
"copy-from": "clean_wound_medium",
"type": "wound_fix",
"name": "clean the laceration",
"description": "Clean your laceration.",
"name": "Clean your torn skin",
"description": "Use water to wash the torn skin of dirt, debris, and bacteria.",
"wounds_removed": [ "laceration_medium" ],
"wounds_added": [ "clean_laceration_medium" ],
"success_msg": "The laceration is clean now. You should bandage it but it'll heal as is."
"success_msg": "You wipe down the area, paying extra attention to where the skin has broken."
},
{
"id": "clean_laceration_bad_fix",
"copy-from": "clean_wound_bad",
"type": "wound_fix",
"name": "clean the laceration",
"description": "Clean your bad laceration.",
"name": "Flush your badly torn skin",
"description": "Use water to flush foreign contaminants out of where the skin has ripped apart.",
"wounds_removed": [ "laceration_bad" ],
"wounds_added": [ "clean_laceration_bad" ],
"success_msg": "The bad laceration is clean now. You should bandage it but it'll heal as is."
"success_msg": "You wipe down the area and thoroughly flush the ripped open skin with water."
},
{
"id": "bandage_laceration_medium_fix",
"copy-from": "bandage_wound_medium",
"type": "wound_fix",
"name": "bandage the laceration",
"description": "Bandage your laceration.",
"name": "Bandage your torn skin",
"description": "Apply a bandage to cover your torn skin from contamination.",
"wounds_removed": [ "clean_laceration_medium" ],
"wounds_added": [ "bandaged_laceration_medium" ],
"success_msg": "The laceration is bandaged, now, all you can do is wait for it to heal."
"success_msg": "You apply a bandage to your torn skin."
},
{
"id": "bandage_laceration_bad_fix",
"copy-from": "bandage_wound_bad",
"type": "wound_fix",
"name": "bandage the laceration",
"description": "Bandage your bad laceration.",
"name": "Bandage your badly torn skin",
"description": "Apply a bandage to cover your badly torn skin from contamination.",
"wounds_removed": [ "clean_laceration_bad" ],
"wounds_added": [ "bandaged_laceration_bad" ],
"success_msg": "The bad laceration is bandaged, now, all you can do is wait for it to heal."
"success_msg": "You wrap a bandage around your ripped open skin."
},
{
"id": "bandaged_laceration_old_medium_fix",
"type": "wound_fix",
"copy-from": "bandage_laceration_medium_fix",
"description": "Change the dressing on your laceration.",
"name": "Change aging dressing",
"description": "Swap out the dressing on your torn skin.",
"wounds_removed": [ "bandaged_laceration_old_medium" ],
"wounds_added": [ "bandaged_laceration_medium" ],
"success_msg": "The laceration's bandages are changed, now, all you can do is wait for it to heal."
"success_msg": "You remove the blood-stained bandage and apply a fresh one to the torn skin."
},
{
"id": "set_bone_good_fix",
"type": "wound_fix",
"name": "set the bone properly",
"description": "Set your bone properly.",
"name": "Set your broken bone",
"description": "Realign your broken bone before splinting it so that it can heal normally.",
"time": "10 minutes",
"skills": { "firstaid": 6 },
"wounds_removed": [ "bone_broken" ],
"wounds_added": [ "bone_broken_healing_good" ],
"success_msg": "You set the bone, ow.",
"success_msg": "You realign the bone and hold it firmly in place with a splint. Ow.",
"requirements": [ [ "wound_bone", 1 ] ],
"proficiencies": [ { "proficiency": "prof_wound_care_expert", "is_mandatory": true } ]
},
{
"id": "set_bone_partial_fix",
"type": "wound_fix",
"name": "set the bone",
"description": "Set your bone carefully.",
"name": "Poorly set your broken bone",
"description": "Attempt to realign your broken bone as best you can before splinting it. You're no professional, so you're going to have some permanent loss of function.",
"time": "10 minutes",
"skills": { "firstaid": 4 },
"wounds_removed": [ "bone_broken" ],
"wounds_added": [ "bone_broken_healing_partial" ],
"success_msg": "When setting the bone, you hear loud cracks and your pain gets even worse.",
"success_msg": "It's painful and of subpar quality, but the bone is mostly aligned in the correct direction and now held firmly with a splint.",
"requirements": [ [ "wound_bone", 1 ] ],
"proficiencies": [ { "proficiency": "prof_wound_care", "is_mandatory": true } ]
},
{
"id": "set_bone_bad_fix",
"type": "wound_fix",
"name": "set your bone?",
"description": "Set your bone, whatever that means.",
"name": "Splint your bone without setting it",
"description": "Haphazardly bend your broken bone back into place before splinting it. While the bone will fuse back together like this, there's going to be significant permanent damage.",
"time": "10 minutes",
"skills": { "firstaid": 2 },
"wounds_removed": [ "bone_broken" ],
"wounds_added": [ "bone_broken_healing_bad" ],
"success_msg": "You did something, you aren't sure what but at least now its kind of bent in the right direction.",
"success_msg": "You hear a crack and an jolt of pain shoots through your entire limb that's almost worse than the initial break, before managing to fight through the pain and force it into the splint.",
"requirements": [ [ "wound_bone", 1 ] ]
},
{
"id": "splint_bone_fix",
"type": "wound_fix",
"name": "splint your bone",
"description": "Splint your bone.",
"name": "Splint your fractured bone",
"description": "Firmly hold your fractured limb still with a splint so that it has time to heal without being aggravated and damaged further.",
"time": "1 minutes",
"skills": { "firstaid": 2 },
"wounds_removed": [ "bone_fractured" ],
"wounds_added": [ "bone_fractured_healing" ],
"success_msg": "You put a splint your bone, now all you can do is wait for it to heal.",
"success_msg": "You gingerly place your fractured limb into a splint, and let your body's natural healing process commence.",
"requirements": [ [ "wound_bone", 1 ] ]
}
]
+81 -59
View File
@@ -2,8 +2,8 @@
{
"id": "scratch_small",
"type": "wound",
"name": { "str": "light scratch", "str_pl": "light scratches" },
"description": "You have been scratched lightly, you should probably clean it.",
"name": { "str": "scratch", "str_pl": "scratches" },
"description": "You have been scratched lightly. The bleeding was superficial pooling, if at all. The location of the scratch is dirty, though with something so superficial infection is unlikely.",
"weight": 50,
"limit": 12,
"damage_types": [ "cut" ],
@@ -23,13 +23,13 @@
{ "score": "move_speed", "value": 0 }
],
"blacklist_body_part_types": [ "sensor" ],
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB" ]
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB", "NON_FLESH_LIMB" ]
},
{
"id": "scratch_medium",
"type": "wound",
"name": { "str": "scratch", "str_pl": "scratches" },
"description": "You have been scratched, you should at least clean it.",
"name": { "str": "large scratch", "str_pl": "large scratches" },
"description": "You have a larger scratch, and while blood is oozing out slowly it's of no concern. The primary concern is cleaning it off to avoid infection.",
"weight": 40,
"limit": 8,
"damage_types": [ "cut" ],
@@ -49,13 +49,13 @@
{ "score": "move_speed", "value": 0.5 }
],
"blacklist_body_part_types": [ "sensor" ],
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB" ]
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB", "NON_FLESH_LIMB" ]
},
{
"id": "bleeding_scratch_bad",
"type": "wound",
"name": { "str": "bleeding bad scratch", "str_pl": "bleeding bad scratches" },
"description": "You have been scratched badly, you should stop the bleeding.",
"name": { "str": "bleeding gouge" },
"description": "Whatever scratched you managed to snag and get you deeper than usual, ripping open flesh which is now bleeding.",
"weight": 40,
"limit": 8,
"damage_types": [ "cut" ],
@@ -78,15 +78,15 @@
{ "type": "VITAMIN", "vitamin_id": "redcells", "rate": "1 seconds", "amount": -5 },
{ "type": "VITAMIN", "vitamin_id": "blood", "rate": "1 seconds", "amount": -5 }
],
"periodic_message": { "message": "Your scratch on your %s is bleeding!", "rate": "60 seconds" },
"periodic_message": { "message": "Your gouge on your %s is bleeding!", "rate": "60 seconds" },
"blacklist_body_part_types": [ "sensor" ],
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB" ]
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB", "NON_FLESH_LIMB" ]
},
{
"id": "bleeding_cut_medium",
"type": "wound",
"name": { "str": "bleeding cut" },
"description": "You have been cut, you should stop the bleeding.",
"description": "You have been cut, and although it's not critical, blood is steadily flowing out of the wound.",
"weight": 50,
"limit": 8,
"damage_types": [ "cut" ],
@@ -112,13 +112,13 @@
],
"periodic_message": { "message": "Your cut on your %s is bleeding!", "rate": "60 seconds" },
"blacklist_body_part_types": [ "sensor" ],
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB" ]
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB", "NON_FLESH_LIMB" ]
},
{
"id": "bleeding_cut_bad",
"type": "wound",
"name": { "str": "bleeding deep cut" },
"description": "You have been deeply cut, you should stop the bleeding.",
"name": { "str": "bleeding gash", "str_pl": "bleeding gashes" },
"description": "You have a rather nasty open gash in your flesh, and blood is pouring out quickly.",
"weight": 40,
"limit": 8,
"damage_types": [ "cut" ],
@@ -142,15 +142,15 @@
{ "type": "VITAMIN", "vitamin_id": "redcells", "rate": "1 seconds", "amount": -13 },
{ "type": "VITAMIN", "vitamin_id": "blood", "rate": "1 seconds", "amount": -13 }
],
"periodic_message": { "message": "Your deep cut on your %s is bleeding!", "rate": "40 seconds" },
"periodic_message": { "message": "Your gash on your %s is bleeding!", "rate": "40 seconds" },
"blacklist_body_part_types": [ "sensor" ],
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB" ]
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB", "NON_FLESH_LIMB" ]
},
{
"id": "bleeding_cut_terrible",
"type": "wound",
"name": { "str": "bleeding horrible cut" },
"description": "You have been horribly cut, you should stop the bleeding.",
"name": { "str": "bleeding life-threatening gash", "str_pl": "bleeding life-threatening gashes" },
"description": "You have been sliced open, and you are at immediate risk of death from blood loss if you can't get it under control.",
"weight": 40,
"limit": 8,
"damage_types": [ "cut" ],
@@ -174,16 +174,16 @@
{ "type": "VITAMIN", "vitamin_id": "redcells", "rate": "1 seconds", "amount": -18 },
{ "type": "VITAMIN", "vitamin_id": "blood", "rate": "1 seconds", "amount": -18 }
],
"periodic_message": { "message": "Your horrible cut on your %s is bleeding!", "rate": "20 seconds" },
"periodic_message": { "message": "Your life-threatening gash on your %s is bleeding!", "rate": "20 seconds" },
"blacklist_body_part_types": [ "sensor" ],
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB" ]
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB", "NON_FLESH_LIMB" ]
},
{
"id": "scratch_bad",
"copy-from": "bleeding_scratch_bad",
"type": "wound",
"name": { "str": "bad scratch", "str_pl": "bad scratches" },
"description": "You have been scratched badly, you should probably clean it and bandage it.",
"name": { "str": "gouge" },
"description": "Whatever scratched you managed to snag and get you deeper than usual, ripping open flesh. The site of the injury is still dirty.",
"weight": 0,
"mod_values": [ ],
"periodic_message": { "message": "", "rate": "999 hours" },
@@ -194,7 +194,7 @@
"copy-from": "bleeding_cut_medium",
"type": "wound",
"name": { "str": "cut" },
"description": "You have been cut, you should probably clean it and bandage it.",
"description": "You have been cut open. The site of the injury is still dirty.",
"weight": 0,
"mod_values": [ ],
"periodic_message": { "message": "", "rate": "999 hours" },
@@ -204,8 +204,8 @@
"id": "cut_bad",
"copy-from": "bleeding_cut_bad",
"type": "wound",
"name": { "str": "deep cut" },
"description": "You have been deeply cut, you should probably clean it and bandage it.",
"name": { "str": "gash", "str_pl": "gashes" },
"description": "Though the bleeding has stopped, you have an open gash in your skin from a sharp object. If it isn't properly cleaned out, sepsis is likely to kill you instead.",
"weight": 0,
"mod_values": [ ],
"periodic_message": { "message": "", "rate": "999 hours" },
@@ -215,8 +215,8 @@
"id": "cut_terrible",
"copy-from": "bleeding_cut_terrible",
"type": "wound",
"name": { "str": "horrible cut" },
"description": "You have been horribly cut, you should probably clean it and bandage it.",
"name": { "str": "life-threatening gash", "str_pl": "life-threatening gashes" },
"description": "Somehow, you've managed to staunch the flow of blood pouring out of your sliced open limb. You'll need to thoroughly clean it to avoid death from sepsis in lieu of blood loss.",
"weight": 0,
"mod_values": [ ],
"periodic_message": { "message": "", "rate": "999 hours" },
@@ -226,8 +226,8 @@
"id": "clean_scratch_small",
"copy-from": "scratch_small",
"type": "wound",
"name": { "str": "clean light scratch", "str_pl": "clean light scratches" },
"description": "You have been scratched lightly.",
"name": { "str": "clean scratch", "str_pl": "clean scratches" },
"description": "You have been scratched lightly. The already small infection risk has been mitigated by cleaning.",
"weight": 0,
"healing_time": [ "2 days", "4 days" ],
"wound_progression": [ { "id": "scratch_small", "chance": 100 } ]
@@ -236,13 +236,13 @@
"id": "clean_scratch_medium",
"copy-from": "scratch_medium",
"type": "wound",
"name": { "str": "clean scratch", "str_pl": "clean scratches" },
"description": "You have been scratched.",
"name": { "str": "clean large scratch", "str_pl": "clean large scratches" },
"description": "You have a larger scratch that's been cleaned up to avoid infection.",
"weight": 0,
"progress_timer": {
"id": "clean_scratch_small",
"time": [ "36 hours", "60 hours" ],
"message": "Your scratch on your %s looks much better, but you should still probably bandage it."
"message": "Your scratch on your %s looks much better.."
},
"wound_progression": [ { "id": "scratch_medium", "chance": 100 } ]
},
@@ -250,12 +250,12 @@
"id": "clean_scratch_bad",
"copy-from": "scratch_bad",
"type": "wound",
"name": { "str": "clean bad scratch", "str_pl": "clean bad scratches" },
"description": "You have been badly scratched, you should probably bandage it.",
"name": { "str": "clean gouge" },
"description": "Your flesh has been ripped open by whatever managed to scratch you. It's been cleaned out.",
"progress_timer": {
"id": "clean_scratch_medium",
"time": [ "48 hours", "84 hours" ],
"message": "Your scratch on your %s looks less serious, but you should still probably bandage it."
"message": "Your gouge on your %s looks less serious, though a bandage would still help it heal."
}
},
{
@@ -263,92 +263,114 @@
"copy-from": "cut_medium",
"type": "wound",
"name": { "str": "clean cut" },
"description": "You have been cut, you should probably bandage it.",
"description": "You have been cut, but the site of the injury has been thoroughly cleaned out.",
"healing_time": [ "3 days", "5 days" ]
},
{
"id": "clean_cut_bad",
"copy-from": "cut_bad",
"type": "wound",
"name": { "str": "clean deep cut" },
"description": "You have been badly cut, you should probably bandage it.",
"name": { "str": "clean gash", "str_pl": "clean gashes" },
"description": "You have an open gash in your flesh, but the site of the injury has been thoroughly cleaned out.",
"healing_time": [ "5 days", "9 days" ]
},
{
"id": "clean_cut_terrible",
"copy-from": "cut_terrible",
"type": "wound",
"name": { "str": "clean horrible cut" },
"description": "You have been horribly cut, you should really bandage it."
"name": { "str": "clean life-threatening gash", "str_pl": "clean life-threatening gashes" },
"description": "You have been sliced open, and through miracles or pertinent professional-level medical care you have managed to stop the bleeding and clean it out enough to avoid infection. Once it's been bandaged, the long road to recovery can begin."
},
{
"id": "bandaged_scratch_small",
"copy-from": "clean_scratch_small",
"type": "wound",
"name": { "str": "bandaged light scratch", "str_pl": "bandaged scratches" },
"description": "Your light scratch is bandaged.",
"name": { "str": "bandaged scratch", "str_pl": "bandaged scratches" },
"description": "Your scratch is bandaged up, and all that's left is to give it a day or so to heal.",
"healing_time": [ "1 days", "2 days" ]
},
{
"id": "bandaged_scratch_medium",
"copy-from": "clean_scratch_medium",
"type": "wound",
"name": { "str": "bandaged scratch", "str_pl": "bandaged scratches" },
"description": "You have been scratched, you should wait till it heals.",
"name": { "str": "bandaged large scratch", "str_pl": "bandaged large scratches" },
"description": "Your large scratch has been bandaged up, and all that's left is to wait for it to heal.",
"progress_timer": {
"id": "bandaged_scratch_old_small",
"time": [ "24 hours", "48 hours" ],
"message": "Your scratch on your %s looks much better, but you should probably change the dressing."
"message": "The large scratch on your %s looks much better, but the dressing is old and in need of replacing."
}
},
{
"id": "bandaged_scratch_bad",
"copy-from": "scratch_bad",
"type": "wound",
"name": { "str": "bandaged bad scratch", "str_pl": "bandaged bad scratches" },
"description": "You have been badly scratched, you should wait till it heals.",
"name": { "str": "bandaged gouge" },
"description": "You have been gouged, you should wait till it heals.",
"progress_timer": {
"id": "bandaged_scratch_old_medium",
"time": [ "36 hours", "60 hours" ],
"message": "Your bad scratch on your %s looks less serious, but you should probably change the dressing."
"message": "The gouge on your %s looks less serious, but the dressing is old and in need of replacing."
}
},
{
"id": "bandaged_scratch_old_small",
"copy-from": "clean_scratch_small",
"type": "wound",
"name": { "str": "bandaged light scratch (old dressing)", "str_pl": "bandaged light scratches (old dressing)" },
"description": "You have been scratched lightly, and you should probably change the dressing."
"name": { "str": "bandaged scratch (old dressing)", "str_pl": "bandaged scratches (old dressing)" },
"description": "Your scratch has grown smaller and less severe. It will heal soon, but the dressing has grown old and is in need of replacing."
},
{
"id": "bandaged_scratch_old_medium",
"copy-from": "clean_scratch_medium",
"type": "wound",
"name": { "str": "bandaged scratch (old dressing)", "str_pl": "bandaged bad scratches (old dressing)" },
"description": "You have been scratched, and you should probably change the dressing."
"name": { "str": "bandaged large scratch (old dressing)", "str_pl": "bandaged large scratches (old dressing)" },
"description": "What used to be a gouge in your flesh has started to close up. It's on the road to recovery, but the dressing has grown old and is in need of replacing."
},
{
"id": "bandaged_cut_medium",
"copy-from": "cut_medium",
"type": "wound",
"name": { "str": "bandaged cut" },
"description": "You have been cut, you should wait till it heals.",
"description": "You've done all you can, now the cut simply has to heal on its own.",
"healing_time": [ "2 days", "4 days" ]
},
{
"id": "bandaged_cut_bad",
"copy-from": "cut_bad",
"type": "wound",
"name": { "str": "bandaged deep cut" },
"description": "You have been badly cut, you should wait till it heals.",
"healing_time": [ "4 days", "6 days" ]
"name": { "str": "bandaged gash", "str_pl": "bandaged gashes" },
"description": "You've done all you can, now the gash simply has to heal on its own.",
"progress_timer": {
"id": "bandaged_cut_old_medium",
"time": [ "48 hours", "72 hours" ],
"message": "The gash on your %s looks less serious, but the dressing is old and in need of replacing."
}
},
{
"id": "bandaged_cut_terrible",
"copy-from": "cut_terrible",
"type": "wound",
"name": { "str": "bandaged horrible cut" },
"description": "You have been horribly cut, you should wait till it heals.",
"healing_time": [ "6 days", "8 days" ]
"name": { "str": "bandaged life-threatening gash", "str_pl": "bandaged life-threatening gashes" },
"description": "Against the odds, you've survived something that could have killed someone even before the world went to shit. Now all that's left is to walk the slow road to recovery.",
"progress_timer": {
"id": "bandaged_cut_old_bad",
"time": [ "72 hours", "96 hours" ],
"message": "The life-threatening gash on your %s has started to close, but the dressing is old and in need of replacing."
}
},
{
"id": "bandaged_cut_old_medium",
"copy-from": "clean_cut_medium",
"type": "wound",
"name": { "str": "bandaged cut (old dressing)", "str_pl": "bandaged cuts (old dressing)" },
"description": "The gash on your limb is finally starting to close, but the dressing has grown old and is in need of replacing."
},
{
"id": "bandaged_cut_old_bad",
"copy-from": "clean_cut_bad",
"type": "wound",
"name": { "str": "bandaged gash (old dressing)", "str_pl": "bandaged gashes (old dressing)" },
"description": "The sliced open flesh on your limb is no longer life threatening, but the dressing has grown old and is in need of replacing."
}
]
+75 -55
View File
@@ -3,180 +3,200 @@
"id": "bleed_scratch_bad_fix",
"copy-from": "bleed_wound_bad",
"type": "wound_fix",
"name": "stop the bleeding",
"description": "Stop the bleeding your bad scratch.",
"name": "Staunch the bleeding",
"description": "Use an absorbant material to apply pressure to the gouge and stop the bleeding.",
"wounds_removed": [ "bleeding_scratch_bad" ],
"wounds_added": [ "scratch_bad" ],
"success_msg": "The bad scratch isn't bleeding anymore."
"success_msg": "You apply pressure, and the flow of blood from the gouge stops."
},
{
"id": "bleed_cut_medium_fix",
"copy-from": "bleed_wound_medium",
"type": "wound_fix",
"name": "stop the bleeding",
"description": "Stop the bleeding of your cut.",
"name": "Staunch the bleeding",
"description": "Use an absorbant material to apply pressure to the cut and stop the bleeding.",
"wounds_removed": [ "bleeding_cut_medium" ],
"wounds_added": [ "cut_medium" ],
"success_msg": "The cut isn't bleeding anymore."
"success_msg": "You apply pressure, and the flow of blood from the cut stops."
},
{
"id": "bleed_cut_bad_fix",
"copy-from": "bleed_wound_bad",
"type": "wound_fix",
"name": "stop the bleeding",
"description": "Stop the bleeding of your deep cut.",
"name": "Staunch the bleeding",
"description": "Use an absorbant material to apply pressure to the gash and stop the bleeding.",
"wounds_removed": [ "bleeding_cut_bad" ],
"wounds_added": [ "cut_bad" ],
"success_msg": "The deep cut isn't bleeding anymore."
"success_msg": "You apply pressure, and the flow of blood from the gash stops."
},
{
"id": "bleed_cut_terrible_fix",
"copy-from": "bleed_wound_terrible",
"type": "wound_fix",
"name": "stop the bleeding",
"description": "Stop the bleeding of your horrible cut.",
"name": "Staunch the bleeding",
"description": "Use an absorbant material to apply pressure to the life-threatening gash and stop the bleeding.",
"wounds_removed": [ "bleeding_cut_terrible" ],
"wounds_added": [ "cut_terrible" ],
"success_msg": "The horrible cut isn't bleeding anymore."
"success_msg": "It's not easy and it takes some time, but with enough pressure the flow of blood from the life-threatening gash stops."
},
{
"id": "clean_scratch_small_fix",
"copy-from": "clean_wound_small",
"type": "wound_fix",
"name": "clean the scratch",
"description": "Clean your light scratch.",
"name": "Clean the scratch",
"description": "Use water to wash the scratch of dirt, debris, and bacteria.",
"wounds_removed": [ "scratch_small" ],
"wounds_added": [ "clean_scratch_small" ],
"success_msg": "The light scratch is clean now. You should bandage it but it'll heal as is."
"success_msg": "You clean the area where your scratch is."
},
{
"id": "clean_scratch_medium_fix",
"copy-from": "clean_wound_medium",
"type": "wound_fix",
"name": "clean the scratch",
"description": "Clean your scratch.",
"name": "Clean the large scratch",
"description": "Use water to wash the large scratch of dirt, debris, and bacteria.",
"wounds_removed": [ "scratch_medium" ],
"wounds_added": [ "clean_scratch_medium" ],
"success_msg": "The scratch is clean now. You should bandage it but it'll heal as is."
"success_msg": "You spend some time wiping the area down, making sure to pay attention to places where the skin broke."
},
{
"id": "clean_scratch_bad_fix",
"copy-from": "clean_wound_bad",
"type": "wound_fix",
"name": "clean the scratch",
"description": "Clean your bad scratch.",
"name": "Flush the gouge",
"description": "Use water to flush out contaminants from your gouged skin.",
"wounds_removed": [ "scratch_bad" ],
"wounds_added": [ "clean_scratch_bad" ],
"success_msg": "The bad scratch is clean now. You should bandage it but it'll heal as is."
"success_msg": "You thoroughly flush the gouge with water to remove any foreign contaminants."
},
{
"id": "clean_cut_medium_fix",
"copy-from": "clean_wound_medium",
"type": "wound_fix",
"name": "clean the cut",
"description": "Clean your cut.",
"name": "Wash the cut",
"description": "Use water to wash the cut of dirt, debris, and bacteria.",
"wounds_removed": [ "cut_medium" ],
"wounds_added": [ "clean_cut_medium" ],
"success_msg": "The cut is clean now. You should bandage it but it'll heal as is."
"success_msg": "You wipe down the area around the cut and take extra care to make sure the inside of it is clean."
},
{
"id": "clean_cut_bad_fix",
"copy-from": "clean_wound_bad",
"type": "wound_fix",
"name": "clean the cut",
"description": "Clean your bad cut.",
"name": "Flush the gash",
"description": "Use water to flush out contaminants from the open gash in your skin.",
"wounds_removed": [ "cut_bad" ],
"wounds_added": [ "clean_cut_bad" ],
"success_msg": "The bad cut is clean now. You should bandage it but it'll heal as is."
"success_msg": "You thoroughly flush the gash with water to remove any foreign contaminants."
},
{
"id": "clean_cut_terrible_fix",
"copy-from": "clean_wound_terrible",
"type": "wound_fix",
"name": "clean the cut",
"description": "Clean your horrible cut.",
"name": "Flush the life-threatening gash",
"description": "Use water to thoroughly flush out every last trace of contamination from your sliced open limb.",
"wounds_removed": [ "cut_terrible" ],
"wounds_added": [ "clean_cut_terrible" ],
"success_msg": "The horrible cut is clean now. You should bandage it but it'll heal as is."
"success_msg": "You spend quite a while flushing water through your sliced open skin, knowing that anything less than full flush of all contaminants will kill you from sepsis with a cut this major."
},
{
"id": "bandage_scratch_small_fix",
"copy-from": "bandage_wound_small",
"type": "wound_fix",
"name": "bandage the scratch",
"description": "Bandage your light scratch.",
"name": "Bandage the scratch",
"description": "Apply a bandage to your superficial scratch.",
"wounds_removed": [ "clean_scratch_small" ],
"wounds_added": [ "bandaged_scratch_small" ],
"success_msg": "The light scratch is bandaged, now, all you can do is wait for it to heal."
"success_msg": "You apply a bandage to your scratched skin."
},
{
"id": "bandage_scratch_medium_fix",
"copy-from": "bandage_wound_medium",
"type": "wound_fix",
"name": "bandage the scratch",
"description": "Bandage your scratch.",
"name": "Bandage the large scratch",
"description": "Wrap a bandage around your large scratch.",
"wounds_removed": [ "clean_scratch_medium" ],
"wounds_added": [ "bandaged_scratch_medium" ],
"success_msg": "The medium scratch is bandaged, now, all you can do is wait for it to heal."
"success_msg": "You wrap a bandage around your large scratch."
},
{
"id": "bandage_scratch_bad_fix",
"copy-from": "bandage_wound_bad",
"type": "wound_fix",
"name": "bandage the scratch",
"description": "Bandage your bad scratch.",
"name": "Bandage the gouge",
"description": "Use a bandage to cover and protect your gouged skin.",
"wounds_removed": [ "clean_scratch_bad" ],
"wounds_added": [ "bandaged_scratch_bad" ],
"success_msg": "The bad scratch is bandaged, now, all you can do is wait for it to heal."
"success_msg": "You wrap a bandage around your gouged skin."
},
{
"id": "bandaged_scratch_old_small_fix",
"copy-from": "bandage_scratch_small_fix",
"type": "wound_fix",
"name": "change dressing on the light scratch",
"description": "Change the dressing on your light scratch.",
"name": "Change aging dressing",
"description": "Swap out the dressing on your scratch.",
"wounds_removed": [ "bandaged_scratch_old_small" ],
"wounds_added": [ "bandaged_scratch_small" ],
"success_msg": "You change the dressing on the light scratch, now, all you can do is wait for it to heal."
"success_msg": "You remove the aging dressing from your scratch and apply a fresh one."
},
{
"id": "bandaged_scratch_old_medium",
"id": "bandaged_scratch_old_medium_fix",
"copy-from": "bandage_scratch_medium_fix",
"type": "wound_fix",
"name": "change dressing on the scratch",
"description": "Change the dressing on your scratch.",
"name": "Change aging dressing",
"description": "Swap out the dressing on your large scratch.",
"wounds_removed": [ "bandaged_scratch_old_medium" ],
"wounds_added": [ "bandaged_scratch_medium" ],
"success_msg": "You change the dressing on the light scratch, now, all you can do is wait for it to heal."
"success_msg": "You remove the bloody dressing from your large scratch and wrap new one around it."
},
{
"id": "bandage_cut_medium_fix",
"copy-from": "bandage_wound_medium",
"type": "wound_fix",
"name": "bandage the cut",
"description": "Bandage your cut.",
"name": "Bandage the cut",
"description": "Use a bandage to cover and protect your cut open skin.",
"wounds_removed": [ "clean_cut_medium" ],
"wounds_added": [ "bandaged_cut_medium" ],
"success_msg": "The cut is bandaged, now, all you can do is wait for it to heal."
"success_msg": "You remove the blood-soaked dressing from your cut and wrap a fresh one around it."
},
{
"id": "bandage_cut_bad_fix",
"copy-from": "bandage_wound_bad",
"type": "wound_fix",
"name": "bandage the cut",
"description": "Bandage your bad cut.",
"name": "Bandage the gash",
"description": "Use a bandage to cover and protect your open gash so it can heal.",
"wounds_removed": [ "clean_cut_bad" ],
"wounds_added": [ "bandaged_cut_bad" ],
"success_msg": "The bad cut is bandaged, now, all you can do is wait for it to heal."
"success_msg": "You make sure the bandage is securely wrapped and that each part of the gash is covered."
},
{
"id": "bandage_cut_terrible_fix",
"copy-from": "bandage_wound_terrible",
"type": "wound_fix",
"name": "bandage the cut",
"description": "Bandage your horrible cut.",
"name": "Bandage the life-threatening gash",
"description": "Use a bandage to wrap the sliced open limb. The cut is large enough that you're going to end up with more of it covered than not just to make sure there aren't any gaps.",
"wounds_removed": [ "clean_cut_terrible" ],
"wounds_added": [ "bandaged_cut_terrible" ],
"success_msg": "The horrible cut is bandaged, now, all you can do is wait for it to heal."
"success_msg": "You spend some time making sure the entire gash is covered and protected from contamination."
},
{
"id": "bandaged_cut_old_medium_fix",
"copy-from": "bandage_cut_medium_fix",
"type": "wound_fix",
"name": "Change aging dressing",
"description": "Swap out the dressing on your cut",
"wounds_removed": [ "bandaged_cut_old_medium" ],
"wounds_added": [ "bandaged_cut_medium" ],
"success_msg": "You remove the blood-stained dressing from your cut and wrap fresh one around it."
},
{
"id": "bandaged_cut_old_bad_fix",
"copy-from": "bandage_cut_bad_fix",
"type": "wound_fix",
"name": "Change aging dressing",
"description": "Swap out the dressing on your gash",
"wounds_removed": [ "bandaged_cut_old_bad" ],
"wounds_added": [ "bandaged_cut_bad" ],
"success_msg": "You remove the blood-soaked dressing from your gash and wrap fresh one around it."
}
]
+2 -2
View File
@@ -4,7 +4,7 @@
"copy-from": "bone_broken",
"type": "wound",
"whitelist_flags": [ "MEND_ALL" ],
"blacklist_flag": [ ]
"blacklist_flag": [ "NON_FLESH_LIMB" ]
},
{
"id": "bone_broken_mend_all_fix",
@@ -23,6 +23,6 @@
"type": "wound",
"healing_time": [ "15 days", "20 days" ],
"whitelist_flags": [ "MEND_ALL" ],
"blacklist_flag": [ ]
"blacklist_flag": [ "NON_FLESH_LIMB" ]
}
]
+68
View File
@@ -0,0 +1,68 @@
[
{
"//": "Once wounds can reduce your armor, this will do that.",
"id": "broken_bark_small",
"type": "wound",
"name": { "str": "chipped bark" },
"description": "You have chipped bark on your %s.",
"weight": 50,
"limit": 8,
"damage_types": [ "bash" ],
"damage_required": [ 1, 10 ],
"healing_time": [ "2 days", "4 days" ],
"wound_progression": [ { "id": "broken_bark_medium", "chance": 50 } ],
"limb_scores": [ { "score": "manip", "value": 0.03 }, { "score": "reaction", "value": 0.1 }, { "score": "block", "value": 0.08 } ],
"blacklist_body_part_types": [ "sensor" ],
"whitelist_bp_with_flag": [ "PLANT_LIMB" ]
},
{
"id": "broken_bark_medium",
"type": "wound",
"name": { "str": "cracked bark" },
"description": "You have cracked bark on your %s.",
"weight": 50,
"limit": 8,
"damage_types": [ "bash" ],
"damage_required": [ 10, 14 ],
"progress_timer": {
"id": "broken_bark_small",
"time": [ "4 days", "7 days" ],
"message": "Your cracked bark has almost completely regrown on your %s."
},
"limb_scores": [ { "score": "manip", "value": 0.05 }, { "score": "reaction", "value": 0.25 }, { "score": "block", "value": 0.2 } ],
"blacklist_body_part_types": [ "sensor" ],
"whitelist_bp_with_flag": [ "PLANT_LIMB" ]
},
{
"id": "broken_bark_bad",
"type": "wound",
"name": { "str": "splintered bark" },
"description": "You have splintered bark on your %s.",
"weight": 40,
"limit": 8,
"damage_types": [ "bash" ],
"damage_required": [ 15, 30 ],
"progress_timer": {
"id": "broken_bark_medium",
"time": [ "6 days", "9 days" ],
"message": "Your splintered bark on your %s is starting to grow back."
},
"limb_scores": [ { "score": "manip", "value": 0.1 }, { "score": "reaction", "value": 0.5 }, { "score": "block", "value": 0.5 } ],
"blacklist_body_part_types": [ "sensor" ],
"whitelist_bp_with_flag": [ "PLANT_LIMB" ]
},
{
"id": "broken_vine_limb",
"type": "wound",
"name": { "str": "broken vine" },
"description": "You %s is broken and useless. You'll just have to wait until it regrows.",
"weight": 20,
"limit": 1,
"damage_types": [ "bash" ],
"damage_required": [ 31, 99 ],
"healing_time": [ "30 days", "45 days" ],
"limb_scores": [ { "score": "manip", "value": 1 }, { "score": "reaction", "value": 1 }, { "score": "block", "value": 1 } ],
"blacklist_body_part_types": [ "sensor" ],
"whitelist_bp_with_flag": [ "VINE_LIMB" ]
}
]
+75 -42
View File
@@ -2,8 +2,8 @@
{
"id": "bleeding_stab_small",
"type": "wound",
"name": { "str": "bleeding light stab" },
"description": "You have been lightly stabbed, you should stop the bleeding.",
"name": { "str": "bleeding puncture" },
"description": "You have been punctured, and it's left a superficial hole in your skin. It's currently dripping blood.",
"weight": 50,
"limit": 8,
"damage_types": [ "stab" ],
@@ -28,15 +28,15 @@
{ "type": "VITAMIN", "vitamin_id": "redcells", "rate": "1 seconds", "amount": -3 },
{ "type": "VITAMIN", "vitamin_id": "blood", "rate": "1 seconds", "amount": -3 }
],
"periodic_message": { "message": "Your stab on your %s is bleeding!", "rate": "60 seconds" },
"periodic_message": { "message": "The puncture on your %s is bleeding!", "rate": "60 seconds" },
"blacklist_body_part_types": [ "sensor" ],
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB" ]
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB", "NON_FLESH_LIMB" ]
},
{
"id": "bleeding_stab_medium",
"type": "wound",
"name": { "str": "bleeding stab" },
"description": "You have been stabbed, you should stop the bleeding.",
"name": { "str": "bleeding deep puncture" },
"description": "You have been punctured, and it's pierced down to the muscle. It's bleeding rather profusely.",
"weight": 50,
"limit": 8,
"damage_types": [ "stab" ],
@@ -61,15 +61,15 @@
{ "type": "VITAMIN", "vitamin_id": "redcells", "rate": "1 seconds", "amount": -10 },
{ "type": "VITAMIN", "vitamin_id": "blood", "rate": "1 seconds", "amount": -10 }
],
"periodic_message": { "message": "Your stab on your %s is bleeding!", "rate": "40 seconds" },
"periodic_message": { "message": "The deep puncture on your %s is bleeding!", "rate": "40 seconds" },
"blacklist_body_part_types": [ "sensor" ],
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB" ]
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB", "NON_FLESH_LIMB" ]
},
{
"id": "bleeding_stab_bad",
"type": "wound",
"name": { "str": "bleeding deep stab" },
"description": "You have been deeply stabbed, you should stop the bleeding.",
"name": { "str": "bleeding stab" },
"description": "You have been stabbed by a significantly sized sharp object, and blood is pouring from the wound.",
"weight": 40,
"limit": 8,
"damage_types": [ "stab" ],
@@ -94,16 +94,16 @@
{ "type": "VITAMIN", "vitamin_id": "redcells", "rate": "1 seconds", "amount": -17 },
{ "type": "VITAMIN", "vitamin_id": "blood", "rate": "1 seconds", "amount": -17 }
],
"periodic_message": { "message": "Your deep stab on your %s is bleeding!", "rate": "20 seconds" },
"periodic_message": { "message": "Your stabbed %s is bleeding!", "rate": "20 seconds" },
"blacklist_body_part_types": [ "sensor", "head" ],
"//0": "if a knife goes through your head or organs you're dead",
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB" ]
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB", "NON_FLESH_LIMB" ]
},
{
"id": "bleeding_stab_terrible",
"type": "wound",
"name": { "str": "bleeding deep stab" },
"description": "You have been terribly stabbed, you should stop the bleeding.",
"name": { "str": "bleeding impalement" },
"description": "You have been impaled by a large object, and your life is in immediate danger. The wound is hemorrhaging blood, and death from shock is guaranteed if it isn't stopped immediately.",
"weight": 40,
"limit": 8,
"damage_types": [ "stab" ],
@@ -127,17 +127,17 @@
{ "type": "VITAMIN", "vitamin_id": "redcells", "rate": "1 seconds", "amount": -23 },
{ "type": "VITAMIN", "vitamin_id": "blood", "rate": "1 seconds", "amount": -23 }
],
"periodic_message": { "message": "Your horrible stab on your %s is bleeding!", "rate": "10 seconds" },
"periodic_message": { "message": "Your impaled %s is bleeding!", "rate": "10 seconds" },
"blacklist_body_part_types": [ "sensor", "head" ],
"//0": "if a knife goes through your head or organs you're dead",
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB" ]
"blacklist_bp_with_flag": [ "BIONIC_LIMB", "PARTIAL_BIONIC_LIMB", "NON_FLESH_LIMB" ]
},
{
"id": "stab_small",
"copy-from": "bleeding_stab_small",
"type": "wound",
"name": { "str": "stab" },
"description": "You have been lightly stabbed, you should probably clean it and bandage it.",
"name": { "str": "puncture" },
"description": "You have been punctured, and it's left a superficial hole in your skin. While you've managed to stop the bleeding, the site is still dirty and an infection risk.",
"weight": 0,
"mod_values": [ ],
"periodic_message": { "message": "", "rate": "999 hours" },
@@ -147,8 +147,8 @@
"id": "stab_medium",
"copy-from": "bleeding_stab_medium",
"type": "wound",
"name": { "str": "stab" },
"description": "You have been stabbed, you should probably clean it and bandage it.",
"name": { "str": "deep puncture" },
"description": "You have been punctured, and it's pierced down to the muscle. While you've managed to stop the bleeding, the site is still dirty and an infection risk.",
"weight": 0,
"mod_values": [ ],
"periodic_message": { "message": "", "rate": "999 hours" },
@@ -158,8 +158,8 @@
"id": "stab_bad",
"copy-from": "bleeding_stab_bad",
"type": "wound",
"name": { "str": "deep stab" },
"description": "You have been deeply stabbed, you should probably clean it and bandage it.",
"name": { "str": "stab" },
"description": "You have been stabbed by a significantly sized sharp object, but it's no longer bleeding. The site is still dirty and at risk of developing sepsis.",
"weight": 0,
"mod_values": [ ],
"periodic_message": { "message": "", "rate": "999 hours" },
@@ -170,7 +170,7 @@
"copy-from": "bleeding_stab_terrible",
"type": "wound",
"name": { "str": "horrible stab" },
"description": "You have been horribly stabbed, you should probably clean it and bandage it.",
"description": "You have been impaled by a large object. While you're no longer losing blood, sepsis will kill you instead if it's not cleaned.",
"weight": 0,
"mod_values": [ ],
"periodic_message": { "message": "", "rate": "999 hours" },
@@ -180,63 +180,96 @@
"id": "clean_stab_small",
"copy-from": "stab_small",
"type": "wound",
"name": { "str": "clean light stab" },
"description": "You have been lightly stab, you should probably bandage it.",
"name": { "str": "clean puncture" },
"description": "You have been punctured, and it's left a superficial hole in your skin. The wound is clean and bleeding has stopped, and all that's left is to bandage it and wait for it to heal.",
"healing_time": [ "3 days", "5 days" ]
},
{
"id": "clean_stab_medium",
"copy-from": "stab_medium",
"type": "wound",
"name": { "str": "clean stab" },
"description": "You have been stab, you should probably bandage it.",
"name": { "str": "clean deep puncture" },
"description": "You have been punctured, and it's pierced down to the muscle. The wound is clean and bleeding has stopped, and all that's left is to bandage it and wait for it to heal.",
"healing_time": [ "3 days", "5 days" ]
},
{
"id": "clean_stab_bad",
"copy-from": "stab_bad",
"type": "wound",
"name": { "str": "clean deep stab" },
"description": "You have been badly stab, you should probably bandage it.",
"name": { "str": "clean stab" },
"description": "You have been stabbed by a significantly sized sharp object. The wound is clean and bleeding has stopped, and all that's left is to bandage it and wait for it to heal.",
"healing_time": [ "5 days", "9 days" ]
},
{
"id": "clean_stab_terrible",
"copy-from": "stab_terrible",
"type": "wound",
"name": { "str": "clean horrible stab" },
"description": "You have been horribly stabbed, you should really bandage it."
"name": { "str": "clean impalement" },
"description": "You have been impaled by a large object. Despite the hole in your body, the bleeding is under control and you've cleaned out the site. All that remains is to bandage it and begin the long road to recovery."
},
{
"id": "bandaged_stab_small",
"copy-from": "stab_small",
"type": "wound",
"name": { "str": "bandaged light stab" },
"description": "You have been lightly stabbed, you should wait till it heals.",
"name": { "str": "bandaged puncture" },
"description": "You've done all you can for the puncture, and can only wait for it to heal.",
"healing_time": [ "1 days", "2 days" ]
},
{
"id": "bandaged_stab_medium",
"copy-from": "stab_medium",
"type": "wound",
"name": { "str": "bandaged stab" },
"description": "You have been stabbed, you should wait till it heals.",
"healing_time": [ "2 days", "4 days" ]
"name": { "str": "bandaged deep puncture" },
"description": "You've done all you can for the deep puncture, and can only wait for it to heal.",
"progress_timer": {
"id": "bandaged_stab_old_small",
"time": [ "24 hours", "48 hours" ],
"message": "The deep puncture on your %s looks less serious, but the dressing is old and in need of changing."
}
},
{
"id": "bandaged_stab_bad",
"copy-from": "stab_bad",
"type": "wound",
"name": { "str": "bandaged deep stab" },
"description": "You have been badly stabbed, you should wait till it heals.",
"healing_time": [ "4 days", "6 days" ]
"name": { "str": "bandaged stab" },
"description": "You've done all you can for the stab, and can only wait for it to heal.",
"progress_timer": {
"id": "bandaged_stab_old_medium",
"time": [ "48 hours", "72 hours" ],
"message": "The stab on your %s looks less serious, but the dressing is old and in need of changing."
}
},
{
"id": "bandaged_stab_terrible",
"copy-from": "stab_terrible",
"type": "wound",
"name": { "str": "bandaged horrible stab" },
"description": "You have been horribly stabbed, you should wait till it heals.",
"healing_time": [ "6 days", "8 days" ]
"name": { "str": "bandaged impalement" },
"description": "Through what can only be described as a medical miracle, you have survived having one of your limbs impaled through. All that remains is to walk the long road to recovery.",
"progress_timer": {
"id": "bandaged_stab_old_bad",
"time": [ "72 hours", "96 hours" ],
"message": "Your impaled %s has begun to close, but the dressing is old and in need of changing."
}
},
{
"id": "bandaged_stab_old_small",
"copy-from": "clean_stab_small",
"type": "wound",
"name": { "str": "bandaged puncture (old dressing)", "str_pl": "bandaged punctures (old dressing)" },
"description": "The puncture on your limb is no longer as deep, but the dressing has grown old and is in need of replacing."
},
{
"id": "bandaged_stab_old_medium",
"copy-from": "clean_stab_medium",
"type": "wound",
"name": { "str": "bandaged deep puncture (old dressing)", "str_pl": "bandaged deep punctures (old dressing)" },
"description": "What was once a stab wound is now more adequately describe as a rather deep puncture as it heals, but the dressing has grown old and is in need of replacing."
},
{
"id": "bandaged_stab_old_bad",
"copy-from": "clean_stab_bad",
"type": "wound",
"name": { "str": "bandaged stab (old dressing)", "str_pl": "bandaged stabs (old dressing)" },
"description": "While the hole in your limb has closed, the road to recovery is still ongoing. The dressing has grown old and is in need of replacing."
}
]
+66 -36
View File
@@ -3,120 +3,150 @@
"id": "bleed_stab_small_fix",
"copy-from": "bleed_wound_medium",
"type": "wound_fix",
"name": "stop the bleeding",
"description": "Stop the bleeding of your stab.",
"name": "Staunch the bleeding",
"description": "Use an absorbant material to apply pressure to the puncture and stop the bleeding.",
"wounds_removed": [ "bleeding_stab_small" ],
"wounds_added": [ "stab_small" ],
"success_msg": "The light stab isn't bleeding anymore."
"success_msg": "You apply pressure, and the flow of blood from the puncture stops."
},
{
"id": "bleed_stab_medium_fix",
"copy-from": "bleed_wound_difficult_medium",
"type": "wound_fix",
"name": "stop the bleeding",
"description": "Stop the bleeding of your stab.",
"name": "Staunch the bleeding",
"description": "Use an absorbant material to apply pressure to the deep puncture and stop the bleeding.",
"wounds_removed": [ "bleeding_stab_medium" ],
"wounds_added": [ "stab_medium" ],
"success_msg": "The stab isn't bleeding anymore."
"success_msg": "You apply pressure, and the flow of blood from the deep puncture stops."
},
{
"id": "bleed_stab_bad_fix",
"copy-from": "bleed_wound_difficult_bad",
"type": "wound_fix",
"name": "stop the bleeding",
"description": "Stop the bleeding of your deep stab.",
"name": "Staunch the bleeding",
"description": "Use an absorbant material to apply pressure to the stab wound and stop the bleeding.",
"wounds_removed": [ "bleeding_stab_bad" ],
"wounds_added": [ "stab_bad" ],
"success_msg": "The deep stab isn't bleeding anymore."
"success_msg": "You apply pressure, and the flow of blood from the stab wound stops."
},
{
"id": "bleed_stab_terrible_fix",
"copy-from": "bleed_wound_difficult_terrible",
"type": "wound_fix",
"name": "stop the bleeding",
"description": "Stop the bleeding of your horrible stab.",
"name": "Staunch the bleeding",
"description": "Use an absorbant material to apply pressure to your impaled limb and hope it stops the torrent of blood leaving your body.",
"wounds_removed": [ "bleeding_stab_terrible" ],
"wounds_added": [ "stab_terrible" ],
"success_msg": "The horrible stab isn't bleeding anymore."
"success_msg": "You spend a while applying pressure until the profuse bleeding is under control."
},
{
"id": "clean_stab_small_fix",
"copy-from": "clean_wound_small",
"type": "wound_fix",
"name": "clean the stab",
"description": "Clean your light stab.",
"name": "Flush the puncture",
"description": "Use water to irrigate and wash out foreign contaminants from the puncture.",
"wounds_removed": [ "stab_small" ],
"wounds_added": [ "clean_stab_small" ],
"success_msg": "The light stab is clean now. You should bandage it but it'll heal as is."
"success_msg": "You thoroughly flush your puncture with water to remove any foreign contaminants."
},
{
"id": "clean_stab_medium_fix",
"copy-from": "clean_wound_medium",
"type": "wound_fix",
"name": "clean the stab",
"description": "Clean your stab.",
"name": "Flush the deep puncture",
"description": "Use water to irrigate and wash out foreign contaminants from the deep puncture.",
"wounds_removed": [ "stab_medium" ],
"wounds_added": [ "clean_stab_medium" ],
"success_msg": "The stab is clean now. You should bandage it but it'll heal as is."
"success_msg": "You thoroughly flush your deep puncture with water to remove any foreign contaminants."
},
{
"id": "clean_stab_bad_fix",
"copy-from": "clean_wound_bad",
"type": "wound_fix",
"name": "clean the stab",
"description": "Clean your bad stab.",
"name": "Flush the stab wound",
"description": "Use water to irrigate and wash out foreign contaminants from the stab wound.",
"wounds_removed": [ "stab_bad" ],
"wounds_added": [ "clean_stab_bad" ],
"success_msg": "The bad stab is clean now. You should bandage it but it'll heal as is."
"success_msg": "You spend some time flushing out the stab wound to remove every last trace of contamination from the stab wound."
},
{
"id": "clean_stab_terrible_fix",
"copy-from": "clean_wound_terrible",
"type": "wound_fix",
"name": "clean the stab",
"description": "Clean your horrible stab.",
"name": "Flush your impaled limb",
"description": "Use water to flush out every last trace of contamination from your impalement.",
"wounds_removed": [ "stab_terrible" ],
"wounds_added": [ "clean_stab_terrible" ],
"success_msg": "The horrible stab is clean now. You should bandage it but it'll heal as is."
"success_msg": "You spend quite a while flushing water through the hole in your limb, knowing that anything less than full flush of all contaminants will kill you from sepsis from a puncture this severe."
},
{
"id": "bandage_stab_small_fix",
"copy-from": "bandage_wound_small",
"type": "wound_fix",
"name": "bandage the stab",
"description": "Bandage your light stab.",
"name": "Bandage the puncture",
"description": "Use a bandage to cover and protect the puncture",
"wounds_removed": [ "clean_stab_small" ],
"wounds_added": [ "bandaged_stab_small" ],
"success_msg": "The light stab is bandaged, now, all you can do is wait for it to heal."
"success_msg": "You cover the puncture with a bandage."
},
{
"id": "bandage_stab_medium_fix",
"copy-from": "bandage_wound_medium",
"type": "wound_fix",
"name": "bandage the stab",
"description": "Bandage your stab.",
"name": "Bandage the deep puncture",
"description": "Use a bandage to cover and protect the deep puncture",
"wounds_removed": [ "clean_stab_medium" ],
"wounds_added": [ "bandaged_stab_medium" ],
"success_msg": "The stab is bandaged, now, all you can do is wait for it to heal."
"success_msg": "You cover the deep puncture with a bandage."
},
{
"id": "bandage_stab_bad_fix",
"copy-from": "bandage_wound_bad",
"type": "wound_fix",
"name": "bandage the stab",
"description": "Bandage your bad stab.",
"name": "Bandage the stab",
"description": "Wrap the stab wound in a bandage to cover and protect it.",
"wounds_removed": [ "clean_stab_bad" ],
"wounds_added": [ "bandaged_stab_bad" ],
"success_msg": "The bad stab is bandaged, now, all you can do is wait for it to heal."
"success_msg": "You wrap a bandage around your stab wound."
},
{
"id": "bandage_stab_terrible_fix",
"copy-from": "bandage_wound_terrible",
"type": "wound_fix",
"name": "bandage the stab",
"description": "Bandage your horrible stab.",
"name": "Bandage the impalement",
"description": "Use a bandage to protect the gaping hole in your limb from contamination.",
"wounds_removed": [ "clean_stab_terrible" ],
"wounds_added": [ "bandaged_stab_terrible" ],
"success_msg": "The horrible stab is bandaged, now, all you can do is wait for it to heal."
"success_msg": "You spend some time wrap the impaled limb in a bandage and making sure none of the wounded flesh is exposed to foreign contamination."
},
{
"id": "bandaged_stab_old_small_fix",
"copy-from": "bandage_stab_small_fix",
"type": "wound_fix",
"name": "Change aging dressing",
"description": "Swap out the dressing on your puncture.",
"wounds_removed": [ "bandaged_stab_old_small" ],
"wounds_added": [ "bandaged_stab_small" ],
"success_msg": "You remove the blood-stained bandage from your puncture and wrap a fresh one around it."
},
{
"id": "bandaged_stab_old_medium_fix",
"copy-from": "bandage_stab_medium_fix",
"type": "wound_fix",
"name": "Change aging dressing",
"description": "Swap out the dressing on your deep puncture.",
"wounds_removed": [ "bandaged_stab_old_medium" ],
"wounds_added": [ "bandaged_stab_medium" ],
"success_msg": "You remove the blood-soaked bandage from your deep puncture and wrap a fresh one around it."
},
{
"id": "bandage_stab_old_bad_fix",
"copy-from": "bandage_stab_bad_fix",
"type": "wound_fix",
"name": "Change aging dressing",
"description": "Swap out the dressing on your stab wound.",
"wounds_removed": [ "bandaged_stab_old_bad" ],
"wounds_added": [ "bandaged_stab_bad" ],
"success_msg": "You remove the blood-soaked bandage from your stab wound and wrap a fresh one around it."
}
]
+7
View File
@@ -132,6 +132,13 @@
"priority": 1,
"display_field": true
},
{
"id": "fd_dissection_work_zone",
"type": "field_type",
"intensity_levels": [ { "name": "dissection work zone", "sym": "x", "dangerous": false } ],
"priority": 1,
"display_field": true
},
{
"id": "fd_drink_loot_zone",
"type": "field_type",
+7
View File
@@ -48,6 +48,13 @@
"display_field": "fd_disassembly_work_zone",
"description": "Items in this zone are marked for disassembly."
},
{
"id": "DISSECT",
"type": "LOOT_ZONE",
"name": "Work: Dissect Corpses",
"display_field": "fd_dissection_work_zone",
"description": "Corpses in this zone are marked for dissection."
},
{
"id": "FARM_PLOT",
"type": "LOOT_ZONE",
@@ -195,7 +195,7 @@
"spell_class": "TELEKINETIC",
"magic_type": "mom_psionics",
"skill": "metaphysics",
"flags": [ "PSIONIC", "RANDOM_DAMAGE", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX" ],
"flags": [ "PSIONIC", "RANDOM_DAMAGE", "NO_PROJECTILE", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX" ],
"difficulty": 2,
"max_level": { "math": [ "mom_telekinesis_max_power_formula()" ] },
"effect": "attack",
-84
View File
@@ -84,89 +84,5 @@
"max": 5
}
]
},
{
"id": "dissect_ierde_single",
"type": "harvest",
"message": "With cuts and pulls equally similar to both extraction and vandalism, you scrape together the most important parts of the creature.",
"entries": [ { "drop": "ierde_sample_single", "type": "mutagen_group" } ]
},
{
"id": "dissect_ierde_small",
"type": "harvest",
"message": "With cuts and pulls equally similar to both extraction and vandalism, you scrape together the most important parts of the creature.",
"entries": [ { "drop": "ierde_sample_small", "type": "mutagen_group" } ]
},
{
"id": "dissect_undine_single",
"type": "harvest",
"message": "With cuts and pulls equally similar to both extraction and vandalism, you scrape together the most important parts of the creature.",
"entries": [ { "drop": "undine_sample_single", "type": "mutagen_group" } ]
},
{
"id": "dissect_undine_small",
"type": "harvest",
"message": "With cuts and pulls equally similar to both extraction and vandalism, you scrape together the most important parts of the creature.",
"entries": [ { "drop": "undine_sample_small", "type": "mutagen_group" } ]
},
{
"id": "dissect_undine_large",
"type": "harvest",
"message": "With cuts and pulls equally similar to both extraction and vandalism, you scrape together the most important parts of the creature.",
"entries": [ { "drop": "undine_sample_large", "type": "mutagen_group" } ]
},
{
"id": "dissect_arvore_single",
"type": "harvest",
"message": "With cuts and pulls equally similar to both extraction and vandalism, you scrape together the most important parts of the creature.",
"entries": [ { "drop": "arvore_sample_single", "type": "mutagen_group" } ]
},
{
"id": "dissect_arvore_small",
"type": "harvest",
"message": "With cuts and pulls equally similar to both extraction and vandalism, you scrape together the most important parts of the creature.",
"entries": [ { "drop": "arvore_sample_small", "type": "mutagen_group" } ]
},
{
"id": "dissect_arvore_large",
"type": "harvest",
"message": "With cuts and pulls equally similar to both extraction and vandalism, you scrape together the most important parts of the creature.",
"entries": [ { "drop": "arvore_sample_large", "type": "mutagen_group" } ]
},
{
"id": "dissect_arvore_huge",
"type": "harvest",
"message": "With cuts and pulls equally similar to both extraction and vandalism, you scrape together the most important parts of the creature.",
"entries": [ { "drop": "arvore_sample_huge", "type": "mutagen_group" } ]
},
{
"id": "dissect_salamander_single",
"type": "harvest",
"message": "With cuts and pulls equally similar to both extraction and vandalism, you scrape together the most important parts of the creature.",
"entries": [ { "drop": "salamander_sample_single", "type": "mutagen_group" } ]
},
{
"id": "dissect_salamander_large",
"type": "harvest",
"message": "With cuts and pulls equally similar to both extraction and vandalism, you scrape together the most important parts of the creature.",
"entries": [ { "drop": "salamander_sample_large", "type": "mutagen_group" } ]
},
{
"id": "dissect_homullus_single",
"type": "harvest",
"message": "With cuts and pulls equally similar to both extraction and vandalism, you scrape together the most important parts of the creature.",
"entries": [ { "drop": "homullus_sample_single", "type": "mutagen_group" } ]
},
{
"id": "dissect_sylph_single",
"type": "harvest",
"message": "With cuts and pulls equally similar to both extraction and vandalism, you scrape together the most important parts of the creature.",
"entries": [ { "drop": "sylph_sample_single", "type": "mutagen_group" } ]
},
{
"id": "dissect_sylph_large",
"type": "harvest",
"message": "With cuts and pulls equally similar to both extraction and vandalism, you scrape together the most important parts of the creature.",
"entries": [ { "drop": "sylph_sample_large", "type": "mutagen_group" } ]
}
]
+5 -4
View File
@@ -1720,9 +1720,9 @@
"health_chance": [ 30 ],
"h_mod_min": [ 1 ],
"h_mod_chance": [ 80 ],
"health_tick": [ 30 ],
"healing_rate": [ 2 ]
}
"health_tick": [ 30 ]
},
"enchantments": [ { "values": [ { "value": "REGEN_HP", "multiply": 1 }, { "value": "REGEN_WOUND", "multiply": 1 } ] } ]
},
{
"type": "effect_type",
@@ -3676,7 +3676,8 @@
{ "value": "SPEED", "multiply": -0.25 },
{ "value": "ARMOR_ALL", "multiply": 0.1 },
{ "value": "VISION_RANGE", "multiply": -0.35 },
{ "value": "REGEN_HP", "multiply": -0.95 }
{ "value": "REGEN_HP", "multiply": -0.95 },
{ "value": "REGEN_WOUND", "multiply": -0.95 }
]
}
],
@@ -89,6 +89,16 @@
"rating": "good",
"flags": [ "INFECTION_RECOVERY" ]
},
{
"type": "effect_type",
"id": "effect_xe_light_of_newborn_star_protections",
"//": "Hidden effect, used when wielding Light of a New-Born Star",
"name": [ "" ],
"desc": [ "" ],
"rating": "good",
"removes_effects": [ "blind", "deaf" ],
"flags": [ "GLARE_RESIST", "IMMUNE_HEARING_DAMAGE" ]
},
{
"type": "effect_type",
"id": "effect_xe_nonhuman_super_soldier_serum_immune",
@@ -0,0 +1,11 @@
[
{
"type": "effect_type",
"id": "effect_xe_fae_unique_weapon_moonshadow",
"name": [ "Dark of the Moon" ],
"desc": [ "You can see perfectly in the dark." ],
"rating": "good",
"enchantments": [ { "values": [ { "value": "NIGHT_VIS", "add": 30 } ] } ],
"flags": [ "READ_IN_DARKNESS", "CRAFT_IN_DARKNESS" ]
}
]
@@ -6,5 +6,27 @@
"desc": [ "Your armor has been reduced." ],
"rating": "bad",
"enchantments": [ { "values": [ { "value": "WEAKPOINT_ACCURACY", "multiply": 0.4 } ] } ]
},
{
"type": "effect_type",
"id": "effect_xe_crimson_rain_buff",
"name": [ "Sanguine Empowerment" ],
"desc": [ "Crimson Rain has empowered you." ],
"rating": "good",
"max_intensity": 5,
"int_add_val": 1,
"show_intensity": true,
"enchantments": [
{
"values": [
{
"value": "WEAKPOINT_ACCURACY",
"multiply": { "math": [ "u_effect_intensity('effect_xe_crimson_rain_buff') * 0.15" ] }
},
{ "value": "SPEED", "add": { "math": [ "u_effect_intensity('effect_xe_crimson_rain_buff') * 3" ] } },
{ "value": "ARMOR_ALL", "add": { "math": [ "u_effect_intensity('effect_xe_crimson_rain_buff') * -1" ] } }
]
}
]
}
]
+6
View File
@@ -86,5 +86,11 @@
"id": "MAGICAL_MIND_PROTECTION",
"type": "json_flag",
"//": "Your mind is protected from attack due to magic. The same as the Magiclysm flag for compatibility"
},
{
"id": "CRYOGENIC_ROT",
"type": "json_flag",
"//": "Overwrite from Aftershock",
"info": "This item <info>is fading fast</info> and <bad>cannot be preserved</bad>."
}
]
@@ -235,7 +235,13 @@
"subtype": "collection",
"entries": [
{ "group": "changeling_lord_death_drops", "prob": 100 },
{ "item": "spring_lord_estoc", "prob": 100, "damage": [ 1, 5 ] }
{
"distribution": [
{ "item": "spring_lord_estoc", "prob": 100, "damage": [ 1, 5 ] },
{ "group": "changeling_lord_unique_blades", "prob": 2 }
],
"prob": 100
}
]
},
{
@@ -244,7 +250,13 @@
"subtype": "collection",
"entries": [
{ "group": "changeling_lord_death_drops", "prob": 100 },
{ "item": "summer_lord_estoc", "prob": 100, "damage": [ 1, 5 ] }
{
"distribution": [
{ "item": "summer_lord_estoc", "prob": 100, "damage": [ 1, 5 ] },
{ "group": "changeling_lord_unique_blades", "prob": 2 }
],
"prob": 100
}
]
},
{
@@ -253,7 +265,13 @@
"subtype": "collection",
"entries": [
{ "group": "changeling_lord_death_drops", "prob": 100 },
{ "item": "autumn_lord_estoc", "prob": 100, "damage": [ 1, 5 ] }
{
"distribution": [
{ "item": "autumn_lord_estoc", "prob": 98, "damage": [ 1, 5 ] },
{ "group": "changeling_lord_unique_blades", "prob": 2 }
],
"prob": 100
}
]
},
{
@@ -262,7 +280,25 @@
"subtype": "collection",
"entries": [
{ "group": "changeling_lord_death_drops", "prob": 100 },
{ "item": "winter_lord_estoc", "prob": 100, "damage": [ 1, 5 ] }
{
"distribution": [
{ "item": "winter_lord_estoc", "prob": 98, "damage": [ 1, 5 ] },
{ "group": "changeling_lord_unique_blades", "prob": 2 }
],
"prob": 100
}
]
},
{
"id": "changeling_lord_unique_blades",
"type": "item_group",
"subtype": "distribution",
"entries": [
{ "item": "fae_unique_weapon_last_blossom_fall", "prob": 1 },
{ "item": "fae_unique_weapon_crimson_rain", "prob": 1 },
{ "item": "fae_unique_weapon_light_of_newborn_star", "prob": 1 },
{ "item": "fae_unique_weapon_dawnrazor", "prob": 1 },
{ "item": "fae_unique_weapon_moonshadow", "prob": 1 }
]
},
{
+1 -1
View File
@@ -99,7 +99,7 @@
"description": "This sword is made all of a single piece of wood and so black any details are lost. Some kind of shimmering leather is wrapped around the grip.",
"material": [ { "type": "wood", "portion": 1 } ],
"price": "1 kUSD 350 USD",
"price_postapoc": "500 USD",
"price_postapoc": "50 USD",
"proportional": { "melee_damage": { "stab": 0.9 } },
"extend": { "flags": [ "WOODEN_WEAPON", "NO_REPAIR", "RELIC_PINK" ] },
"delete": { "flags": "CONDUCTIVE" },
@@ -0,0 +1,129 @@
[
{
"id": "fae_unique_weapon_last_blossom_fall",
"type": "ITEM",
"subtypes": [ "TOOL", "ARTIFACT" ],
"name": { "str": "Last Blossom's Fall" },
"copy-from": "mc_arming_sword",
"looks_like": "bokken",
"description": "This sword is made all of a single piece of wood and so black any details are lost. Some kind of shimmering leather is wrapped around the grip, and the crossguard has a spray of pinkish-orange blossoms growing from it.",
"material": [ { "type": "wood", "portion": 1 } ],
"price": "1 kUSD 350 USD",
"price_postapoc": "50 USD",
"proportional": { "melee_damage": { "stab": 0.7 } },
"extend": { "flags": [ "WOODEN_WEAPON", "NO_RELOAD", "NO_UNLOAD", "TARDIS", "NO_REPAIR", "UNBREAKABLE_MELEE", "RELIC_PINK" ] },
"delete": { "flags": "CONDUCTIVE" },
"relative": { "melee_damage": { "biological": 12 } },
"techniques": [ "WBLOCK_2" ],
"faults": [ ],
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "glamour_charge": 4 } } ],
"charge_info": { "recharge_type": "forest", "time": "6 h", "regenerate_ammo": true },
"charges_per_use": 1,
"passive_effects": [
{
"has": "WIELD",
"condition": "ALWAYS",
"values": [
{ "value": "FALL_DAMAGE", "multiply": -1 },
{ "value": "BONUS_DODGE", "add": 1 },
{ "value": "FREE_DODGES", "add": 1 }
]
}
],
"use_action": {
"type": "cast_spell",
"spell_id": "fae_unique_weapon_last_blossom_fall_spell",
"no_fail": true,
"need_wielding": true,
"level": 0
}
},
{
"id": "fae_unique_weapon_crimson_rain",
"copy-from": "mc_katana",
"type": "ITEM",
"subtypes": [ "TOOL", "ARTIFACT" ],
"name": { "str": "Crimson Rain" },
"description": "A slightly-curved, single-edged sword, unremarkable except it appears to be made entirely of flowing blood. Despite pulsing as the blood flows, its outlines never waver.",
"material": [ { "type": "blood", "portion": 1 } ],
"extend": { "flags": [ "NO_REPAIR", "NO_RELOAD", "NO_UNLOAD", "TARDIS", "UNBREAKABLE_MELEE", "RELIC_PINK", "TRADER_AVOID" ] },
"techniques": [ "WBLOCK_2", "RAPID", "TEC_WEAPON_CRIMSON_RAIN_BLEEDING", "TEC_WEAPON_CRIMSON_RAIN_BLOODSTRIKE" ],
"faults": [ ],
"passive_effects": [ { "has": "WIELD", "condition": "ALWAYS", "values": [ { "value": "BLEEDING_RATE", "multiply": -1 } ] } ]
},
{
"id": "fae_unique_weapon_light_of_newborn_star",
"copy-from": "mc_arming_sword",
"type": "ITEM",
"subtypes": [ "TOOL", "ARTIFACT" ],
"name": { "str": "Light of a New-Born Star" },
"description": "A single-handed sword forged from some silvery metal that shines faintly with a clear, cold light. Parts of the metal sometimes flare up in a brighter white light for a moment. A golden sunburst pattern is worked where the crossguard and the blade meet.",
"extend": { "flags": [ "NO_REPAIR", "NO_RELOAD", "NO_UNLOAD", "TARDIS", "UNBREAKABLE_MELEE", "RELIC_PINK", "TRADER_AVOID" ] },
"techniques": [ "WBLOCK_2" ],
"faults": [ ],
"replace_materials": { "mc_steel": "moon_tears" },
"light": 5,
"passive_effects": [
{
"has": "WIELD",
"condition": "ALWAYS",
"values": [ { "value": "LUMINATION", "add": 40 } ],
"hit_you_effect": [
{
"id": "fae_unique_weapon_light_of_newborn_star_flashbang_spell",
"once_in": 8,
"message": "Your sword flares with blazing light!"
}
],
"ench_effects": [ { "effect": "effect_xe_light_of_newborn_star_protections", "intensity": 1 } ]
}
]
},
{
"id": "fae_unique_weapon_dawnrazor",
"copy-from": "hc_arming_sword",
"type": "ITEM",
"subtypes": [ "TOOL", "ARTIFACT" ],
"name": { "str": "Dawnrazor" },
"description": "A tongue of flame, frozen in place, seemingly plucked from the heart of a bonfire and hammered into the shape of a sword. It emits a flickering reddish glow and is warm to the touch.",
"material": [ { "type": "frozen_flames", "portion": 1 } ],
"extend": { "flags": [ "NO_REPAIR", "NO_RELOAD", "NO_UNLOAD", "TARDIS", "UNBREAKABLE_MELEE", "RELIC_PINK", "TRADER_AVOID" ] },
"techniques": [ "WBLOCK_2", "RAPID", "TEC_WEAPON_DAWNRAZOR_BURN_SUNDEATH" ],
"faults": [ ],
"light": 5,
"relative": { "melee_damage": { "heat": 3 } }
},
{
"id": "fae_unique_weapon_moonshadow",
"copy-from": "ch_zweihander",
"type": "ITEM",
"subtypes": [ "TOOL", "ARTIFACT" ],
"name": { "str": "Moonshadow" },
"description": "A two-handed sword forged from some silvery metal that shines faintly with a clear, cold light. The crossguard is a crescent moon, the thinnest sliver of silver, and the pommel is a full moon, with a clear gem set in its center. The grip is wrapped in thin strands of wire.",
"replace_materials": { "ch_steel": "moon_tears", "kevlar": "leather" },
"extend": { "flags": [ "NO_REPAIR", "NO_RELOAD", "NO_UNLOAD", "TARDIS", "UNBREAKABLE_MELEE", "RELIC_PINK", "TRADER_AVOID" ] },
"faults": [ ],
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "glamour_charge": 12 } } ],
"charge_info": { "recharge_type": "new_moon", "time": "30 m", "regenerate_ammo": true },
"charges_per_use": 1,
"passive_effects": [
{
"has": "WIELD",
"condition": { "or": [ { "not": "is_day" }, { "u_has_effect": "effect_xe_fae_unique_weapon_moonshadow" } ] },
"melee_damage_bonus": [ { "type": "cold", "add": 7 } ],
"values": [
{ "value": "NIGHT_VIS", "add": 8 },
{ "value": "OVERMAP_SIGHT", "add": 2 },
{ "value": "WEAKPOINT_ACCURACY", "multiply": 0.8 }
]
}
],
"use_action": {
"type": "cast_spell",
"spell_id": "fae_unique_weapon_moonshadow_spell",
"no_fail": true,
"need_wielding": true,
"level": 0
}
}
]
@@ -1,62 +1,126 @@
[
{
"type": "ITEM",
"subtypes": [ "COMESTIBLE" ],
"comestible_type": "INVALID",
"//": "IDs are legacy.",
"id": "ierde_sample",
"copy-from": "mutagen_sample",
"color": "red",
"name": { "str": "ierde sample" },
"description": "A sample of rare earths.",
"looks_like": "medical_sample",
"color": "white",
"name": { "str": "ierde essence" },
"description": "The essence of the living earth.",
"looks_like": "onyx",
"price": "10 USD",
"price_postapoc": "50 cent",
"flags": [ "NO_SALVAGE", "INEDIBLE", "CRYOGENIC_ROT", "NO_AUTO_CONSUME" ],
"symbol": "%",
"weight": "114 g",
"volume": "250 ml",
"spoils_in": "3 days",
"category": "spare_parts",
"material": [ "fae_flesh", "fae_blood", "bone" ]
},
{
"type": "ITEM",
"id": "arvore_sample",
"copy-from": "mutagen_sample",
"color": "red",
"name": { "str": "arvore sample" },
"description": "A sample of verdant plant life.",
"looks_like": "medical_sample",
"copy-from": "ierde_sample",
"color": "green",
"name": { "str": "arvore essence" },
"description": "The essence of the ancient forests.",
"looks_like": "emerald",
"material": [ "fae_flesh", "fae_blood", "bone" ]
},
{
"type": "ITEM",
"id": "salamander_sample",
"copy-from": "mutagen_sample",
"copy-from": "ierde_sample",
"color": "red",
"name": { "str": "salamander sample" },
"description": "A sample of fiery passion.",
"looks_like": "medical_sample",
"name": { "str": "salamander essence" },
"description": "The essence of the raging flames.",
"looks_like": "ruby",
"material": [ "fae_flesh", "fae_blood", "bone" ]
},
{
"type": "ITEM",
"id": "undine_sample",
"copy-from": "mutagen_sample",
"color": "red",
"name": { "str": "undine sample" },
"description": "A sample of deep waters.",
"looks_like": "medical_sample",
"copy-from": "ierde_sample",
"color": "blue",
"name": { "str": "undine essence" },
"description": "The essence of the deep waters.",
"looks_like": "sapphire",
"material": [ "fae_flesh", "fae_blood", "bone" ]
},
{
"type": "ITEM",
"id": "homullus_sample",
"copy-from": "mutagen_sample",
"color": "red",
"name": { "str": "homullus sample" },
"description": "A sample of lifelike dolls.",
"looks_like": "medical_sample",
"copy-from": "ierde_sample",
"color": "magenta",
"name": { "str": "homullus essence" },
"description": "The essence of lifelike dolls.",
"looks_like": "diamond",
"material": [ "fae_flesh", "fae_blood", "bone" ]
},
{
"type": "ITEM",
"id": "sylph_sample",
"copy-from": "mutagen_sample",
"color": "red",
"name": { "str": "sylph sample" },
"description": "A sample of untamed air.",
"looks_like": "medical_sample",
"copy-from": "ierde_sample",
"color": "light_gray",
"name": { "str": "sylph essence" },
"description": "The essence of the untamed air.",
"looks_like": "citrine",
"material": [ "fae_flesh", "fae_blood", "bone" ]
},
{
"type": "ITEM",
"id": "arvore_plantkin_ingredient",
"name": { "str": "ethereal arvore essence" },
"description": "The pure essence of the ancient forests.",
"copy-from": "diamond",
"looks_like": "emerald",
"material": [ "fae_flesh", "fae_blood", "bone" ]
},
{
"type": "ITEM",
"id": "salamander_flamekin_ingredient",
"name": { "str": "ethereal salamander essence" },
"description": "The pure essence of the raging flames.",
"copy-from": "diamond",
"looks_like": "ruby",
"material": [ "mana" ]
},
{
"type": "ITEM",
"id": "undine_waterkin_ingredient",
"name": { "str": "ethereal undine essence" },
"description": "The pure essence of the deep waters.",
"copy-from": "diamond",
"looks_like": "sapphire",
"material": [ "mana" ]
},
{
"type": "ITEM",
"id": "homullus_dollkin_ingredient",
"name": { "str": "ethereal homullus essence" },
"description": "The pure essence of the lifelike dolls.",
"copy-from": "diamond",
"looks_like": "diamond",
"material": [ "mana" ]
},
{
"type": "ITEM",
"id": "sylph_airkin_ingredient",
"name": { "str": "ethereal sylph essence" },
"description": "The pure essence of the untamed air.",
"copy-from": "diamond",
"looks_like": "citrine",
"material": [ "mana" ]
},
{
"type": "ITEM",
"id": "ierde_earthkin_ingredient",
"name": { "str": "ethereal ierde essence" },
"description": "The pure essence of the untamed earth.",
"copy-from": "diamond",
"looks_like": "onyx",
"material": [ "mana" ]
}
]
@@ -0,0 +1,59 @@
[
{
"type": "technique",
"id": "TEC_WEAPON_CRIMSON_RAIN_BLEEDING",
"name": "Crimson Rend",
"melee_allowed": true,
"weighting": -3,
"messages": [ "Crimson Rain flashes into %s, leaving bloody wounds!", "<npcname> slashes into %s with Crimson Rain!" ],
"description": "Bonus cut damage and arpen",
"unarmed_allowed": false,
"reach_ok": false,
"crit_ok": true,
"attack_vectors": [ "vector_null" ],
"tech_effects": [ { "id": "bleed", "chance": 100, "duration": 120, "on_damage": true, "message": "" } ],
"flat_bonuses": [
{ "stat": "damage", "type": "cut", "scaling-stat": "melee", "scale": 0.5 },
{ "stat": "arpen", "type": "cut", "scaling-stat": "melee", "scale": 1 }
]
},
{
"type": "technique",
"id": "TEC_WEAPON_CRIMSON_RAIN_BLOODSTRIKE",
"name": "Blooddrinker",
"melee_allowed": true,
"weighting": -2,
"messages": [ "Crimson Rain drinks the flowing blood!", "<npcname> slashes into %s with Crimson Rain!" ],
"description": "Provides bonuses when hitting bleeding enemies.",
"unarmed_allowed": false,
"reach_ok": false,
"crit_tec": true,
"attack_vectors": [ "vector_null" ],
"condition": { "or": [ { "npc_has_effect": "bleed" }, "npc_is_bleeding" ] },
"eocs": [
{
"id": "EOC_TEC_WEAPON_CRIMSON_RAIN_BLOODSTRIKE",
"condition": { "math": [ "u_effect_intensity('effect_xe_crimson_rain_buff') < 5" ] },
"effect": { "u_add_effect": "effect_xe_crimson_rain_buff", "duration": "10 s" }
}
]
},
{
"type": "technique",
"id": "TEC_WEAPON_DAWNRAZOR_BURN_SUNDEATH",
"name": "Dawnrazor's Searing Light",
"melee_allowed": true,
"weighting": 2,
"messages": [ "Dawnrazor sears the %s with fiery light!", "<npcname> strikes %s with Dawnrazor!" ],
"description": "Burns enemies with the light of the sun.",
"unarmed_allowed": false,
"reach_ok": false,
"crit_ok": true,
"attack_vectors": [ "vector_null" ],
"condition": { "npc_has_flag": "SUNDEATH" },
"flat_bonuses": [
{ "stat": "damage", "type": "heat", "scaling-stat": "melee", "scale": 2.5 },
{ "stat": "damage", "type": "heat", "scaling-stat": "gramarye", "scale": 1 }
]
}
]
+16
View File
@@ -342,5 +342,21 @@
"resist": { "bash": 1, "cut": 3, "acid": 8, "heat": 4, "bullet": 6 },
"//1": "Once it's dead it requires dreamstuff to hold a shape. The material isn't dead, just the mind controlling it.",
"repair_difficulty": 3
},
{
"type": "material",
"id": "frozen_flames",
"name": { "str": "Frozen Flames" },
"density": 9,
"specific_heat_liquid": 0.82,
"specific_heat_solid": 0.45,
"latent_heat": 1000,
"conductive": true,
"chip_resist": 40,
"dmg_adj": [ "marked", { "ctxt": "adjective", "str": "dented" }, "smashed", "shattered" ],
"bash_dmg_verb": { "ctxt": "verb", "str": "dented" },
"cut_dmg_verb": "scratched",
"resist": { "bash": 4, "cut": 5, "acid": 1, "heat": 75, "bullet": 2 },
"repair_difficulty": 7
}
]
@@ -34,8 +34,8 @@
"weakpoint_sets": [ "wps_alien_biology" ],
"families": [ "prof_alien_biology" ],
"harvest": "stoneling",
"dissect": "dissect_ierde_single",
"special_attacks": [ [ "scratch", 20 ] ],
"death_drops": { "subtype": "collection", "items": [ { "group": "ierde_sample_single", "prob": 20 } ] },
"flags": [ "SEES", "HEARS", "BASHES", "FAE_CREATURE", "GROUP_BASH", "NO_BREATHE", "PUSH_MON" ]
},
{
@@ -71,7 +71,7 @@
"anger_triggers": [ "FRIEND_ATTACKED" ],
"fear_triggers": [ "SOUND", "PLAYER_CLOSE" ],
"harvest": "fae_furred",
"dissect": "dissect_ierde_single",
"death_drops": { "subtype": "collection", "groups": [ [ "ierde_sample_single", 25 ] ] },
"flags": [ "DIGS", "HEARS", "FAE_CREATURE", "GOODHEARING", "ATTACK_LOWER" ]
},
{
@@ -119,7 +119,7 @@
"xe_cold_iron_stab_damage": 0
},
"anger_triggers": [ "FRIEND_ATTACKED" ],
"dissect": "dissect_ierde_small",
"death_drops": { "subtype": "collection", "groups": [ [ "ierde_sample_single", 30 ] ] },
"weakpoint_sets": [ "wps_alien_biology" ],
"families": [ "prof_alien_biology" ],
"flags": [
@@ -170,7 +170,14 @@
"weakpoint_sets": [ "wps_alien_biology" ],
"families": [ "prof_alien_biology" ],
"hp": 10,
"death_drops": { "subtype": "collection", "groups": [ [ "produce", 100 ], [ "vertebrate_parts", 10 ] ] },
"death_drops": {
"subtype": "collection",
"items": [
{ "group": "produce", "prob": 100 },
{ "group": "vertebrate_parts", "prob": 10 },
{ "group": "undine_sample_single", "prob": 20 }
]
},
"description": "A small dog-sized furry lizard colored in ocean blues. It hisses and then spits gouts of water at whatever attracts its ire.",
"special_attacks": [
{
@@ -185,7 +192,6 @@
],
"flags": [ "SEES", "SMELLS", "HEARS", "FAE_CREATURE", "RANGED_ATTACKER", "PATH_AVOID_DANGER", "CLIMBS" ],
"harvest": "fae_furred",
"dissect": "dissect_undine_single",
"vision_day": 20,
"vision_night": 5,
"fear_triggers": [ "SOUND", "PLAYER_CLOSE", "FRIEND_DIED" ]
@@ -224,10 +230,11 @@
"families": [ "prof_alien_biology" ],
"hp": 20,
"flags": [ "SEES", "SMELLS", "HEARS", "FAE_CREATURE", "HIT_AND_RUN", "RANGED_ATTACKER", "PATH_AVOID_DANGER", "HARDTOSHOOT" ],
"harvest": "water_elemental",
"dissect": "dissect_undine_single",
"special_attacks": [ { "id": "ice_spray" } ],
"death_drops": [ { "item": "water", "charges": 25, "prob": 100 } ]
"death_drops": {
"subtype": "collection",
"items": [ { "item": "water", "charges": 25, "prob": 100 }, { "group": "undine_sample_single", "prob": 30 } ]
}
},
{
"id": "mon_undertow",
@@ -259,7 +266,10 @@
"anger_triggers": [ "PLAYER_CLOSE" ],
"weakpoint_sets": [ "wps_alien_biology" ],
"families": [ "prof_alien_biology" ],
"dissect": "dissect_undine_small",
"death_drops": {
"subtype": "collection",
"items": [ { "item": "water", "charges": 25, "prob": 100 }, { "group": "undine_sample_single", "prob": 30 } ]
},
"special_attacks": [
{
"id": "ranged_pull",
@@ -306,7 +316,7 @@
"fear_triggers": [ "SOUND" ],
"weakpoint_sets": [ "wps_alien_biology" ],
"families": [ "prof_alien_biology" ],
"dissect": "dissect_undine_small",
"death_drops": { "subtype": "collection", "items": [ { "group": "undine_sample_single", "prob": 35 } ] },
"special_attacks": [
{
"id": "mon_shabriri_blinding",
@@ -356,7 +366,14 @@
"weakpoint_sets": [ "wps_alien_biology" ],
"families": [ "prof_alien_biology" ],
"harvest": "water_elemental",
"dissect": "dissect_undine_large",
"death_drops": {
"subtype": "collection",
"items": [
{ "group": "undine_sample_huge", "prob": 25 },
{ "group": "undine_sample_large", "prob": 65 },
{ "group": "undine_sample_small", "prob": 100 }
]
},
"special_attacks": [
{ "id": "smash", "throw_strength": 96 },
{
@@ -419,7 +436,7 @@
"harvest": "rat_with_skull_arvore",
"weakpoint_sets": [ "wps_alien_biology" ],
"families": [ "prof_alien_biology" ],
"dissect": "dissect_arvore_single",
"death_drops": { "subtype": "collection", "items": [ { "group": "arvore_sample_single", "prob": 30 } ] },
"special_attacks": [ { "id": "bio_op_takedown", "cooldown": 20 } ],
"anger_triggers": [ "SOUND", "PLAYER_CLOSE" ],
"flags": [ "SEES", "HEARS", "SMELLS", "ANIMAL", "FAE_CREATURE", "PATH_AVOID_DANGER", "HIT_AND_RUN", "WARM" ]
@@ -458,7 +475,7 @@
"dodge": 5,
"bleed_rate": 10,
"harvest": "triffid_small",
"dissect": "dissect_arvore_single",
"death_drops": { "subtype": "collection", "items": [ { "group": "arvore_sample_single", "prob": 35 } ] },
"flags": [ "HEARS", "GOODHEARING", "NOHEAD", "FAE_CREATURE", "HARDTOSHOOT", "GRABS", "SWIMS", "PLASTIC", "WATER_CAMOUFLAGE" ]
},
{
@@ -479,7 +496,10 @@
"harvest": "harvest_thornbear",
"weakpoint_sets": [ "wps_alien_biology" ],
"families": [ "prof_alien_biology" ],
"dissect": "dissect_arvore_large",
"death_drops": {
"subtype": "collection",
"items": [ { "group": "arvore_sample_large", "prob": 55 }, { "group": "arvore_sample_small", "prob": 85 } ]
},
"special_attacks": [
{
"type": "bite",
@@ -543,9 +563,16 @@
"monster_message": "%1$s gestures and you hear the creak of growing wood!"
}
],
"death_drops": { "subtype": "collection", "items": [ { "item": "treesung_pike", "prob": 30, "damage": [ 1, 5 ] } ] },
"death_drops": {
"subtype": "collection",
"items": [
{ "item": "treesung_pike", "prob": 30, "damage": [ 1, 5 ] },
{ "group": "arvore_sample_huge", "prob": 25 },
{ "group": "arvore_sample_large", "prob": 65 },
{ "group": "arvore_sample_small", "prob": 100 }
]
},
"anger_triggers": [ "FRIEND_DIED", "PLAYER_CLOSE", "FRIEND_ATTACKED", "HURT", "FIRE" ],
"dissect": "dissect_arvore_huge",
"flags": [
"SEES",
"HEARS",
@@ -599,7 +626,10 @@
"weakpoint_sets": [ "wps_alien_biology" ],
"families": [ "prof_alien_biology" ],
"hp": 10,
"death_drops": { "subtype": "collection", "groups": [ [ "produce", 100 ], [ "vertebrate_parts", 10 ] ] },
"death_drops": {
"subtype": "collection",
"groups": [ [ "produce", 100 ], [ "vertebrate_parts", 10 ], [ "salamander_sample_single", 35 ] ]
},
"description": "A small dog-sized furry lizard colored in fiery reds. It hisses and then spits napalm-like fluid at whatever attracts its ire.",
"special_attacks": [
{
@@ -621,7 +651,6 @@
"CLIMBS"
],
"harvest": "fae_furred",
"dissect": "dissect_salamander_single",
"vision_day": 20,
"vision_night": 5,
"fear_triggers": [ "SOUND", "PLAYER_CLOSE", "FRIEND_DIED" ]
@@ -671,11 +700,12 @@
"HARDTOSHOOT"
],
"harvest": "fae_furred",
"dissect": "dissect_salamander_single",
"death_drops": { "subtype": "collection", "groups": [ [ "salamander_sample_single", 30 ] ] },
"emit_fields": [ { "emit_id": "emit_smoke_plume", "delay": "1 s" } ]
},
{
"id": "mon_salamander_firebird",
"//": "No drops--produced by a Salamander spell",
"type": "MONSTER",
"name": { "str": "firebird" },
"description": "A bird flitting through the air, glowing brightly. Its outline is obscured by the flames that ripple along its wings and body.",
@@ -701,7 +731,6 @@
"weakpoint_sets": [ "wps_alien_biology" ],
"families": [ "prof_alien_biology" ],
"harvest": "fae_flying",
"dissect": "dissect_salamander_single",
"special_attacks": [
{
"id": "mon_salamander_firebird_death_explosion",
@@ -752,7 +781,7 @@
"weakpoint_sets": [ "wps_alien_biology" ],
"families": [ "prof_alien_biology" ],
"harvest": "fae_flying",
"dissect": "dissect_salamander_large",
"death_drops": { "subtype": "collection", "groups": [ [ "salamander_sample_small", 55 ], [ "salamander_sample_large", 85 ] ] },
"emit_fields": [ { "emit_id": "emit_hot_air4_blast", "delay": "1 s" } ],
"special_attacks": [
{
@@ -812,12 +841,19 @@
"special_attacks": [ { "id": "salamagman_handaxe" } ],
"dodge": 2,
"harvest": "fae_changeling",
"dissect": "dissect_salamander_large",
"weakpoint_sets": [ "wps_alien_biology" ],
"families": [ "prof_alien_biology" ],
"anger_triggers": [ "FRIEND_ATTACKED", "FRIEND_DIED", "HURT" ],
"path_settings": { "avoid_traps": true, "avoid_sharp": true },
"death_drops": { "subtype": "collection", "groups": [ [ "mon_salamagman_death_drops", 40 ] ] },
"death_drops": {
"subtype": "collection",
"items": [
{ "group": "mon_salamagman_death_drops", "prob": 40 },
{ "group": "salamander_sample_large", "prob": 25 },
{ "group": "salamander_sample_small", "prob": 65 },
{ "group": "salamander_sample_single", "prob": 100 }
]
},
"flags": [ "SEES", "HEARS", "WARM", "BASHES", "PATH_AVOID_DANGER", "PATH_AVOID_FALL", "FIREPROOF" ],
"armor": {
"bash": 16,
@@ -853,12 +889,19 @@
"special_attacks": [ { "id": "salamagman_battleaxe" } ],
"dodge": 2,
"harvest": "fae_changeling",
"dissect": "dissect_salamander_large",
"weakpoint_sets": [ "wps_alien_biology" ],
"families": [ "prof_alien_biology" ],
"anger_triggers": [ "FRIEND_ATTACKED", "FRIEND_DIED", "HURT" ],
"path_settings": { "avoid_traps": true, "avoid_sharp": true },
"death_drops": { "subtype": "collection", "groups": [ [ "mon_salamagman_champion_death_drops", 40 ] ] },
"death_drops": {
"subtype": "collection",
"items": [
{ "group": "mon_salamagman_champion_death_drops", "prob": 40 },
{ "group": "salamander_sample_large", "prob": 35 },
{ "group": "salamander_sample_small", "prob": 75 },
{ "group": "salamander_sample_single", "prob": 100 }
]
},
"flags": [ "SEES", "HEARS", "WARM", "BASHES", "PATH_AVOID_DANGER", "PATH_AVOID_FALL", "FIREPROOF" ],
"armor": {
"bash": 16,
@@ -894,12 +937,19 @@
"special_attacks": [ { "id": "salamagman_macuahuitl" } ],
"dodge": 4,
"harvest": "fae_changeling",
"dissect": "dissect_salamander_large",
"weakpoint_sets": [ "wps_alien_biology" ],
"families": [ "prof_alien_biology" ],
"anger_triggers": [ "FRIEND_ATTACKED", "FRIEND_DIED", "HURT" ],
"path_settings": { "avoid_traps": true, "avoid_sharp": true },
"death_drops": { "subtype": "collection", "groups": [ [ "mon_salamagman_warlord_death_drops", 40 ] ] },
"death_drops": {
"subtype": "collection",
"items": [
{ "group": "mon_salamagman_warlord_death_drops", "prob": 40 },
{ "group": "salamander_sample_large", "prob": 35 },
{ "group": "salamander_sample_small", "prob": 75 },
{ "group": "salamander_sample_single", "prob": 100 }
]
},
"flags": [ "SEES", "HEARS", "WARM", "BASHES", "FLIES", "PATH_AVOID_DANGER", "PATH_AVOID_FALL", "FIREPROOF" ],
"armor": {
"bash": 16,
@@ -934,7 +984,7 @@
"melee_damage": [ { "damage_type": "bash", "amount": 0 } ],
"dodge": 1,
"harvest": "demihuman",
"dissect": "dissect_homullus_single",
"death_drops": { "subtype": "collection", "groups": [ [ "homullus_sample_single", 35 ] ] },
"fear_triggers": [ "HURT", "FIRE", "FRIEND_ATTACKED", "FRIEND_DIED" ],
"families": [ "prof_wp_demihuman" ],
"weakpoint_sets": [ "wps_humanoid_body", "wps_vital_organs", "wps_eyes" ],
@@ -968,7 +1018,7 @@
"vision_day": 25,
"vision_night": 5,
"harvest": "fae_furred",
"dissect": "dissect_homullus_single",
"death_drops": { "subtype": "collection", "groups": [ [ "homullus_sample_single", 35 ] ] },
"special_attacks": [
{
"type": "bite",
@@ -1022,6 +1072,14 @@
"FAE_CREATURE",
"PATH_AVOID_DANGER"
],
"death_drops": {
"subtype": "collection",
"items": [
{ "group": "homullus_sample_single", "prob": 100 },
{ "group": "homullus_sample_small", "prob": 75 },
{ "group": "homullus_sample_large", "prob": 40 }
]
},
"weakpoint_sets": [ "wps_humanoid_body", "wps_vital_organs", "wps_eyes", "wps_humanoid_head_small", "wps_xe_homullus_aleph" ],
"armor": { "bash": 15, "cut": 10, "bullet": 10 }
},
@@ -1072,7 +1130,7 @@
"vision_day": 45,
"vision_night": 5,
"harvest": "fae_flying",
"dissect": "dissect_sylph_single",
"death_drops": { "subtype": "collection", "items": [ { "group": "sylph_sample_single", "prob": 35 } ] },
"anger_triggers": [ "PLAYER_WEAK", "STALK" ],
"fear_triggers": [ "HURT", "FIRE" ],
"flags": [ "SWARMS", "HEARS", "SEES", "FAE_CREATURE", "FLIES", "GRABS", "PATH_AVOID_FIRE" ]
@@ -1104,7 +1162,7 @@
"special_attacks": [ { "type": "leap", "cooldown": 3, "max_range": 2, "allow_no_target": true }, { "id": "cut_throat" } ],
"material": [ "iflesh" ],
"harvest": "fae_flying",
"dissect": "dissect_sylph_single",
"death_drops": { "subtype": "collection", "items": [ { "group": "sylph_sample_single", "prob": 25 } ] },
"flags": [ "SEES", "HEARS", "NOHEAD", "FAE_CREATURE", "HARDTOSHOOT", "FLIES", "NO_BREATHE", "NOGIB", "HIT_AND_RUN", "SWARMS" ],
"armor": {
"bash": 0,
@@ -1159,7 +1217,14 @@
"families": [ "prof_alien_biology" ],
"anger_triggers": [ "PLAYER_WEAK", "FRIEND_ATTACKED" ],
"harvest": "fae_flying",
"dissect": "dissect_sylph_large",
"death_drops": {
"subtype": "collection",
"items": [
{ "group": "sylph_sample_single", "prob": 85 },
{ "group": "sylph_sample_small", "prob": 55 },
{ "group": "sylph_sample_large", "prob": 25 }
]
},
"flags": [
"SEES",
"HEARS",
@@ -517,6 +517,7 @@
"condition": { "and": [ "is_day", "u_is_outside" ] },
"values": [
{ "value": "REGEN_HP", "multiply": 0.5 },
{ "value": "REGEN_WOUND", "multiply": 0.5 },
{ "value": "REGEN_HP_AWAKE", "multiply": 0.2 },
{ "value": "MENDING_MODIFIER", "multiply": 1 }
],
@@ -543,6 +544,7 @@
"condition": { "and": [ "is_day", "u_is_outside" ] },
"values": [
{ "value": "REGEN_HP", "multiply": 0.5 },
{ "value": "REGEN_WOUND", "multiply": 0.5 },
{ "value": "REGEN_HP_AWAKE", "multiply": 0.2 },
{ "value": "REGEN_MANA", "multiply": 0.5 },
{ "value": "MENDING_MODIFIER", "multiply": 1 }
@@ -1104,7 +1106,6 @@
"category": [ "ARVORE" ],
"purifiable": false,
"threshreq": [ "THRESH_ARVORE" ],
"//": "Healing values copied from the Regeneration mutation",
"override_look": { "id": "t_tree", "tile_category": "terrain" },
"flags": [
"DEAF",
@@ -1168,6 +1169,7 @@
{ "value": "SLEEPINESS_REGEN", "multiply": 0.5 },
{ "value": "MENDING_MODIFIER", "multiply": 15 },
{ "value": "REGEN_HP", "multiply": 1.5 },
{ "value": "REGEN_WOUND", "multiply": 15 },
{ "value": "REGEN_HP_AWAKE", "multiply": 0.8 },
{ "value": "SLEEPY", "add": 150 },
{ "value": "CLIMATE_CONTROL_HEAT", "add": 150 }
@@ -1194,6 +1196,7 @@
"condition": { "and": [ "is_day", "u_is_outside" ] },
"values": [
{ "value": "REGEN_HP", "multiply": 0.5 },
{ "value": "REGEN_WOUND", "multiply": 0.5 },
{ "value": "REGEN_HP_AWAKE", "multiply": 0.2 },
{ "value": "REGEN_MANA", "multiply": 0.5 },
{ "value": "MAX_MANA", "multiply": 0.5 },
@@ -1222,6 +1225,7 @@
"condition": { "and": [ "is_day", "u_is_outside" ] },
"values": [
{ "value": "REGEN_HP", "multiply": 0.5 },
{ "value": "REGEN_WOUND", "multiply": 0.5 },
{ "value": "REGEN_HP_AWAKE", "multiply": 0.2 },
{ "value": "REGEN_MANA", "multiply": 0.5 },
{ "value": "MAX_MANA", "multiply": 0.5 },
@@ -11,8 +11,22 @@
"batch_time_factors": [ 80, 20 ],
"book_learn": [ [ "earthkin_tablet", 0 ] ],
"qualities": [ [ { "id": "SACRIFICE", "level": 1 } ] ],
"components": [ [ [ "water", 3 ] ], [ [ "ierde_earthkin_ingredient", 1 ] ] ],
"flags": [ "SECRET" ]
},
{
"type": "recipe",
"activity_level": "LIGHT_EXERCISE",
"result": "ierde_earthkin_ingredient",
"category": "CC_XEDRA",
"subcategory": "CSC_XEDRA_ELEMENTAL",
"skill_used": "gramarye",
"difficulty": 1,
"time": "45 m",
"batch_time_factors": [ 80, 20 ],
"book_learn": [ [ "earthkin_tablet", 0 ] ],
"qualities": [ [ { "id": "SACRIFICE", "level": 1 } ] ],
"components": [
[ [ "water", 3 ] ],
[
[ "arvore_sample", 1 ],
[ "undine_sample", 1 ],
@@ -42,8 +56,22 @@
"batch_time_factors": [ 80, 20 ],
"book_learn": [ [ "plantkin_parchment", 0 ] ],
"qualities": [ [ { "id": "SACRIFICE", "level": 1 } ] ],
"components": [ [ [ "water", 3 ] ], [ [ "arvore_plantkin_ingredient", 1 ] ] ],
"flags": [ "SECRET" ]
},
{
"type": "recipe",
"activity_level": "LIGHT_EXERCISE",
"result": "arvore_plantkin_ingredient",
"category": "CC_XEDRA",
"subcategory": "CSC_XEDRA_ELEMENTAL",
"skill_used": "gramarye",
"difficulty": 1,
"time": "45 m",
"batch_time_factors": [ 80, 20 ],
"book_learn": [ [ "plantkin_parchment", 0 ] ],
"qualities": [ [ { "id": "SACRIFICE", "level": 1 } ] ],
"components": [
[ [ "water", 3 ] ],
[
[ "ierde_sample", 1 ],
[ "undine_sample", 1 ],
@@ -73,8 +101,22 @@
"batch_time_factors": [ 80, 20 ],
"book_learn": [ [ "flametouched_parchment", 0 ] ],
"qualities": [ [ { "id": "SACRIFICE", "level": 1 } ] ],
"components": [ [ [ "water", 3 ] ], [ [ "salamander_flamekin_ingredient", 1 ] ] ],
"flags": [ "SECRET" ]
},
{
"type": "recipe",
"activity_level": "LIGHT_EXERCISE",
"result": "salamander_flamekin_ingredient",
"category": "CC_XEDRA",
"subcategory": "CSC_XEDRA_ELEMENTAL",
"skill_used": "gramarye",
"difficulty": 1,
"time": "45 m",
"batch_time_factors": [ 80, 20 ],
"book_learn": [ [ "flametouched_parchment", 0 ] ],
"qualities": [ [ { "id": "SACRIFICE", "level": 1 } ] ],
"components": [
[ [ "water", 3 ] ],
[
[ "ierde_sample", 1 ],
[ "undine_sample", 1 ],
@@ -104,21 +146,35 @@
"batch_time_factors": [ 80, 20 ],
"book_learn": [ [ "waterkin_tablet", 0 ] ],
"qualities": [ [ { "id": "SACRIFICE", "level": 1 } ] ],
"components": [ [ [ "water", 3 ] ], [ [ "undine_waterkin_ingredient", 1 ] ] ],
"flags": [ "SECRET" ]
},
{
"type": "recipe",
"activity_level": "LIGHT_EXERCISE",
"result": "undine_waterkin_ingredient",
"category": "CC_XEDRA",
"subcategory": "CSC_XEDRA_ELEMENTAL",
"skill_used": "gramarye",
"difficulty": 1,
"time": "45 m",
"batch_time_factors": [ 80, 20 ],
"book_learn": [ [ "waterkin_tablet", 0 ] ],
"qualities": [ [ { "id": "SACRIFICE", "level": 1 } ] ],
"components": [
[ [ "water", 3 ] ],
[
[ "arvore_sample", 1 ],
[ "ierde_sample", 1 ],
[ "salamander_sample", 1 ],
[ "homullus_sample", 1 ],
[ "sylph_sample", 1 ],
[ "salamander_sample", 1 ]
[ "arvore_sample", 1 ]
],
[
[ "arvore_sample", 1 ],
[ "ierde_sample", 1 ],
[ "salamander_sample", 1 ],
[ "homullus_sample", 1 ],
[ "sylph_sample", 1 ],
[ "salamander_sample", 1 ]
[ "arvore_sample", 1 ]
]
],
"flags": [ "SECRET" ]
@@ -135,21 +191,35 @@
"batch_time_factors": [ 80, 20 ],
"book_learn": [ [ "dollkin_tablet", 0 ] ],
"qualities": [ [ { "id": "SACRIFICE", "level": 1 } ] ],
"components": [ [ [ "water", 3 ] ], [ [ "homullus_dollkin_ingredient", 1 ] ] ],
"flags": [ "SECRET" ]
},
{
"type": "recipe",
"activity_level": "LIGHT_EXERCISE",
"result": "homullus_dollkin_ingredient",
"category": "CC_XEDRA",
"subcategory": "CSC_XEDRA_ELEMENTAL",
"skill_used": "gramarye",
"difficulty": 1,
"time": "45 m",
"batch_time_factors": [ 80, 20 ],
"book_learn": [ [ "dollkin_tablet", 0 ] ],
"qualities": [ [ { "id": "SACRIFICE", "level": 1 } ] ],
"components": [
[ [ "water", 3 ] ],
[
[ "ierde_sample", 1 ],
[ "salamander_sample", 1 ],
[ "undine_sample", 1 ],
[ "arvore_sample", 1 ],
[ "sylph_sample", 1 ],
[ "salamander_sample", 1 ]
[ "arvore_sample", 1 ]
],
[
[ "ierde_sample", 1 ],
[ "salamander_sample", 1 ],
[ "undine_sample", 1 ],
[ "arvore_sample", 1 ],
[ "sylph_sample", 1 ],
[ "salamander_sample", 1 ]
[ "arvore_sample", 1 ]
]
],
"flags": [ "SECRET" ]
@@ -166,20 +236,34 @@
"batch_time_factors": [ 80, 20 ],
"book_learn": [ [ "sylph_parchment", 0 ] ],
"qualities": [ [ { "id": "SACRIFICE", "level": 1 } ] ],
"components": [ [ [ "water", 3 ] ], [ [ "sylph_airkin_ingredient", 1 ] ] ],
"flags": [ "SECRET" ]
},
{
"type": "recipe",
"activity_level": "LIGHT_EXERCISE",
"result": "sylph_airkin_ingredient",
"category": "CC_XEDRA",
"subcategory": "CSC_XEDRA_ELEMENTAL",
"skill_used": "gramarye",
"difficulty": 1,
"time": "45 m",
"batch_time_factors": [ 80, 20 ],
"book_learn": [ [ "sylph_parchment", 0 ] ],
"qualities": [ [ { "id": "SACRIFICE", "level": 1 } ] ],
"components": [
[ [ "water", 3 ] ],
[
[ "ierde_sample", 1 ],
[ "salamander_sample", 1 ],
[ "undine_sample", 1 ],
[ "homullus_sample", 1 ],
[ "salamander_sample", 1 ],
[ "arvore_sample", 1 ]
],
[
[ "ierde_sample", 1 ],
[ "salamander_sample", 1 ],
[ "undine_sample", 1 ],
[ "homullus_sample", 1 ],
[ "salamander_sample", 1 ],
[ "arvore_sample", 1 ]
]
],
@@ -191,7 +275,7 @@
"result": "elemental_mana_draught",
"category": "CC_XEDRA",
"subcategory": "CSC_XEDRA_ELEMENTAL",
"skill_used": "chemistry",
"skill_used": "gramarye",
"difficulty": 1,
"time": "15 m",
"batch_time_factors": [ 80, 20 ],
@@ -102,7 +102,10 @@
[ "dreamforged_broadsword", -1 ],
[ "dreamforged_tsurugi_speed", -1 ],
[ "moons_tears_arming_sword", -1 ],
[ "moons_tears_scimitar", -1 ]
[ "moons_tears_scimitar", -1 ],
[ "fae_unique_weapon_light_of_newborn_star", -1 ],
[ "fae_unique_weapon_last_blossom_fall", -1 ],
[ "fae_unique_weapon_dawnrazor", -1 ]
]
]
}
@@ -121,7 +124,8 @@
[ "winter_lord_estoc", -1 ],
[ "dreamforged_longsword", -1 ],
[ "dreamforged_katana", -1 ],
[ "dreamforged_wakizashi", -1 ]
[ "dreamforged_wakizashi", -1 ],
[ "fae_unique_weapon_crimson_rain", -1 ]
]
]
}
@@ -130,7 +134,9 @@
"id": "real_great_swords",
"type": "requirement",
"//": "Any real, edged, big swords you could practice with, like zweihanders, greatswords, or the Dragonslayer, etc. I reckon that anything with a straight, sharp point to it that primarily swings side-to-side, and is large enough to require a normal human to use two hands can qualify.",
"extend": { "tools": [ [ [ "dreamforged_nodachi", -1 ], [ "dreamforged_zweihander", -1 ] ] ] }
"extend": {
"tools": [ [ [ "dreamforged_nodachi", -1 ], [ "dreamforged_zweihander", -1 ], [ "fae_unique_weapon_moonshadow", -1 ] ] ]
}
},
{
"id": "real_thrusting_swords",
@@ -315,6 +315,8 @@
]
},
"caster_condition_fail_message": "You must be outdoors during a storm to use Fist of Taranis",
"magic_type": "xe_fey_seasonal_magick_summer",
"spell_class": "CHANGELING_SEASONAL_MAGIC_SUMMER",
"flags": [ "LOUD", "RANDOM_DAMAGE", "RANDOM_DURATION" ],
"teachable": false,
"skill": "gramarye",
@@ -697,5 +697,61 @@
"flags": [ "SILENT" ],
"effect": "vomit",
"shape": "blast"
},
{
"id": "fae_unique_weapon_last_blossom_fall_spell",
"type": "SPELL",
"name": "Calling of the Daffodils",
"description": { "str": "Hidden spell that spawns the daffodil", "//~": "NO_I18N" },
"valid_targets": [ "self", "ground" ],
"min_damage": 10,
"max_damage": 20,
"max_level": 1,
"difficulty": 0,
"min_aoe": 8,
"max_aoe": 8,
"spell_class": "NONE",
"effect": "summon",
"effect_str": "mon_fetch_daffodil_warrior",
"shape": "blast",
"flags": [ "NO_LEGS", "SILENT", "RANDOM_DAMAGE", "NO_EXPLOSION_SFX", "NO_FAIL", "NO_HANDS", "NON_MAGICAL" ],
"min_duration": { "math": [ "spell_time(time(' 24 h'))" ] },
"max_duration": { "math": [ "spell_time(time(' 24 h'))" ] }
},
{
"id": "fae_unique_weapon_light_of_newborn_star_flashbang_spell",
"type": "SPELL",
"name": "Starlit Flare",
"description": { "str": "Causes a flashbang sometimes when you hit with Light of a New-Born Star", "//~": "NO_I18N" },
"valid_targets": [ "hostile", "ally" ],
"flags": [ "NO_PROJECTILE", "RANDOM_AOE", "NO_HANDS", "NO_LEGS" ],
"effect": "flashbang",
"shape": "blast",
"min_range": 1,
"min_aoe": 8,
"max_aoe": 12
},
{
"id": "fae_unique_weapon_moonshadow_spell",
"type": "SPELL",
"name": "Dark of the Moon",
"description": { "str": "Dims all light but lets you see in the dark.", "//~": "NO_I18N" },
"valid_targets": [ "self" ],
"flags": [ "NO_PROJECTILE", "NO_HANDS", "NO_LEGS" ],
"effect": "effect_on_condition",
"effect_str": "EOC_FAE_UNIQUE_WEAPON_MOONSHADOW",
"shape": "blast"
},
{
"type": "effect_on_condition",
"id": "EOC_FAE_UNIQUE_WEAPON_MOONSHADOW",
"effect": [
{ "math": [ "_effect_duration = rng(900,3600)" ] },
{ "u_add_effect": "effect_xe_fae_unique_weapon_moonshadow", "duration": { "math": [ "_effect_duration" ] } },
{
"custom_light_level": 0,
"length": [ { "math": [ "_effect_duration" ] }, { "math": [ "_effect_duration" ] } ]
}
]
}
]
@@ -33,5 +33,70 @@
"false_eocs": { "id": "_EOC_return_to_partyleader_fail_msg", "effect": { "message": "Unable to locate the party leader." } }
}
]
},
{
"type": "effect_on_condition",
"id": "SMARTLINK_EXTRA_SHOT_MON",
"eoc_type": "EVENT",
"required_event": "character_ranged_attacks_monster",
"condition": {
"and": [
{ "u_has_wielded_with_skill": "smartgun" },
{ "u_has_worn_with_flag": "SMARTLINK_TARGET" },
{ "not": { "u_has_effect": "vahagan_fired_at" } }
]
},
"effect": [ { "run_eocs": [ "SMARTLINK_EXTRA_SHOT" ] } ]
},
{
"type": "effect_on_condition",
"id": "SMARTLINK_EXTRA_SHOT_CHAR",
"eoc_type": "EVENT",
"required_event": "character_ranged_attacks_character",
"condition": {
"and": [
{ "u_has_wielded_with_skill": "smartgun" },
{ "u_has_worn_with_flag": "SMARTLINK_TARGET" },
{ "not": { "u_has_effect": "vahagan_fired_at" } }
]
},
"effect": [ { "run_eocs": [ "SMARTLINK_EXTRA_SHOT" ] } ]
},
{
"type": "effect_on_condition",
"id": "SMARTLINK_EXTRA_SHOT",
"effect": [
{ "u_add_effect": "vahagan_fired_at", "duration": "1 seconds" },
{ "math": [ "times_firing_extra = 0" ] },
{ "u_location_variable": { "context_val": "shooter" } },
{
"u_run_monster_eocs": [
{
"id": "_smartlink_shootfoes",
"condition": {
"and": [
{ "u_has_effect": "smart_targeted" },
{ "math": [ "u_hp('ALL') > 1" ] },
{ "math": [ "times_firing_extra < 1" ] },
{ "not": { "u_has_effect": "vahagan_fired_at" } }
]
},
"effect": [
{ "u_add_effect": "vahagan_fired_at", "duration": "1 seconds" },
{ "u_lose_effect": "smart_targeted" },
{ "math": [ "times_firing_extra++" ] },
{
"run_eocs": [ "EOC_vahagn_shootfoes" ],
"alpha_loc": { "context_val": "shooter" },
"beta_talker": "u"
}
]
}
],
"monster_range": 45,
"monster_must_see": true
},
{ "math": [ "times_firing_extra = 0" ] }
]
}
]
@@ -0,0 +1,96 @@
[
{
"id": "afs_paint_target_attempt",
"type": "SPELL",
"name": { "str": "Headset Targeting_Setup", "//~": "NO_I18N" },
"description": { "str": "Setup for afs_paint_target.", "//~": "NO_I18N" },
"message": "",
"valid_targets": [ "self" ],
"extra_effects": [ { "id": "afs_paint_target" } ],
"max_level": 4,
"effect": "attack",
"shape": "blast",
"flags": [ "NO_EXPLOSION_SFX", "SILENT" ],
"base_casting_time": 100
},
{
"type": "SPELL",
"id": "afs_paint_target",
"name": { "str": "Headset Targeted", "//~": "NO_I18N" },
"description": { "str": "Adds the smart targeted effect to victim.", "//~": "NO_I18N" },
"valid_targets": [ "hostile" ],
"effect": "attack",
"shape": "blast",
"message": "",
"damage_type": "bash",
"effect_str": "smart_targeted",
"min_duration": 3000,
"max_duration": 3000,
"flags": [ "SILENT", "NO_PROJECTILE", "NO_EXPLOSION_SFX", "RANDOM_TARGET", "RANDOM_CRITTER" ],
"base_casting_time": 100,
"min_range": 15,
"max_range": 60,
"max_level": 4,
"range_increment": 15
},
{
"type": "effect_on_condition",
"id": "EOC_HEADSET_SPOT_FAR",
"recurrence": "5 seconds",
"condition": { "u_is_wearing": "afs_combat_headset_sniping" },
"effect": [
{ "u_cast_spell": { "id": "afs_paint_target_attempt", "min_level": 4 } },
{
"u_run_monster_eocs": [
{
"id": "_remove_headset_spot_mon",
"condition": { "u_has_effect": "smart_targeted" },
"effect": [ { "u_lose_effect": "smart_targeted" } ]
}
],
"monster_range": 20,
"monster_must_see": true
},
{
"u_run_npc_eocs": [
{
"id": "_remove_headset_spot_npc",
"condition": { "u_has_effect": "smart_targeted" },
"effect": [ { "u_lose_effect": "smart_targeted" } ]
}
],
"npc_range": 10,
"npc_must_see": true,
"local": true
}
]
},
{
"type": "effect_on_condition",
"id": "EOC_HEADSET_SPOT_NEAR",
"recurrence": "5 seconds",
"condition": { "u_is_wearing": "afs_combat_headset" },
"effect": [ { "u_cast_spell": { "id": "afs_paint_target_attempt", "min_level": 1 } } ]
},
{
"type": "effect_on_condition",
"id": "BALLISTIC_TARGETING_MON",
"eoc_type": "EVENT",
"required_event": "character_ranged_attacks_monster",
"condition": { "u_has_worn_with_flag": "ACTIVE_TARGETING" },
"effect": [ { "run_eocs": [ "BALLISTIC_TARGETING" ] } ]
},
{
"type": "effect_on_condition",
"id": "BALLISTIC_TARGETING_CHAR",
"eoc_type": "EVENT",
"required_event": "character_ranged_attacks_character",
"condition": { "u_has_worn_with_flag": "ACTIVE_TARGETING" },
"effect": [ { "run_eocs": [ "BALLISTIC_TARGETING" ] } ]
},
{
"type": "effect_on_condition",
"id": "BALLISTIC_TARGETING",
"effect": [ { "npc_add_effect": "smart_targeted", "duration": "10 seconds" } ]
}
]
+19
View File
@@ -42,11 +42,30 @@
"id": "ACTIVE_CRYOSUIT",
"type": "json_flag"
},
{
"id": "ACTIVE_HEADSET",
"type": "json_flag"
},
{
"id": "MOTION_SENSOR",
"type": "json_flag",
"//": "Counts as a motion sensor item for effects and item interactions."
},
{
"id": "HIVE_MIND",
"type": "monster_flag",
"//": "This monster is part of a hive mind"
},
{
"id": "ACTIVE_TARGETING",
"type": "json_flag",
"//": "Targets foes when shot."
},
{
"id": "SMARTLINK_TARGET",
"type": "json_flag",
"info": "This item causes you to automatically fire at targeted enemies."
},
{
"id": "ACTIVE_HACK_TOOL",
"type": "json_flag",
@@ -1,4 +1,12 @@
[
{
"id": "afs_mirror_shades",
"copy-from": "glasses_bal",
"type": "ITEM",
"subtypes": [ "ARMOR" ],
"name": { "str": "mirror shades", "str_pl": "pairs of mirror shades" },
"description": "A pair of mirrored combat sunglasses. Not good for playing poker."
},
{
"id": "afs_transparent_coat",
"repairs_like": "coat_rain",
@@ -154,6 +162,109 @@
}
]
},
{
"id": "afs_cyberpunk_longcoat",
"copy-from": "trenchcoat_leather",
"repairs_like": "coat_rain",
"type": "ITEM",
"subtypes": [ "ARMOR" ],
"looks_like": "trenchcoat_leather",
"name": { "str": "synth long coat" },
"description": "A long, dark gray coat made from synthetic leather. It has a high collar and a long vent in the back.",
"material": [ "nylon" ],
"pocket_data": [
{
"pocket_type": "CONTAINER",
"max_contains_volume": "300 ml",
"max_contains_weight": "2500 g",
"max_item_length": "10 cm",
"moves": 80,
"description": "Zip-up chest pocket."
},
{
"pocket_type": "CONTAINER",
"max_contains_volume": "300 ml",
"max_contains_weight": "2500 g",
"max_item_length": "10 cm",
"moves": 80,
"description": "Zip-up chest pocket."
},
{
"pocket_type": "CONTAINER",
"max_contains_volume": "800 ml",
"max_contains_weight": "2500 g",
"max_item_length": "16 cm",
"moves": 80,
"description": "Zip-up hip pocket."
},
{
"pocket_type": "CONTAINER",
"max_contains_volume": "800 ml",
"max_contains_weight": "2500 g",
"max_item_length": "16 cm",
"moves": 80,
"description": "Zip-up hip pocket."
},
{
"pocket_type": "CONTAINER",
"max_contains_volume": "442 ml",
"max_contains_weight": "2 kg",
"max_item_length": "15 cm",
"moves": 150,
"description": "Velcro-fastened internal pocket."
},
{
"pocket_type": "CONTAINER",
"max_contains_volume": "442 ml",
"max_contains_weight": "2 kg",
"max_item_length": "15 cm",
"moves": 150,
"description": "Velcro-fastened internal pocket."
}
],
"variants": [
{
"id": "generic",
"name": { "str": "synth long coat" },
"description": "A long, dark gray coat made from synthetic leather. It has a high collar and a long vent in the back.",
"color": "dark_gray",
"weight": 50,
"append": true
},
{
"id": "admirality",
"name": { "str": "UISF long coat" },
"description": "A navy-blue long coat with deliberately ancient styling. Part of the formal dress uniform of the UICA admiralty, its either stolen or a knockoff.",
"color": "blue",
"weight": 10,
"append": true
},
{
"id": "transparent",
"name": { "str": "transparent long coat" },
"description": "A long coat made from transparent plastic. Not good for hiding smuggling contraband.",
"color": "dark_gray",
"weight": 20,
"append": true
},
{
"id": "rags",
"name": { "str": "long rags", "str_pl": "a pile of long rags" },
"description": "A patchwork of rags and plastic scraps stitched together into a coat. Genuine underhab wear, good for camouflage around trash heaps.",
"color": "dark_gray",
"weight": 5,
"append": true
},
{
"id": "red",
"name": { "str": "red long coat" },
"description": "A candy red long coat with a faux fur collar. Fashion icon or a walking street sign? Either way its not subtle.",
"color": "dark_gray",
"weight": 5,
"append": true
}
]
},
{
"id": "afs_cyberpunk_bomber",
"repairs_like": "coat_rain",
@@ -0,0 +1,92 @@
[
{
"abstract": "afs_headset_module",
"type": "ITEM",
"subtypes": [ "TOOL" ],
"name": { "str": "headset module" },
"looks_like": "c4armed",
"description": { "str": "Base for headset modules.", "//~": "NO_I18N" },
"symbol": ",",
"color": "white",
"weight": "760 g",
"volume": "250 ml",
"price": "3 kUSD",
"flags": [ "MUNDANE", "CANT_WEAR", "EXO_HELMET_GADGET" ]
},
{
"id": "afs_headset_nv",
"copy-from": "afs_headset_module",
"type": "ITEM",
"subtypes": [ "TOOL", "ARTIFACT" ],
"name": { "str": "NV module (headset)", "str_pl": "NV modules (headset)" },
"description": "Updated firmware and components for a headset. Provides thermal and light amplification capabilities. Must be installed in a compatible headset to function.",
"passive_effects": [ { "id": "afs_ench_headset_nv" } ]
},
{
"id": "afs_headset_flash",
"copy-from": "afs_headset_module",
"type": "ITEM",
"subtypes": [ "TOOL" ],
"name": { "str": "UV hardening (headset)", "str_pl": "UV hardening modules (headset)" },
"description": "Updated firmware and components for a headset. Provides protection from glare and other high intensity light sources. Must be installed in a compatible headset to function.",
"extend": { "flags": [ "FLASH_PROTECTION" ] }
},
{
"id": "afs_headset_sound",
"copy-from": "afs_headset_module",
"type": "ITEM",
"subtypes": [ "TOOL", "ARTIFACT" ],
"name": { "str": "sound amplification (headset)", "str_pl": "sound amplification modules (headset)" },
"description": "Updated firmware and components for a headset. Greatly amplifies and filters ambient sounds, allowing the precise detection of creatures without relying on sight. Must be installed in a compatible headset to function.",
"price": "5 kUSD",
"passive_effects": [ { "id": "afs_ench_headset_sound" } ]
},
{
"id": "afs_headset_active_targeting",
"copy-from": "afs_headset_module",
"type": "ITEM",
"subtypes": [ "TOOL", "ARTIFACT" ],
"name": { "str": "ballistic rangefinder (headset)", "str_pl": "ballistic rangefinder modules (headset)" },
"extend": { "flags": [ "ACTIVE_TARGETING" ] },
"description": "Updated firmware and components for a headset. Enemies fired upon will be automatically targeted. Must be installed in a compatible headset to function.",
"price": "5 kUSD"
},
{
"id": "afs_headset_surgery",
"copy-from": "afs_headset_module",
"type": "ITEM",
"subtypes": [ "TOOL", "ARTIFACT" ],
"name": { "str": "trauma response assistant (headset)", "str_pl": "trauma response assistant modules (headset)" },
"description": "Updated firmware and components for a headset. A virtual suite designed to assist with field surgery and trauma response, greatly increases your medical skills. Must be installed in a compatible headset to function.",
"passive_effects": [ { "id": "afs_ench_headset_surgery" } ]
},
{
"id": "afs_headset_EMF",
"copy-from": "afs_headset_module",
"type": "ITEM",
"subtypes": [ "TOOL", "ARTIFACT" ],
"name": { "str": "EMF sensor (headset)", "str_pl": "EMF sensor modules (headset)" },
"description": "Updated firmware and components for a headset. Allows the detection of nearby robots through obstacles. Must be installed in a compatible headset to function.",
"passive_effects": [ { "id": "afs_ench_headset_EMF" } ]
},
{
"id": "afs_headset_extra_targeting",
"copy-from": "afs_headset_module",
"type": "ITEM",
"subtypes": [ "TOOL", "ARTIFACT" ],
"name": { "str": "targeting algorithm (headset)", "str_pl": "targeting algorithm modules (headset)" },
"description": "Updated firmware and components for a headset. Improves the base targeting assistance suit, reducing aiming speed by 5%. Must be installed in a compatible headset to function.",
"price": "5 kUSD",
"passive_effects": [ { "id": "afs_ench_headset_extra_targeting" } ]
},
{
"id": "afs_headset_smartlink",
"copy-from": "afs_headset_module",
"type": "ITEM",
"subtypes": [ "TOOL", "ARTIFACT" ],
"name": { "str": "smart-link (headset)", "str_pl": "smart-link modules (headset)" },
"description": "Updated firmware and components for a headset. Smart guns will fire an extra shot at any targeted foe. Must be installed in a compatible headset to function.",
"extend": { "flags": [ "SMARTLINK_TARGET" ] },
"price": "8 kUSD"
}
]
@@ -5,10 +5,10 @@
"subtypes": [ "TOOL", "ARMOR", "ARTIFACT" ],
"category": "clothing",
"name": { "str": "tactical infovisor" },
"description": "An armored black headset that coalesces the feeds of several sensors into a single screen display. It provides generalized assistance in combat, including targeting assistance for thrown and ranged weaponry, threat identification, conditional NV and thermal vision and protection against high intensity light sources. It must be active to function.",
"description": "An armored black headset that coalesces the feeds of several sensors into a single screen display. It will periodically expose weaknesses in the armor of enemies within 15 tiles and provide passive targeting assistance for as long as it is active. It can be upgraded with modules to provide additional functionality.",
"weight": "170 g",
"volume": "750 ml",
"price": "7 kUSD",
"price": "12 kUSD",
"material": [ "nanoprinted_alloy" ],
"symbol": "[",
"looks_like": "glasses_safety",
@@ -17,12 +17,38 @@
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"rigid": true,
"flag_restriction": [ "BATTERY_LIGHT" ],
"default_magazine": "light_battery_cell"
"max_contains_volume": " 20 L",
"max_contains_weight": "20 kg",
"magazine_well": "75 ml",
"flag_restriction": [ "BATTERY_HEAVY" ],
"default_magazine": "heavy_battery_cell"
},
{
"pocket_type": "CONTAINER",
"name": "Module slot 1",
"description": "A mounting point for enhancement modules.",
"holster": true,
"inherits_flags": true,
"max_contains_volume": " 20 L",
"max_contains_weight": "20 kg",
"magazine_well": "100 ml",
"flag_restriction": [ "EXO_HELMET_GADGET" ],
"moves": 2000
},
{
"pocket_type": "CONTAINER",
"name": "Module slot 2",
"description": "A mounting point for enhancement modules.",
"holster": true,
"inherits_flags": true,
"max_contains_volume": " 20 L",
"max_contains_weight": "20 kg",
"magazine_well": "100 ml",
"flag_restriction": [ "EXO_HELMET_GADGET" ],
"moves": 2000
}
],
"armor": [ { "encumbrance": 5, "coverage": 100, "covers": [ "eyes" ] } ],
"armor": [ { "encumbrance": 5, "coverage": 10, "covers": [ "eyes" ] } ],
"use_action": [
{
"target": "afs_combat_headset",
@@ -32,11 +58,12 @@
"need_charges_msg": "The batteries are dead."
}
],
"passive_effects": [ { "id": "ench_ballistic_assist" } ],
"material_thickness": 1,
"environmental_protection": 15,
"flags": [ "MUNDANE", "OUTER", "PADDED" ],
"tool_ammo": "battery",
"passive_effects": [ { "id": "nvg_great" }, { "id": "THERMAL_VISION_GOOD" }, { "id": "ench_ballistic_assist" } ]
"faults": [ { "fault_group": "electronic_general" } ],
"flags": [ "MUNDANE", "OUTER", "PADDED", "STURDY", "OVERSIZE", "CAN_USE_IN_DARK" ],
"tool_ammo": "battery"
},
{
"id": "afs_combat_headset",
@@ -45,23 +72,22 @@
"category": "clothing",
"copy-from": "afs_combat_headset_off",
"name": { "str": "tactical infovisor" },
"description": "An armored black headset that coalesces the feeds of several sensors into a single screen display. It provides generalized assistance in combat, including targeting assistance for thrown and ranged weaponry, threat identification, conditional NV and thermal vision and protection against high intensity light sources.",
"description": "An armored black headset that coalesces the feeds of several sensors into a single screen display. It will periodically expose weaknesses in the armor of nearby threats and provide passive targeting assistance for as long as it is active.",
"power_draw": "310 mW",
"flags": [
"MUNDANE",
"ZOOM",
"WATCH",
"ALARMCLOCK",
"OUTER",
"STURDY",
"FLASH_PROTECTION",
"SUN_GLASSES",
"WATER_BREAK",
"PADDED",
"ELECTRONIC",
"SPAWN_ACTIVE"
],
"faults": [ { "fault_group": "electronic_general" } ],
"extend": {
"flags": [
"ZOOM",
"WATCH",
"ALARMCLOCK",
"THERMOMETER",
"PARTIAL_DEAF",
"SUN_GLASSES",
"ELECTRONIC",
"MODULE_HOLDER",
"SPAWN_ACTIVE",
"ACTIVE_HEADSET"
]
},
"revert_to": "afs_combat_headset_off",
"use_action": [
{
@@ -72,5 +98,154 @@
"type": "transform"
}
]
},
{
"id": "afs_combat_headset_sniping_off",
"type": "ITEM",
"subtypes": [ "TOOL", "ARMOR", "ARTIFACT" ],
"category": "clothing",
"copy-from": "afs_combat_headset_off",
"name": { "str": "TI-7 LosCo Tactical Headset" },
"description": "It used to be that marksmanship was a real skill, honed over arduous years spent killing farmhands while hiding in a ditch somewhere. Now, thanks to tech, anyone can drop a few grand and be an unhinged psycho killer. This one is 11th gen, with six high definition cameras and movement prediction algorithms ensure that you'll nail gatekeepers from miles away.\n\nIt will periodically expose weaknesses in the armor of threats beyond 25 tiles and provide passive targeting assistance for as long as it is active.",
"power_draw": "310 mW",
"price": "29 kUSD",
"faults": [ { "fault_group": "electronic_general" } ],
"use_action": [
{
"need_charges": 1,
"target": "afs_combat_headset_sniping",
"menu_text": "Turn on",
"msg": "You lower the visor. Green pixels dance from the edges of the screen as the HUD comes online.",
"type": "transform"
}
]
},
{
"id": "afs_combat_headset_sniping",
"type": "ITEM",
"subtypes": [ "TOOL", "ARMOR", "ARTIFACT" ],
"category": "clothing",
"copy-from": "afs_combat_headset_off",
"name": { "str": "TI-7 LosCo Tactical Headset" },
"description": "It used to be that marksmanship was a real skill, honed over arduous years spent killing farmhands while hiding in a ditch somewhere. Now, thanks to tech, anyone can drop a few grand and be an unhinged psycho killer. This one is 11th gen, with six high definition cameras and movement prediction algorithms ensure that you'll nail gatekeepers from miles away.",
"power_draw": "310 mW",
"extend": {
"flags": [
"ZOOM",
"WATCH",
"ALARMCLOCK",
"THERMOMETER",
"MODULE_HOLDER",
"SUN_GLASSES",
"PARTIAL_DEAF",
"ELECTRONIC",
"ACTIVE_HEADSET",
"SPAWN_ACTIVE"
]
},
"revert_to": "afs_combat_headset_sniping_off",
"use_action": [
{
"ammo_scale": 0,
"target": "afs_combat_headset_sniping_off",
"menu_text": "Turn off",
"msg": "You flick the visor off, and push it off your face.",
"type": "transform"
}
]
},
{
"id": "afs_recon_headset_off",
"type": "ITEM",
"subtypes": [ "TOOL", "ARMOR", "ARTIFACT" ],
"category": "armor",
"name": { "str": "OmniWare screen" },
"copy-from": "afs_combat_headset_off",
"description": "An opaque lune of dark alloy encases the wearer's identity, leaving only an inhuman visage marked by the indentures of a high gain microphone. It has but a single HUD mode, which utilizes EM-spectrum sensors and a SONAR array to reconstruct a visual feed in which figures are tagged as hostile, friendly, or irrelevant. Its detection capabilities clearly demarcates contacts through smoke and most solid obstacles, allowing users with the proper equipment to dispatch foes without ever exposing themselves to danger. It must be active to function.",
"weight": "850 g",
"volume": "1870 ml",
"price": "360 kUSD",
"material": [ "nanoprinted_alloy" ],
"symbol": "[",
"looks_like": "tac_fullhelmet",
"extend": { "flags": [ "RAINPROOF", "BLIND", "DEAF" ] },
"color": "light_gray",
"charges_per_use": 1,
"tool_ammo": "battery",
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"max_contains_volume": "20 L",
"max_contains_weight": "20 kg",
"magazine_well": "75 ml",
"item_restriction": [ "afs_cartridge", "afs_bootleg_cartridge", "afs_archeotech_cartridge" ]
}
],
"armor": [ { "encumbrance": 5, "coverage": 100, "covers": [ "eyes", "head" ] } ],
"use_action": [
{
"target": "afs_recon_headset",
"menu_text": "Activate",
"msg": "The OmniWare screen flickers to life, bathing your vision in blue noise before coalescing into a clear feed.",
"type": "transform",
"need_charges": 1,
"need_charges_msg": "The batteries are dead."
}
],
"passive_effects": [
{ "id": "afs_motion_sensor_worn" },
{ "id": "ench_ballistic_assist" },
{ "id": "THERMAL_VISION_GOOD" },
{
"has": "WORN",
"condition": "ACTIVE",
"name": { "str": "Passive Motion Detection" },
"description": "Passively detects movement at 6 second intervals.",
"intermittent_activation": { "effects": [ { "frequency": "6 seconds", "spell_effects": [ { "id": "afs_motion_sensor_spell" } ] } ] }
}
],
"material_thickness": 3,
"environmental_protection": 15
},
{
"id": "afs_recon_headset",
"type": "ITEM",
"subtypes": [ "TOOL", "ARMOR", "ARTIFACT" ],
"copy-from": "afs_recon_headset_off",
"name": { "str": "OmniWare screen (active)", "str_pl": "OmniWare screens (active)" },
"power_draw": "1 W",
"extend": {
"flags": [
"SPAWN_ACTIVE",
"MOTION_SENSOR",
"PARTIAL_DEAF",
"ALARMCLOCK",
"WATCH",
"MODULE_HOLDER",
"ACTIVE_HEADSET",
"THERMOMETER",
"FLASH_PROTECTION",
"SWIM_GOGGLES"
]
},
"revert_to": "afs_recon_headset",
"qualities": [ [ "GLARE", 1 ], [ "HACK", 3 ] ],
"delete": { "flags": [ "BLIND", "DEAF" ] },
"use_action": [
{
"target": "afs_recon_headset",
"menu_text": "Deactivate",
"msg": "The OmniWare screen flickers off with a brief flash, leaving you in darkness.",
"type": "transform"
},
{
"type": "cast_spell",
"spell_id": "afs_clairvoyance_cone",
"no_fail": true,
"need_worn": true,
"mundane": true,
"level": 20
}
]
}
]
@@ -246,7 +246,7 @@
"type": "ITEM",
"subtypes": [ "ARTIFACT", "GUN" ],
"name": { "str": "Wraitheon Vahagn 10XR" },
"description": "The legendary apex of smartgun technology, believed to be an urban legend by most. Bleeding-edge targeting systems allow it to track up 6 distinct targets simultaneously, with every trigger pull delivering a burst of two 7.5mm microjet darts to each target with a precision that is best described as supernatural. One needs only to point the weapon in the general direction of the enemy, and the Vahagn will do the rest.\n\nProhibitive cost and complexity kept this weapon from ever seeing the light of day, and only a handful of prototypes are believed to exist within the black market. Finding one here can only mean that corporate forces beyond the ordinary have made Salus IV their battleground.",
"description": "The legendary apex of smart gun technology, believed to be an urban legend by most. Bleeding-edge targeting systems allow it to track up 6 distinct targets simultaneously, with every trigger pull delivering a burst of two 7.5mm microjet darts to each target with a precision that is best described as supernatural. One needs only to point the weapon in the general direction of the enemy, and the Vahagn will do the rest.\n\nProhibitive cost and complexity kept this weapon from ever seeing the light of day, and only a handful of prototypes are believed to exist within the black market. Finding one here can only mean that corporate forces beyond the ordinary have made Salus IV their battleground.",
"weight": "3800 g",
"volume": "4300 ml",
"longest_side": "830 mm",
@@ -18,8 +18,21 @@
"special_vision": [
{
"distance": 24,
"precise": true,
"descriptions": [ { "id": "moving_creature", "symbol": "?", "color": "c_white", "text": "You sense something moving here." } ]
"descriptions": [ { "id": "moving_creature", "symbol": "?", "color": "c_red", "text": "Something is moving here." } ]
}
]
},
{
"type": "enchantment",
"id": "afs_motion_sensor_worn",
"has": "WORN",
"name": { "str": "Active Motion Detector" },
"description": "Actively detects nearby movement.",
"condition": { "math": [ "u_flag_motion_sensor_afs_motion_sensor_ping >= 1" ] },
"special_vision": [
{
"distance": 24,
"descriptions": [ { "id": "moving_creature", "symbol": "?", "color": "c_magenta", "text": "Something is moving here." } ]
}
]
},
@@ -162,7 +175,132 @@
"description": "Your gear relays targeting data to your weapons, reducing dispersion by 10%.",
"type": "enchantment",
"has": "WORN",
"condition": "ALWAYS",
"condition": "ACTIVE",
"values": [ { "value": "WEAPON_DISPERSION", "multiply": -0.1 } ]
},
{
"id": "afs_ench_headset_nv",
"type": "enchantment",
"has": "WORN",
"condition": { "u_has_worn_with_flag": "ACTIVE_HEADSET" },
"values": [ { "value": "NIGHT_VIS", "add": 20 } ],
"special_vision": [
{
"condition": { "and": [ "u_see_npc_loc", "npc_is_warm" ] },
"distance": 45,
"precise": true,
"descriptions": [
{
"id": "infrared_creature_tiny",
"text_condition": { "math": [ "n_val('size') == 1" ] },
"symbol": ".",
"text": "You see a tiny figure radiating heat."
},
{
"id": "infrared_creature_small",
"text_condition": { "math": [ "n_val('size') == 2" ] },
"symbol": ",",
"text": "You see a small figure radiating heat."
},
{
"id": "infrared_creature_medium",
"text_condition": { "math": [ "n_val('size') == 3" ] },
"symbol": "o",
"text": "You see a medium figure radiating heat."
},
{
"id": "infrared_creature_large",
"text_condition": { "math": [ "n_val('size') == 4" ] },
"symbol": "O",
"text": "You see a large figure radiating heat."
},
{
"id": "infrared_creature_huge",
"text_condition": { "math": [ "n_val('size') == 5" ] },
"symbol": "&",
"text": "You see a huge figure radiating heat."
}
]
}
]
},
{
"id": "afs_ench_headset_surgery",
"type": "enchantment",
"has": "WORN",
"condition": { "u_has_worn_with_flag": "ACTIVE_HEADSET" },
"skills": [ { "value": "firstaid", "add": 6 } ]
},
{
"id": "afs_ench_headset_sound",
"type": "enchantment",
"has": "WORN",
"condition": { "u_has_worn_with_flag": "ACTIVE_HEADSET" },
"special_vision": [
{
"distance": 6,
"descriptions": [
{
"id": "sound_creature_tiny",
"text_condition": { "math": [ "n_val('size') == 1" ] },
"symbol": ".",
"text": "A tiny creature scurries about."
},
{
"id": "sound_creature_small",
"text_condition": { "math": [ "n_val('size') == 2" ] },
"symbol": ",",
"text": "The sound of a small creature, dog sized or smaller."
},
{
"id": "sound_creature_medium",
"text_condition": { "math": [ "n_val('size') == 3" ] },
"symbol": "o",
"text": "A human or similar sized creature."
},
{
"id": "sound_creature_large",
"text_condition": { "math": [ "n_val('size') == 4" ] },
"symbol": "O",
"text": "Heavy disturbances from a large creature."
},
{
"id": "sound_creature_huge",
"text_condition": { "math": [ "n_val('size') == 5" ] },
"symbol": "&",
"text": "Warning symbols accompany the display, you better be ready for whatever this is."
}
]
}
]
},
{
"type": "enchantment",
"id": "afs_ench_headset_EMF",
"has": "WORN",
"condition": { "u_has_worn_with_flag": "ACTIVE_HEADSET" },
"special_vision": [
{
"condition": { "test_eoc": "EOC_IS_ELECTRIC" },
"distance": 15,
"descriptions": [
{
"id": "electric_creature_sense",
"symbol": "?",
"color": "c_cyan",
"text": "A creature is emitting an electric field."
}
]
}
]
},
{
"type": "enchantment",
"id": "afs_ench_headset_extra_targeting",
"has": "WORN",
"condition": { "u_has_worn_with_flag": "ACTIVE_HEADSET" },
"name": { "str": "Improved ballistic assist" },
"description": "Your gear relays targeting data to your weapons, further reducing aiming speed by 20%.",
"values": [ { "value": "AIMING_SPEED", "multiply": 0.2 } ]
}
]
@@ -47,6 +47,7 @@
{ "group": "afs_colonist_outfit", "count": [ 1, 3 ] },
{ "group": "afs_civilian_hazard_outfit", "count": [ 1, 3 ], "prob": 60 },
{ "group": "afs_pals_pieces", "count": [ 6, 12 ] },
{ "group": "afs_augustmoon_outfitter_headset_basic", "prob": 15 },
{ "group": "afs_augustmoon_outfitter_bags", "count": [ 10, 28 ] },
{ "group": "augustmoon_shop_money" }
]
@@ -91,6 +92,34 @@
[ "dry_bag", 20 ]
]
},
{
"id": "afs_augustmoon_outfitter_headset_basic",
"type": "item_group",
"subtype": "distribution",
"ammo": 100,
"magazine": 100,
"items": [
{ "group": "afs_augustmoon_outfitter_headset_modules", "count": [ 3, 5 ] },
{ "item": "afs_combat_headset_off", "prob": 10 }
]
},
{
"id": "afs_augustmoon_outfitter_headset_modules",
"type": "item_group",
"subtype": "distribution",
"ammo": 100,
"magazine": 100,
"items": [
[ "afs_headset_nv", 20 ],
[ "afs_headset_flash", 20 ],
[ "afs_headset_sound", 20 ],
[ "afs_headset_active_targeting", 20 ],
[ "afs_headset_surgery", 20 ],
[ "afs_headset_EMF", 20 ],
[ "afs_headset_extra_targeting", 20 ],
[ "afs_headset_smartlink", 20 ]
]
},
{
"id": "afs_augustmoon_outfitter_military",
"type": "item_group",
@@ -100,6 +129,8 @@
"items": [
{ "group": "afs_armor_military_infantry_g", "prob": 85 },
{ "item": "afs_backpack_rockets", "prob": 10 },
{ "item": "afs_combat_headset_sniping_off", "prob": 5 },
{ "item": "afs_recon_headset_off", "prob": 1 },
{ "item": "afs_backpack_shieldgen", "prob": 5 },
{ "item": "afs_combat_cryo", "count": [ 1, 2 ], "prob": 60 }
]
@@ -30,6 +30,7 @@
"magazine": 100,
"items": [
{ "item": "tac_fullhelmet_uicas" },
{ "item": "afs_combat_headset_off", "prob": 15 },
{ "item": "afs_military_vest" },
{ "item": "afs_combat_cryo" },
{ "item": "afs_ammo_satchel" },
@@ -225,7 +225,7 @@
"effect": "attack",
"shape": "cone",
"valid_targets": [ "hostile", "ground" ],
"flags": [ "SILENT" ],
"flags": [ "SILENT", "NO_EXPLOSION_SFX" ],
"effect_str": "smart_targeted",
"min_damage": 0,
"max_damage": 0,
@@ -74,31 +74,5 @@
"qualities": [ { "id": "CHISEL", "level": 3 } ],
"tools": [ [ [ "tongs", -1 ] ], [ [ "pipe", -1 ] ], [ [ "crucible", -1 ], [ "crucible_clay", -1 ] ], [ [ "forge", 5 ] ] ],
"components": [ [ [ "glass_shard", 1 ], [ "flask_glass", 1 ], [ "marble", 25 ] ] ]
},
{
"type": "recipe",
"activity_level": "NO_EXERCISE",
"result": "bag_canvas_small",
"category": "CC_OTHER",
"subcategory": "CSC_OTHER_CONTAINERS",
"skill_used": "tailor",
"difficulty": 1,
"time": "10 m",
"autolearn": true,
"using": [ [ "filament", 50 ], [ "cordage_short", 1 ] ],
"components": [ [ [ "cotton_patchwork", 2 ], [ "fibercloth_patchwork", 2 ] ] ]
},
{
"type": "recipe",
"activity_level": "NO_EXERCISE",
"result": "bag_canvas",
"category": "CC_OTHER",
"subcategory": "CSC_OTHER_CONTAINERS",
"skill_used": "tailor",
"difficulty": 3,
"time": "50 m",
"autolearn": true,
"using": [ [ "filament", 300 ], [ "cordage", 1 ] ],
"components": [ [ [ "cotton_patchwork", 12 ], [ "fibercloth_patchwork", 12 ] ] ]
}
]
+16
View File
@@ -972,6 +972,22 @@ checks are you hot or cold
{ "u_bodypart_is_wounded": "torso" }
```
### `u_bodypart_is_wounded_and_fixable`, `npc_bodypart_is_wounded_and_fixable`
- type: string or [variable object](#variable-object)
- return true if alpha or beta talker's specific bodypart has any wound that has possible wound fixes. It does not check if any of the fixes are actually performable. Designed for the sidebar to use to display that there are wounds that can be treated
#### Valid talkers:
| Avatar | NPC | Monster | Furniture | Item | Vehicle |
| ------ | --------- | ---- | ------- | --- | ---- |
| ✔️ | ✔️ | ❌ | ❌ | ❌ | ❌ |
#### Examples
```jsonc
{ "u_bodypart_is_wounded_and_fixable": { "context_val": "widget" } }
```
### `u_has_proficiency`, `npc_has_proficiency`
- type: string or [variable object](#variable-object)
- return true if alpha or beta talker has mastered a proficiency (to 100%).
+2
View File
@@ -338,6 +338,7 @@ Some armor flags, such as `WATCH` and `ALARMCLOCK` are compatible with other ite
- ```NON_FLESH_LIMB``` The bodypart is immune to a number of effects like poisoning or infection.
- ```NONSTANDARD_BLOCK``` This limb is different enough that martial arts' arm/leg blocks aren't applicable - blocking with this limb is unlocked by reaching the MA's `nonstandard_block` level, unless the limb also has `ALWAYS_BLOCK`. Either block flag is **required** for non-arm / non-leg limbs to be eligible to block.
- ```PARTIAL_BIONIC_LIMB``` This limb is at least in part mechanical.
- ```PLANT_LIMB``` The bodypart is purely vegetal, used for wound targeting.
- ```WINGS_2``` You can slow your fall, effectively reducing the height of falls by 2 levels, and ignore pit-like traps if two instances of the flag are present.
- ```WING_ARMS``` Counts as a wing for `Character::can_fly` if two instances of the flag are present.
@@ -538,6 +539,7 @@ These branches are the valid `dreams` from [dreams.json](/data/json/dreams.json)
- ```CARNIVORE_OK``` Can be eaten by characters with the Carnivore mutation at 50% kcal reduction.
- ```CANT_HEAL_EVERYONE``` This med can't be used by everyone, it requires a special mutation. See `can_heal_with` in mutation.
- ```CORROSIVE``` when consumed using the `BLECH` function, causes the same penalties as `ACID` but is not affected by `ACIDPROOF` or `ACIDBLOOD` traits.
- ```CRYOGENIC_ROT``` The item cannot be preserved without specialized cryogenic devices. Used in Aftershock.
- ```EATEN_COLD``` Morale bonus for eating cold.
- ```EATEN_HOT``` Morale bonus for eating hot.
- ```EDIBLE_FROZEN``` Being frozen doesn't prevent eating it. No morale bonus.
+1 -1
View File
@@ -1001,7 +1001,7 @@ Character status value | Description
`BIONIC_MANA_PENALTY` | changes how big the mana penalty for having bionic energy is (default ratio is 1 kj removes 1 mana point). better to use with `multiply`, using `add` just adds or removes flat amount of mana no matter of energy level. `"multiply": 1` double the ratio (1 kj removes 2 mana points), `"multiply": -0.5` halves it
`BIONIC_POWER` | Adds bionic power storage in millijoules ("add": 1000000 adds 1 kJ)
`BLEED_STOP_BONUS` | Affects the `bleed` level when applying medicine.
`BLEEEDING_RATE` | Affects the rate you lose blood when bleeding.
`BLEEDING_RATE` | Affects the rate you lose blood when bleeding.
`BODYTEMP_SLEEP` | Amount of warmth (in celcius) added to you when you sleep. Default is 0, so better to use `add`
`BONUS_BLOCK` | Affects the number of blocks you can perform.
`BONUS_DODGE` | Affects the number of dodges you can perform. Do not confuse with `DODGE_CHANCE`
+1 -1
View File
@@ -1497,7 +1497,7 @@ These can be read or written to with `val()`.
| Value | Supports assignment | Description |
--- | --- | --- |
| `activity_level` | ❌ | Current activity level index as a floored integer, from 0-5. Roughly: <pre>0.45 = SLEEP_EXERCISE (floored and returns 0),<br/>0.5 = NO_EXERCISE(floored and returns 0),<br/>1 = LIGHT_EXERCISE,<br/>2 = MODERATE_EXERCISE,<br/>3 = BRISK_EXERCISE,<br/>4 = ACTIVE_EXERCISE,<br/>5 = EXTRA_EXERCISE. |
| `activity_level` | ❌ | Current activity level index as a floored integer, from 0-5. Roughly: <pre>0.45 = SLEEP_EXERCISE (floored and returns 0),<br/>0.5 = NO_EXERCISE(floored and returns 0),<br/>1 = LIGHT_EXERCISE,<br/>2 = MODERATE_EXERCISE,<br/>3 = BRISK_EXERCISE,<br/>4 = ACTIVE_EXERCISE,<br/>5 = EXTRA_EXERCISE, <br/>500 = COMBAT_EXERCISE. |
| `age` | ✅ | Current age in years. |
| `allies` | ❌ | The avatar's number of allies |
| `anger` | ✅ | Current anger level. Only works for monsters. |
+1 -1
View File
@@ -50,7 +50,7 @@ query to stop the activity, and strings that describe it, for example:
`"verb": "mining"` or
`"verb": { "ctxt": "instrument", "str": "playing" }`.
* activity_level: Activity level of the activity, harder activities consume more calories over time. Valid values are, from easiest to most demanding of the body: `NO_EXERCISE`, `LIGHT_EXERCISE`, `MODERATE_EXERCISE`, `BRISK_EXERCISE`, `ACTIVE_EXERCISE`, `EXTRA_EXERCISE`.
* activity_level: Activity level of the activity, harder activities consume more calories over time. Valid values are, from easiest to most demanding of the body: `NO_EXERCISE`, `LIGHT_EXERCISE`, `MODERATE_EXERCISE`, `BRISK_EXERCISE`, `ACTIVE_EXERCISE`, `EXTRA_EXERCISE`, `COMBAT_EXERCISE`.
* interruptable (true): Can this be interrupted. If false, then popups related
to e.g. pain or seeing monsters will be suppressed.
+1 -6
View File
@@ -95,13 +95,8 @@ See [the Technology document](./technology.md) for deeper details.
Every living thing on earth is infected by the blob. In humans, passive blob infection has a few effects. This has some serious ramifications for gameplay and storytelling.
**Increased Healing**
Blob infection means everyone heals more completely from basic soft tissue injuries. It doesn't affect immune systems and doesn't have as powerful an effect on broken bones. It also doesn't allow regeneration… Not unless you die, first. As the game's code improves, the effect of increased healing is lessened, but in general we're never going to model stuff like permanent nerve damage and unrecoverable scarring, and this is the in-game reason.
In-game this is an explanation for rapid player healing; note that this means that rapid healing is diegetic, ie. characters in the game world are conscious of the fact that they heal much faster than before, and may comment on it.
**Mutation**
The Blob seems to somehow store a base state for the infected creature (purifier triggers it to revert to this state and can be thought of as a 'basic human' mutagen). That base state can be copied and imposed on the blob by crafting mutagen that has been exposed to a target organism. The blob also responds to radiation and certain other toxic challenges by sometimes causing random mutations.
The Blob seems to somehow store a base state for the infected creature (purifier triggers it to revert to this state and can be thought of as a 'basic human' mutagen). That base state can be copied and imposed on the blob by crafting mutagen that has been exposed to a target organism. The blob also responds to certain toxic challenges by sometimes causing random mutations.
Mutagens work in part by copying a particular creature's phenotype onto the blob, then merging that phenotype with the person consuming the mutagen. Mutagens do *not* work by modifying the underlying genetics of the organism: they are epigenetic.
+111 -9
View File
@@ -218,6 +218,7 @@ static const activity_id ACT_MULTIPLE_CHOP_TREES( "ACT_MULTIPLE_CHOP_TREES" );
static const activity_id ACT_MULTIPLE_CONSTRUCTION( "ACT_MULTIPLE_CONSTRUCTION" );
static const activity_id ACT_MULTIPLE_CRAFT( "ACT_MULTIPLE_CRAFT" );
static const activity_id ACT_MULTIPLE_DIS( "ACT_MULTIPLE_DIS" );
static const activity_id ACT_MULTIPLE_DISSECT( "ACT_MULTIPLE_DISSECT" );
static const activity_id ACT_MULTIPLE_FARM( "ACT_MULTIPLE_FARM" );
static const activity_id ACT_MULTIPLE_FISH( "ACT_MULTIPLE_FISH" );
static const activity_id ACT_MULTIPLE_MINE( "ACT_MULTIPLE_MINE" );
@@ -239,6 +240,7 @@ static const activity_id ACT_QUARTER( "ACT_QUARTER" );
static const activity_id ACT_READ( "ACT_READ" );
static const activity_id ACT_REEL_CABLE( "ACT_REEL_CABLE" );
static const activity_id ACT_RELOAD( "ACT_RELOAD" );
static const activity_id ACT_REPAIR_ITEM( "ACT_REPAIR_ITEM" );
static const activity_id ACT_ROBOT_CONTROL( "ACT_ROBOT_CONTROL" );
static const activity_id ACT_SHAVE( "ACT_SHAVE" );
static const activity_id ACT_SHEARING( "ACT_SHEARING" );
@@ -3892,6 +3894,25 @@ std::string enum_to_string<close_tile_result>( close_tile_result data )
cata_fatal( "Invalid based_on_type in enum_to_string" );
}
}
template<>
std::string enum_to_string<repair_stage>(
repair_stage data )
{
switch( data ) {
// *INDENT-OFF*
case repair_stage::INIT: return "INIT";
case repair_stage::ONCE: return "ONCE";
case repair_stage::FULL: return "FULL";
case repair_stage::EVENT: return "EVENT";
case repair_stage::REFIT_ONCE: return "REFIT_ONCE";
case repair_stage::REFIT_FULL: return "REFIT_FULL";
case repair_stage::CANCEL: return "CANCEL";
case repair_stage::LAST: return "LAST";
// *INDENT-ON*
default:
cata_fatal( "Invalid based_on_type in enum_to_string" );
}
}
} // namespace io
bool efile_activity_actor::processed_edevices_remain() const
@@ -11321,6 +11342,69 @@ std::unique_ptr<activity_actor> mend_item_activity_actor::deserialize( JsonValue
return actor.clone();
}
item *repair_item_activity_actor::get_repair_tool( player_activity &act )
{
item *main_tool = nullptr;
if( vp_tool.has_value() ) {
main_tool = w_hack.init( vp_tool->first, vp_tool->second ) ?
w_hack.get_item() : tool_to_repair_with.get_item();
} else {
main_tool = tool_to_repair_with.get_item();
}
if( main_tool == nullptr ) {
debugmsg( "Invalid tool for repair_item_activity_actor" );
act.set_to_null();
return nullptr;
}
item *used_tool = main_tool->get_usable_item( repair_iuse_actor_name );
if( used_tool == nullptr ) {
debugmsg( "Lost tool used for repair_item_activity_actor" );
act.set_to_null();
return nullptr;
}
return used_tool;
}
void repair_item_activity_actor::start( player_activity &act, Character & )
{
// processing happens in finish()
act.moves_total = 0;
act.moves_left = act.moves_total;
}
void repair_item_activity_actor::serialize( JsonOut &jsout ) const
{
jsout.start_object();
jsout.member( "repaired_item", repaired_item );
jsout.member( "stage", stage );
jsout.member( "tool_to_repair_with", tool_to_repair_with );
jsout.member( "no_menu", no_menu );
jsout.member( "repair_iuse_actor_name", repair_iuse_actor_name );
jsout.member( "vp_tool", vp_tool );
jsout.end_object();
}
std::unique_ptr<activity_actor> repair_item_activity_actor::deserialize( JsonValue &jsin )
{
repair_item_activity_actor actor;
JsonObject data = jsin.get_object();
data.read( "repaired_item", actor.repaired_item );
data.read( "stage", actor.stage );
data.read( "tool_to_repair_with", actor.tool_to_repair_with );
data.read( "no_menu", actor.no_menu );
data.read( "repair_iuse_actor_name", actor.repair_iuse_actor_name );
data.read( "vp_tool", actor.vp_tool );
return actor.clone();
}
void fix_wound_activity_actor::start( player_activity &act, Character & )
{
act.moves_total = to_moves<int>( initial_moves );
@@ -11368,7 +11452,7 @@ void fix_wound_activity_actor::finish( player_activity &act, Character &who )
for( int i = 0; i < amount; i++ ) {
for( const wound_type_id &id : fix.wounds_added ) {
bp->add_wound( id );
bp->add_wound( id, who );
}
}
@@ -11547,8 +11631,6 @@ std::unique_ptr<activity_actor> toolmod_add_activity_actor::deserialize( JsonVal
void longsalvage_activity_actor::start( player_activity &act, Character & )
{
act.index = index;
//todo: refactor the actor to process items in ::do_turn, then remove setting the moves to 0
//this currently still can't get interrupted before you get attacked
act.moves_left = 0;
@@ -11556,12 +11638,16 @@ void longsalvage_activity_actor::start( player_activity &act, Character & )
void longsalvage_activity_actor::finish( player_activity &act, Character &who )
{
if( !salvage_tool.valid() ) {
debugmsg( "Lost tool used for long salvage" );
act.set_to_null();
return;
}
static const std::string salvage_string = "salvage";
item &main_tool = who.i_at( act.index );
map &here = get_map();
map_stack items = here.i_at( who.pos_bub() );
item *salvage_tool = main_tool.get_usable_item( salvage_string );
if( salvage_tool == nullptr ) {
item *found_usable_item = salvage_tool->get_usable_item( salvage_string );
if( found_usable_item == nullptr ) {
debugmsg( "Lost tool used for long salvage" );
act.set_to_null();
return;
@@ -11593,18 +11679,24 @@ void longsalvage_activity_actor::serialize( JsonOut &jsout ) const
{
jsout.start_object();
jsout.member( "index", index );
jsout.member( "salvage_tool", salvage_tool );
jsout.end_object();
}
std::unique_ptr<activity_actor> longsalvage_activity_actor::deserialize( JsonValue &jsin )
{
longsalvage_activity_actor actor( {} );
longsalvage_activity_actor actor;
JsonObject data = jsin.get_object();
data.read( "index", actor.index );
// REMOVE "index" AFTER 0.K
if( data.has_member( "index" ) ) {
int index = 0;
// don't attempt to find an item, let activity from legacy save fail safely
data.read( "index", index );
}
data.read( "salvage_tool", actor.salvage_tool );
return actor.clone();
}
@@ -13996,6 +14088,8 @@ void butchery_activity_actor::do_turn( player_activity &act, Character &you )
item &corpse_item = *this_bd->corpse;
corpse_item.set_var( butcher_progress_time_var(),
to_turns<double>( calendar::turn - calendar::start_of_cataclysm ) );
corpse_item.set_var( butcher_progress_var( this_bd->b_type ),
this_bd->progress / this_bd->time_to_butcher );
}
}
@@ -14067,6 +14161,12 @@ std::unique_ptr<activity_actor> multi_butchery_activity_actor::deserialize( Json
return actor.clone();
}
std::unique_ptr<activity_actor> multi_dissection_activity_actor::deserialize( JsonValue & )
{
multi_dissection_activity_actor actor;
return actor.clone();
}
void find_mount_activity_actor::do_turn( player_activity &act, Character &who )
{
//npc only activity
@@ -15683,6 +15783,7 @@ deserialize_functions = {
{ ACT_MULTIPLE_CONSTRUCTION, &multi_build_construction_activity_actor::deserialize },
{ ACT_MULTIPLE_CRAFT, &multi_craft_activity_actor::deserialize },
{ ACT_MULTIPLE_DIS, &multi_disassemble_activity_actor::deserialize },
{ ACT_MULTIPLE_DISSECT, &multi_dissection_activity_actor::deserialize },
{ ACT_MULTIPLE_FARM, &multi_farm_activity_actor::deserialize },
{ ACT_MULTIPLE_FISH, &multi_fish_activity_actor::deserialize },
{ ACT_MULTIPLE_MINE, &multi_mine_activity_actor::deserialize },
@@ -15704,6 +15805,7 @@ deserialize_functions = {
{ ACT_READ, &read_activity_actor::deserialize },
{ ACT_REEL_CABLE, &reel_cable_activity_actor::deserialize },
{ ACT_RELOAD, &reload_activity_actor::deserialize },
{ ACT_REPAIR_ITEM, &repair_item_activity_actor::deserialize },
{ ACT_ROBOT_CONTROL, &robot_control_activity_actor::deserialize },
{ ACT_SHAVE, &shave_activity_actor::deserialize },
{ ACT_SHEARING, &shearing_activity_actor::deserialize },
+117 -2
View File
@@ -22,6 +22,7 @@
#include "item.h"
#include "itype.h"
#include "item_location.h"
#include "iuse_actor.h"
#include "memory_fast.h"
#include "npctalk.h"
#include "pickup.h"
@@ -74,6 +75,19 @@ enum class close_tile_result {
CLOSE_TILE_RESULT_LAST
};
enum class repair_stage : int {
// INIT should be zero. In some scenarios (vehicle welder), activity value default to zero.
INIT = 0, // Haven't found repeat value yet.
ONCE = 1, // Attempt repair (and refit if possible) just once
// value 2 obsolete - previously used for reinforcement
FULL = 3, // Continue repairing until damage==0 (and until refitted if possible)
EVENT = 4, // Continue repairing (and refit if possible) until something interesting happens
REFIT_ONCE = 5, // Try refitting once, but don't repair
REFIT_FULL = 6, // Continue refitting until item fits, but don't repair
CANCEL = 7, // Stop repeating
LAST = 8
};
template<>
struct enum_traits<open_tile_result> {
static constexpr open_tile_result last = open_tile_result::OPEN_TILE_RESULT_LAST;
@@ -82,6 +96,11 @@ template<>
struct enum_traits<close_tile_result> {
static constexpr close_tile_result last = close_tile_result::CLOSE_TILE_RESULT_LAST;
};
template<>
struct enum_traits<repair_stage> {
static constexpr repair_stage last =
repair_stage::LAST;
};
/**
* Any activity that does operations in one or more zone types.
@@ -493,6 +512,27 @@ class multi_butchery_activity_actor : public multi_zone_activity_actor
static std::unique_ptr<activity_actor> deserialize( JsonValue & );
};
class multi_dissection_activity_actor : public multi_zone_activity_actor
{
public:
using multi_zone_activity_actor::multi_zone_activity_actor;
const activity_id &get_type() const override {
static const activity_id ACT_MULTIPLE_DISSECT( "ACT_MULTIPLE_DISSECT" );
return ACT_MULTIPLE_DISSECT;
}
activity_reason_info multi_activity_can_do( Character &you,
const tripoint_bub_ms &src_loc ) override;
std::optional<requirement_id> multi_activity_requirements( Character &you,
activity_reason_info &act_info, const tripoint_bub_ms &src_loc,
const zone_data *zone = nullptr ) override;
bool multi_activity_do( Character &you, const activity_reason_info &act_info,
const tripoint_abs_ms &src, const tripoint_bub_ms &src_loc ) override;
std::unique_ptr<activity_actor> clone() const override {
return std::make_unique<multi_dissection_activity_actor>( *this );
}
static std::unique_ptr<activity_actor> deserialize( JsonValue & );
};
// find and retrieve items for the front multi-activity of the backlog
// NOTE: ACT_FETCH_REQUIRED is not a multi-activity but still uses the framework
class fetch_required_activity_actor : public multi_zone_activity_actor
@@ -3857,6 +3897,7 @@ class forage_activity_actor : public activity_actor
int moves;
};
// mends item faults
class mend_item_activity_actor : public activity_actor
{
public:
@@ -3889,6 +3930,79 @@ class mend_item_activity_actor : public activity_actor
fault_fix_id mending_method;
};
/*
* HACK: Provides vehicle power to pseudo items for repair_item_activity_actor
* An item_location for vehicle-mounted tools would be preferable!
*/
struct weldrig_hack {
std::optional<vpart_reference> part_with_pseudo_tool;
item pseudo_tool;
weldrig_hack() : part_with_pseudo_tool( std::nullopt ) {}
bool init( itype_id vp_tool_id, const tripoint_bub_ms &vp_pos );
// get pointer to either `pseudo` or the tool used at `part`
// should be called every time access to the item is needed
item *get_item();
// drains ammo used in `pseudo` from `part`
void vehicle_drain();
};
// mends item degradation, refits if necessary
class repair_item_activity_actor : public activity_actor
{
public:
explicit repair_item_activity_actor( const item_location &repaired_item = item_location::nowhere,
const item_location &tool_to_repair_with = item_location::nowhere,
std::optional<std::pair<itype_id, tripoint_bub_ms>> vp_tool = std::nullopt,
const std::string &repair_iuse_actor_name = "repair_item",
repair_stage stage = repair_stage::INIT,
bool no_menu = false ) :
repaired_item( repaired_item ), tool_to_repair_with( tool_to_repair_with ), vp_tool( vp_tool ),
repair_iuse_actor_name( repair_iuse_actor_name ), stage( stage ), no_menu( no_menu ) {
};
const activity_id &get_type() const override {
static const activity_id ACT_REPAIR_ITEM( "ACT_REPAIR_ITEM" );
return ACT_REPAIR_ITEM;
}
static repair_stage repeat_menu( const std::string &title, repair_stage last_selection,
bool can_refit );
void start( player_activity &act, Character & ) override;
void do_turn( player_activity &, Character & ) override;
void finish( player_activity &act, Character &who ) override;
// every activity turn the repaired item AND repair tool must be re-validated
// TODO: no way to item_location wrap a weldrig_hack pseudo-item
item *get_repair_tool( player_activity &act );
void init_repair( player_activity &act, Character &who, const repair_item_actor *repair_iuse,
item &repair_tool );
void do_repair( player_activity &act, Character &who, const repair_item_actor *repair_iuse,
item &repair_tool );
std::unique_ptr<activity_actor> clone() const override {
return std::make_unique<repair_item_activity_actor>( *this );
}
void serialize( JsonOut &jsout ) const override;
static std::unique_ptr<activity_actor> deserialize( JsonValue &jsin );
private:
item_location repaired_item;
item_location tool_to_repair_with;
// for `weldrig_hack`
std::optional<std::pair<itype_id, tripoint_bub_ms>> vp_tool;
std::string repair_iuse_actor_name;
repair_stage stage;
// whether to prompt the repair menu during the activity
bool no_menu;
weldrig_hack w_hack; // NOLINT(cata-serialize)
};
class fix_wound_activity_actor : public activity_actor
{
public:
@@ -3984,7 +4098,8 @@ class longsalvage_activity_actor : public activity_actor
{
public:
longsalvage_activity_actor() = default;
explicit longsalvage_activity_actor( int index ) : index( index ) {}
explicit longsalvage_activity_actor( const item_location &salvage_tool ) : salvage_tool(
salvage_tool ) {}
const activity_id &get_type() const override {
static const activity_id ACT_LONGSALVAGE( "ACT_LONGSALVAGE" );
@@ -4003,7 +4118,7 @@ class longsalvage_activity_actor : public activity_actor
static std::unique_ptr<activity_actor> deserialize( JsonValue &jsin );
private:
int index;
item_location salvage_tool;
};
class mop_activity_actor : public activity_actor
+300 -351
View File
@@ -7,10 +7,10 @@
#include <set>
#include <stdexcept>
#include <string>
#include <type_traits>
#include <unordered_set>
#include <utility>
#include "activity_actor_definitions.h"
#include "calendar.h"
#include "cata_utility.h"
#include "character.h"
@@ -51,7 +51,6 @@
#include "weather.h"
static const activity_id ACT_FILL_LIQUID( "ACT_FILL_LIQUID" );
static const activity_id ACT_REPAIR_ITEM( "ACT_REPAIR_ITEM" );
static const activity_id ACT_TRAVELLING( "ACT_TRAVELLING" );
static const ammotype ammo_battery( "battery" );
@@ -74,15 +73,9 @@ using namespace activity_handlers;
const std::map< activity_id, std::function<void( player_activity *, Character * )> >
activity_handlers::do_turn_functions = {
{ ACT_FILL_LIQUID, fill_liquid_do_turn },
{ ACT_REPAIR_ITEM, repair_item_do_turn },
{ ACT_TRAVELLING, travel_do_turn }
};
const std::map< activity_id, std::function<void( player_activity *, Character * )> >
activity_handlers::finish_functions = {
{ ACT_REPAIR_ITEM, repair_item_finish }
};
bool activity_handlers::resume_for_multi_activities( Character &you )
{
if( !you.backlog.empty() ) {
@@ -295,388 +288,344 @@ void activity_handlers::fill_liquid_do_turn( player_activity *act, Character *yo
}
}
namespace
{
enum class repeat_type : int {
// INIT should be zero. In some scenarios (vehicle welder), activity value default to zero.
INIT = 0, // Haven't found repeat value yet.
ONCE = 1, // Attempt repair (and refit if possible) just once
// value 2 obsolete - previously used for reinforcement
FULL = 3, // Continue repairing until damage==0 (and until refitted if possible)
EVENT = 4, // Continue repairing (and refit if possible) until something interesting happens
REFIT_ONCE = 5, // Try refitting once, but don't repair
REFIT_FULL = 6, // Continue refitting until item fits, but don't repair
CANCEL = 7, // Stop repeating
};
using I = std::underlying_type_t<repeat_type>;
constexpr bool operator>=( const I &lhs, const repeat_type &rhs )
{
return lhs >= static_cast<I>( rhs );
}
constexpr bool operator<=( const I &lhs, const repeat_type &rhs )
{
return lhs <= static_cast<I>( rhs );
}
constexpr I operator-( const repeat_type &lhs, const repeat_type &rhs )
{
return static_cast<I>( lhs ) - static_cast<I>( rhs );
}
} // namespace
static repeat_type repeat_menu( const std::string &title, repeat_type last_selection,
const bool can_refit )
repair_stage repair_item_activity_actor::repeat_menu(
const std::string &title, repair_stage last_selection,
const bool can_refit )
{
uilist rmenu;
rmenu.text = title;
rmenu.addentry( static_cast<int>( repeat_type::ONCE ), true, '1',
rmenu.addentry( static_cast<int>( repair_stage::ONCE ), true, '1',
can_refit ? _( "Attempt to refit or repair once" ) : _( "Attempt to repair once" ) );
rmenu.addentry( static_cast<int>( repeat_type::FULL ), true, '2',
rmenu.addentry( static_cast<int>( repair_stage::FULL ), true, '2',
can_refit ? _( "Repeat until refitted and fully repaired" ) : _( "Repeat until fully repaired" ) );
rmenu.addentry( static_cast<int>( repeat_type::EVENT ), true, '3',
rmenu.addentry( static_cast<int>( repair_stage::EVENT ), true, '3',
can_refit ? _( "Refit or repair until success/failure/level up" ) :
_( "Repair until success/failure/level up" ) );
rmenu.addentry( static_cast<int>( repeat_type::REFIT_ONCE ), can_refit, '4',
rmenu.addentry( static_cast<int>( repair_stage::REFIT_ONCE ), can_refit, '4',
_( "Attempt to refit once" ) );
rmenu.addentry( static_cast<int>( repeat_type::REFIT_FULL ), can_refit, '5',
rmenu.addentry( static_cast<int>( repair_stage::REFIT_FULL ), can_refit, '5',
_( "Repeat until refitted" ) );
rmenu.addentry( static_cast<int>( repeat_type::INIT ), true, '6', _( "Back to item selection" ) );
rmenu.addentry( static_cast<int>( repair_stage::INIT ), true, '6', _( "Back to item selection" ) );
rmenu.selected = last_selection - repeat_type::ONCE;
rmenu.selected = static_cast<int>( last_selection ) - static_cast<int>( repair_stage::ONCE );
rmenu.query();
if( rmenu.ret >= repeat_type::INIT && rmenu.ret <= repeat_type::REFIT_FULL ) {
return static_cast<repeat_type>( rmenu.ret );
if( rmenu.ret >= static_cast<int>( repair_stage::INIT ) &&
rmenu.ret <= static_cast<int>( repair_stage::REFIT_FULL ) ) {
return static_cast<repair_stage>( rmenu.ret );
}
return repeat_type::CANCEL;
return repair_stage::CANCEL;
}
// HACK: This is a part of a hack to provide pseudo items for long repair activity
// Note: similar hack could be used to implement all sorts of vehicle pseudo-items
// and possibly CBM pseudo-items too.
namespace
{
struct weldrig_hack {
std::optional<vpart_reference> part;
item pseudo;
weldrig_hack() : part( std::nullopt ) { }
bool init( const player_activity &act ) {
map &here = get_map();
if( act.coords.empty() || act.str_values.size() < 2 ) {
return false;
}
const optional_vpart_position vp = here.veh_at( here.get_bub( act.coords[0] ) );
if( !vp ) {
return false;
}
itype_id tool_id( act.get_str_value( 1, "" ) );
pseudo = item( tool_id, calendar::turn );
part = vp->part_with_tool( here, tool_id );
return part.has_value();
}
item &get_item() {
map &here = get_map();
if( !part ) {
// null item should be handled just fine
return null_item_reference();
}
pseudo.set_flag( json_flag_PSEUDO );
item mag_mod( itype_pseudo_magazine_mod );
mag_mod.set_flag( json_flag_IRREMOVABLE );
if( !pseudo.put_in( mag_mod, pocket_type::MOD ).success() ) {
debugmsg( "tool %s has no space for a %s, this is likely a bug",
pseudo.typeId().str(), mag_mod.type->nname( 1 ) );
}
itype_id mag_type;
if( pseudo.can_link_up() ) {
mag_type = itype_pseudo_magazine;
} else {
mag_type = pseudo.magazine_default();
}
item mag( mag_type );
mag.clear_items(); // no initial ammo
if( !pseudo.put_in( mag, pocket_type::MAGAZINE_WELL ).success() ) {
debugmsg( "inserting %s into %s's MAGAZINE_WELL pocket failed",
mag.typeId().str(), pseudo.typeId().str() );
return null_item_reference();
}
pseudo.ammo_set( itype_battery, part->vehicle().drain( here, itype_battery,
pseudo.ammo_capacity( ammo_battery ),
return_true< vehicle_part &>, false ) ); // no cable loss since all of this is virtual
return pseudo;
}
void clean_up() {
if( !part ) {
return;
}
map &here = get_map();
part->vehicle().charge_battery( here, pseudo.ammo_remaining( ),
false ); // return unused charges without cable loss
}
~weldrig_hack() {
clean_up();
}
};
} // namespace
void activity_handlers::repair_item_finish( player_activity *act, Character *you )
{
::repair_item_finish( act, you, false );
}
void repair_item_finish( player_activity *act, Character *you, bool no_menu )
bool weldrig_hack::init( itype_id vp_tool_id, const tripoint_bub_ms &vp_pos )
{
map &here = get_map();
const std::string iuse_name_string = act->get_str_value( 0, "repair_item" );
repeat_type repeat = static_cast<repeat_type>( act->get_value( 0,
static_cast<int>( repeat_type::INIT ) ) );
weldrig_hack w_hack;
item_location *ploc = nullptr;
if( !act->targets.empty() ) {
ploc = act->targets.data();
const optional_vpart_position vp = here.veh_at( vp_pos );
if( !vp ) {
return false;
}
item *main_tool = &( !w_hack.init( *act ) ?
ploc ?
**ploc : you->i_at( act->index ) : w_hack.get_item() );
if( main_tool == nullptr ) {
debugmsg( "Empty main tool for repair" );
act->set_to_null();
return;
itype_id tool_id( vp_tool_id );
pseudo_tool = item( tool_id, calendar::turn );
part_with_pseudo_tool = vp->part_with_tool( here, tool_id );
return part_with_pseudo_tool.has_value();
}
item *weldrig_hack::get_item()
{
map &here = get_map();
if( !part_with_pseudo_tool ) {
return nullptr;
}
item *used_tool = main_tool->get_usable_item( iuse_name_string );
if( used_tool == nullptr ) {
debugmsg( "Lost tool used for long repair" );
act->set_to_null();
pseudo_tool.set_flag( json_flag_PSEUDO );
item mag_mod( itype_pseudo_magazine_mod );
mag_mod.set_flag( json_flag_IRREMOVABLE );
if( !pseudo_tool.put_in( mag_mod, pocket_type::MOD ).success() ) {
debugmsg( "tool %s has no space for a %s, this is likely a bug",
pseudo_tool.typeId().str(), mag_mod.type->nname( 1 ) );
}
itype_id mag_type;
if( pseudo_tool.can_link_up() ) {
mag_type = itype_pseudo_magazine;
} else {
mag_type = pseudo_tool.magazine_default();
}
item mag( mag_type );
mag.clear_items(); // no initial ammo
if( !pseudo_tool.put_in( mag, pocket_type::MAGAZINE_WELL ).success() ) {
debugmsg( "inserting %s into %s's MAGAZINE_WELL pocket failed",
mag.typeId().str(), pseudo_tool.typeId().str() );
return nullptr;
}
pseudo_tool.ammo_set( itype_battery, part_with_pseudo_tool->vehicle().battery_left( here ) );
return &pseudo_tool;
}
void weldrig_hack::vehicle_drain()
{
map &here = get_map();
// no cable loss since all of this is virtual
part_with_pseudo_tool->vehicle().drain( here, itype_battery, pseudo_tool.ammo_required(),
return_true< vehicle_part &>, false );
}
void repair_item_activity_actor::finish( player_activity &act, Character &who )
{
item *used_tool = get_repair_tool( act );
if( !used_tool ) {
// get_repair_tool sets this activity to null if no valid tool is found
return;
}
const use_function *use_fun = used_tool->get_use( iuse_name_string );
const use_function *use_func = used_tool->typeId()->get_use( repair_iuse_actor_name );
// TODO: De-uglify this block. Something like get_use<iuse_actor_type>() maybe?
const repair_item_actor *actor = dynamic_cast<const repair_item_actor *>
( use_fun->get_actor_ptr() );
if( actor == nullptr ) {
const repair_item_actor *repair_iuse = dynamic_cast<const repair_item_actor *>
( use_func->get_actor_ptr() );
if( repair_iuse == nullptr ) {
debugmsg( "iuse_actor type descriptor and actual type mismatch" );
act->set_to_null();
return;
}
// Valid Repeat choice and target, attempt repair.
if( repeat != repeat_type::INIT && act->targets.size() >= 2 ) {
item_location &fix_location = act->targets[1];
if( !fix_location ) {
// The item could disappear for various reasons: moved by follower, burned up, eaten by a grue, etc.
you->add_msg_if_player( m_warning, _( "You can no longer find the item to repair." ) );
act->set_to_null();
if( stage != repair_stage::INIT && repaired_item.valid() ) {
do_repair( act, who, repair_iuse, *used_tool );
if( !act ) {
return;
}
// Remember our level: we want to stop retrying on level up
const int old_level = you->get_skill_level( actor->used_skill );
const repair_item_actor::attempt_hint attempt = actor->repair( *you, *used_tool,
fix_location, repeat == repeat_type::REFIT_ONCE || repeat == repeat_type::REFIT_FULL );
// Warning: The above call to `repair_item_actor::repair` might
// invalidate the item and the item_location, for example when
// spilling items from spillable containers. It is therefore
// important that we don't use `fix_location` in code below
// here without first checking whether it is still valid.
// If the item being repaired has been destroyed stop further
// processing in case the items being used for the repair was
// contained by the item being repaired, which will result
// in the tool being invalid
if( attempt == repair_item_actor::AS_DESTROYED ) {
act->set_to_null();
return;
}
if( attempt != repair_item_actor::AS_CANT ) {
const tripoint_bub_ms tool_pos = ( ploc && ploc->where() == item_location::type::map )
? ploc->pos_bub( here )
: you->pos_bub( here );
used_tool->consume_tool_uses( 1, here, tool_pos, you );
}
// TODO: Allow setting this in the actor
// TODO: Don't use charges_to_use: welder has 50 charges per use, soldering iron has 1
if( !used_tool->ammo_sufficient( you ) ) {
you->add_msg_if_player( _( "Your %1$s ran out of charges." ), used_tool->tname() );
act->set_to_null();
return;
}
// Print message explaining why we stopped
// But only if we didn't destroy the item (because then it's obvious)
const bool destroyed = attempt == repair_item_actor::AS_DESTROYED;
const bool cannot_continue_repair = attempt == repair_item_actor::AS_CANT || destroyed ||
!fix_location ||
!actor->can_repair_target( *you, *fix_location, !destroyed, true );
if( cannot_continue_repair ) {
// Cannot continue to repair target, select another target.
// **Warning**: as soon as the item is popped back, it is destroyed and can't be used anymore!
act->targets.pop_back();
}
const bool event_happened = attempt == repair_item_actor::AS_FAILURE ||
attempt == repair_item_actor::AS_SUCCESS ||
old_level != static_cast<int>( you->get_skill_level( actor->used_skill ) );
const bool can_refit = !destroyed && !cannot_continue_repair &&
fix_location->has_flag( flag_VARSIZE ) &&
!fix_location->has_flag( flag_FIT );
const bool need_input =
( repeat == repeat_type::ONCE ) ||
( repeat == repeat_type::EVENT && event_happened ) ||
( repeat == repeat_type::FULL && cannot_continue_repair ) ||
( repeat == repeat_type::REFIT_ONCE ) ||
( repeat == repeat_type::REFIT_FULL && !can_refit );
if( need_input ) {
repeat = repeat_type::INIT;
if( no_menu ) {
act->set_to_null();
return;
}
}
}
// Check tool is valid before we query target and Repeat choice.
if( !actor->can_use_tool( *you, *used_tool, true ) ) {
act->set_to_null();
if( !repair_iuse->can_use_tool( who, *used_tool, true ) ) {
act.set_to_null();
return;
}
// target selection and validation.
while( act->targets.size() < 2 ) {
item_location item_loc = game_menus::inv::repair( *you, actor, main_tool );
while( !repaired_item.valid() ) {
item_location item_loc = game_menus::inv::repair( who, repair_iuse, used_tool );
if( item_loc == item_location::nowhere ) {
you->add_msg_if_player( m_info, _( "Never mind." ) );
act->set_to_null();
who.add_msg_if_player( m_info, _( "Never mind." ) );
act.set_to_null();
return;
}
if( actor->can_repair_target( *you, *item_loc, true, true ) ) {
act->targets.emplace_back( item_loc );
repeat = repeat_type::INIT;
if( repair_iuse->can_repair_target( who, *item_loc, true, true ) ) {
repaired_item = item_loc;
stage = repair_stage::INIT;
}
}
const item &fix = *act->targets[1];
const bool can_refit = fix.has_flag( flag_VARSIZE ) && !fix.has_flag( flag_FIT );
if( repeat == repeat_type::INIT ) {
const int level = you->get_skill_level( actor->used_skill );
repair_item_actor::repair_type action_type = actor->default_action( fix, level );
if( action_type == repair_item_actor::RT_NOTHING ) {
you->add_msg_if_player( _( "You won't learn anything more by doing that." ) );
if( stage == repair_stage::INIT ) {
init_repair( act, who, repair_iuse, *used_tool );
if( !act ) {
return;
}
const std::pair<float, float> chance = actor->repair_chance( *you, fix, action_type );
if( chance.first <= 0.0f ) {
action_type = repair_item_actor::RT_PRACTICE;
}
std::string title = string_format( _( "%s %s\n" ),
repair_item_actor::action_description( action_type ),
fix.tname() );
ammotype current_ammo;
std::string ammo_name;
if( used_tool->has_flag( flag_USE_UPS ) || used_tool->has_link_data() ) {
ammo_name = _( "battery" );
current_ammo = ammo_battery;
} else if( used_tool->has_flag( flag_USES_BIONIC_POWER ) ) {
ammo_name = _( "bionic power" );
} else {
const itype_id ammo_id = used_tool->ammo_current().is_null()
? used_tool->ammo_default() : used_tool->ammo_current();
if( const std::optional<ammotype> at = item::ammotype_of( ammo_id ) ) {
current_ammo = *at;
}
ammo_name = item::nname( used_tool->ammo_current() );
}
int ammo_remaining = used_tool->ammo_remaining_linked( here, you );
std::set<itype_id> valid_entries = actor->get_valid_repair_materials( fix );
const temp_crafting_inventory &crafting_inv = you->crafting_inventory();
std::function<bool( const item & )> filter;
if( fix.is_filthy() ) {
filter = []( const item & component ) {
return component.allow_crafting_component();
};
} else {
filter = is_crafting_component;
}
std::vector<std::string> material_list;
for( const auto &component_id : valid_entries ) {
if( item::count_by_charges( component_id ) ) {
if( crafting_inv.has_charges( component_id, 1 ) ) {
material_list.push_back( string_format( _( "%s (%d)" ), item::nname( component_id ),
crafting_inv.charges_of( component_id ) ) );
}
} else if( crafting_inv.has_amount( component_id, 1, false, filter ) ) {
material_list.push_back( string_format( _( "%s (%d)" ), item::nname( component_id ),
crafting_inv.amount_of( component_id, false ) ) );
}
}
const int per_use = used_tool->expected_cost_per_use();
title += used_tool->is_tool() && used_tool->has_flag( flag_USES_NEARBY_AMMO )
? string_format( _( "Charges: <color_light_blue>%d</color> %s (%d per use)\n" ),
ammo_remaining,
ammo_name,
per_use )
: string_format( _( "Charges: <color_light_blue>%d/%d</color> %s (%d per use)\n" ),
ammo_remaining, used_tool->ammo_capacity( current_ammo, true ),
ammo_name,
per_use );
title += string_format( _( "Materials available: %s\n" ), string_join( material_list, ", " ) );
title += string_format( _( "Skill used: <color_light_blue>%s (%d)</color>\n" ),
actor->used_skill.obj().name(), level );
title += string_format( _( "Success chance: <color_light_blue>%.1f</color>%%\n" ),
100.0f * chance.first );
title += string_format( _( "Damage chance: <color_light_blue>%.1f</color>%%" ),
100.0f * chance.second );
if( act->values.empty() ) {
act->values.resize( 1 );
}
do {
repeat = repeat_menu( title, repeat, can_refit );
if( repeat == repeat_type::CANCEL ) {
act->set_to_null();
return;
}
act->values[0] = static_cast<int>( repeat );
// BACK selected, redo target selection next.
if( repeat == repeat_type::INIT ) {
you->activity.targets.pop_back();
return;
}
if( repeat == repeat_type::FULL && fix.damage() <= fix.degradation() && !can_refit ) {
const char *msg = fix.damage_level() > 0 ?
_( "Your %s is repaired as much as possible, considering the degradation." ) :
_( "Your %s is already fully repaired." );
you->add_msg_if_player( m_info, msg, fix.tname() );
repeat = repeat_type::INIT;
}
} while( repeat == repeat_type::INIT );
}
// Otherwise keep retrying
act->moves_left = actor->move_cost;
act.moves_left = repair_iuse->move_cost;
}
void repair_item_activity_actor::do_repair( player_activity &act, Character &who,
const repair_item_actor *repair_iuse, item &repair_tool )
{
map &here = get_map();
if( !repaired_item ) {
// The item could disappear for various reasons: moved by follower, burned up, eaten by a grue, etc.
who.add_msg_if_player( m_warning, _( "You can no longer find the item to repair." ) );
act.set_to_null();
return;
}
// Remember our level: we want to stop retrying on level up
const int old_level = who.get_skill_level( repair_iuse->used_skill );
const repair_item_actor::attempt_hint attempt = repair_iuse->repair( who, repair_tool,
repaired_item, stage == repair_stage::REFIT_ONCE || stage == repair_stage::REFIT_FULL );
// Warning: The above call to `repair_item_actor::repair` might
// invalidate the item and the item_location, for example when
// spilling items from spillable containers. It is therefore
// important that we don't use `fix_location` in code below
// here without first checking whether it is still valid.
// If the item being repaired has been destroyed stop further
// processing in case the items being used for the repair was
// contained by the item being repaired, which will result
// in the tool being invalid
if( attempt == repair_item_actor::AS_DESTROYED ||
attempt == repair_item_actor::AS_CANT_USE_TOOL ) {
act.set_to_null();
return;
}
if( attempt != repair_item_actor::AS_CANT ) {
const tripoint_bub_ms tool_pos = ( tool_to_repair_with.valid() &&
tool_to_repair_with.where() == item_location::type::map )
? tool_to_repair_with.pos_bub( here )
: vp_tool->second;
repair_tool.consume_tool_uses( 1, here, tool_pos, &who );
w_hack.vehicle_drain();
}
// TODO: Allow setting this in the actor
if( !repair_tool.ammo_sufficient( &who ) ) {
who.add_msg_if_player( _( "Your %1$s ran out of charges." ), repair_tool.tname() );
act.set_to_null();
return;
}
// Print message explaining why we stopped
// But only if we didn't destroy the item (because then it's obvious)
const bool destroyed = attempt == repair_item_actor::AS_DESTROYED;
const bool cannot_continue_repair = attempt == repair_item_actor::AS_CANT || destroyed ||
!repaired_item ||
!repair_iuse->can_repair_target( who, *repaired_item, !destroyed, true );
if( cannot_continue_repair ) {
// Cannot continue to repair target, select another target.
// **Warning**: as soon as the item is popped back, it is destroyed and can't be used anymore!
repaired_item = item_location::nowhere;
}
const bool event_happened = attempt == repair_item_actor::AS_FAILURE ||
attempt == repair_item_actor::AS_SUCCESS ||
old_level != static_cast<int>( who.get_skill_level( repair_iuse->used_skill ) );
const bool can_refit = !destroyed && !cannot_continue_repair &&
repaired_item->has_flag( flag_VARSIZE ) &&
!repaired_item->has_flag( flag_FIT );
const bool need_input =
( stage == repair_stage::ONCE ) ||
( stage == repair_stage::EVENT && event_happened ) ||
( stage == repair_stage::FULL && cannot_continue_repair ) ||
( stage == repair_stage::REFIT_ONCE ) ||
( stage == repair_stage::REFIT_FULL && !can_refit );
if( need_input ) {
stage = repair_stage::INIT;
if( no_menu ) {
act.set_to_null();
return;
}
}
}
// Check tool is valid before we query target and Repeat choice.
void repair_item_activity_actor::init_repair( player_activity &act, Character &who,
const repair_item_actor *repair_iuse, item &repair_tool )
{
map &here = get_map();
const bool can_refit = repaired_item->has_flag( flag_VARSIZE ) &&
!repaired_item->has_flag( flag_FIT );
const int level = who.get_skill_level( repair_iuse->used_skill );
repair_item_actor::repair_type action_type = repair_iuse->default_action( *repaired_item, level );
if( action_type == repair_item_actor::RT_NOTHING ) {
who.add_msg_if_player( _( "You won't learn anything more by doing that." ) );
}
const std::pair<float, float> chance = repair_iuse->repair_chance( who, *repaired_item,
action_type );
if( chance.first <= 0.0f ) {
action_type = repair_item_actor::RT_PRACTICE;
}
std::string title = string_format( _( "%s %s\n" ),
repair_item_actor::action_description( action_type ),
repaired_item->tname() );
ammotype current_ammo;
std::string ammo_name;
if( repair_tool.has_flag( flag_USE_UPS ) || repair_tool.has_link_data() ) {
ammo_name = _( "battery" );
current_ammo = ammo_battery;
} else if( repair_tool.has_flag( flag_USES_BIONIC_POWER ) ) {
ammo_name = _( "bionic power" );
} else {
const itype_id ammo_id = repair_tool.ammo_current().is_null()
? repair_tool.ammo_default() : repair_tool.ammo_current();
if( const std::optional<ammotype> at = item::ammotype_of( ammo_id ) ) {
current_ammo = *at;
}
ammo_name = item::nname( repair_tool.ammo_current() );
}
int ammo_remaining = repair_tool.ammo_remaining();
std::set<itype_id> valid_entries = repair_iuse->get_valid_repair_materials( *repaired_item );
const temp_crafting_inventory &crafting_inv = who.crafting_inventory();
std::function<bool( const item & )> filter;
if( repaired_item->is_filthy() ) {
filter = []( const item & component ) {
return component.allow_crafting_component();
};
} else {
filter = is_crafting_component;
}
std::vector<std::string> material_list;
for( const auto &component_id : valid_entries ) {
if( item::count_by_charges( component_id ) ) {
if( crafting_inv.has_charges( component_id, 1 ) ) {
material_list.push_back( string_format( _( "%s (%d)" ), item::nname( component_id ),
crafting_inv.charges_of( component_id ) ) );
}
} else if( crafting_inv.has_amount( component_id, 1, false, filter ) ) {
material_list.push_back( string_format( _( "%s (%d)" ), item::nname( component_id ),
crafting_inv.amount_of( component_id, false ) ) );
}
}
const int per_use = repair_tool.expected_cost_per_use();
std::string title_uses_count;
if( vp_tool.has_value() ) {
int vehicle_battery_level = 0;
if( w_hack.part_with_pseudo_tool.has_value() ) {
vehicle_battery_level = w_hack.part_with_pseudo_tool->vehicle().battery_power_level().second;
}
title_uses_count = title_uses_count = string_format(
_( "Charges: <color_light_blue>%d/%d</color> %s (%d per use)\n" ),
ammo_remaining, vehicle_battery_level, ammo_name, per_use );
} else {
ammo_remaining = repair_tool.ammo_remaining_linked( here, &who );
if( repair_tool.is_tool() && repair_tool.has_flag( flag_USES_NEARBY_AMMO ) ) {
title_uses_count = string_format( _( "Charges: <color_light_blue>%d</color> %s (%d per use)\n" ),
ammo_remaining, ammo_name, per_use );
} else {
title_uses_count = string_format( _( "Charges: <color_light_blue>%d/%d</color> %s (%d per use)\n" ),
ammo_remaining, repair_tool.ammo_capacity( current_ammo, true ), ammo_name, per_use );
}
}
title += title_uses_count;
title += string_format( _( "Materials available: %s\n" ), string_join( material_list, ", " ) );
title += string_format( _( "Skill used: <color_light_blue>%s (%d)</color>\n" ),
repair_iuse->used_skill.obj().name(), level );
title += string_format( _( "Success chance: <color_light_blue>%.1f</color>%%\n" ),
100.0f * chance.first );
title += string_format( _( "Damage chance: <color_light_blue>%.1f</color>%%" ),
100.0f * chance.second );
do {
stage = repeat_menu( title, stage, can_refit );
if( stage == repair_stage::CANCEL ) {
act.set_to_null();
return;
}
//repeat_type = repeat;
// BACK selected, redo target selection next.
if( stage == repair_stage::INIT ) {
repaired_item = item_location::nowhere;
return;
}
if( stage == repair_stage::FULL && repaired_item->damage() <= repaired_item->degradation() &&
!can_refit ) {
const char *msg = repaired_item->damage_level() > 0 ?
_( "Your %s is repaired as much as possible, considering the degradation." ) :
_( "Your %s is already fully repaired." );
who.add_msg_if_player( m_info, msg, repaired_item->tname() );
stage = repair_stage::INIT;
}
} while( stage == repair_stage::INIT );
}
void activity_handlers::travel_do_turn( player_activity *act, Character *you )
@@ -718,17 +667,17 @@ void activity_handlers::travel_do_turn( player_activity *act, Character *you )
act->set_to_null();
}
void activity_handlers::repair_item_do_turn( player_activity *act, Character *you )
void repair_item_activity_actor::do_turn( player_activity &act, Character &who )
{
// Moves are decremented based on a combination of speed and good vision (not in the dark, farsighted, etc)
const float exertion_mult = you->exertion_adjusted_move_multiplier( act->exertion_level() );
const int effective_moves = you->get_moves() / ( you->fine_detail_vision_mod() * exertion_mult );
if( effective_moves <= act->moves_left ) {
act->moves_left -= effective_moves;
you->set_moves( 0 );
const float exertion_mult = who.exertion_adjusted_move_multiplier( act.exertion_level() );
const int effective_moves = who.get_moves() / ( who.fine_detail_vision_mod() * exertion_mult );
if( effective_moves <= act.moves_left ) {
act.moves_left -= effective_moves;
who.set_moves( 0 );
} else {
you->mod_moves( -act->moves_left * you->fine_detail_vision_mod() );
act->moves_left = 0;
who.mod_moves( -act.moves_left * who.fine_detail_vision_mod() );
act.moves_left = 0;
}
}
+1 -4
View File
@@ -72,6 +72,7 @@ enum class do_activity_reason : int {
NEEDS_TREE_CHOPPING, //* There is a tree there that needs to be chopped
NEEDS_BIG_BUTCHERING, //* There is at least one corpse there to butcher, and it's a big one
NEEDS_BUTCHERING, //* There is at least one corpse there to butcher, and there's no need for additional tools
NEEDS_DISSECTING, //* There is at least one corpse there to dissect
NEEDS_CUT_HARVESTING, //* There is a plant there which needs a grass-cutting tool to harvest
ALREADY_WORKING, // somebody is already working there
NEEDS_VEH_DECONST, //* There is a vehicle part there that we can deconstruct, given the right tools.
@@ -155,7 +156,6 @@ bool resume_for_multi_activities( Character &you );
/** activity_do_turn functions: */
void fill_liquid_do_turn( player_activity *act, Character *you );
void repair_item_do_turn( player_activity *act, Character *you );
void travel_do_turn( player_activity *act, Character *you );
// defined in activity_handlers.cpp
@@ -175,9 +175,6 @@ void clean_may_activity_occupancy_items_var( Character &you );
std::vector<item_location> drop_fetched_items( Character &who, const std::list<item> &items,
map *here, const tripoint_bub_ms &where );
void clean_may_activity_occupancy_items_var_if_is_avatar_and_no_activity_now( Character &you );
// defined in activity_handlers.cpp
extern const std::map< activity_id, std::function<void( player_activity *, Character * )> >
finish_functions;
} // namespace activity_handlers
+75 -4
View File
@@ -98,6 +98,7 @@ static const activity_id ACT_MULTIPLE_CHOP_TREES( "ACT_MULTIPLE_CHOP_TREES" );
static const activity_id ACT_MULTIPLE_CONSTRUCTION( "ACT_MULTIPLE_CONSTRUCTION" );
static const activity_id ACT_MULTIPLE_CRAFT( "ACT_MULTIPLE_CRAFT" );
static const activity_id ACT_MULTIPLE_DIS( "ACT_MULTIPLE_DIS" );
static const activity_id ACT_MULTIPLE_DISSECT( "ACT_MULTIPLE_DISSECT" );
static const activity_id ACT_MULTIPLE_FARM( "ACT_MULTIPLE_FARM" );
static const activity_id ACT_MULTIPLE_FISH( "ACT_MULTIPLE_FISH" );
static const activity_id ACT_MULTIPLE_MINE( "ACT_MULTIPLE_MINE" );
@@ -121,6 +122,7 @@ static const itype_id itype_welder( "welder" );
static const quality_id qual_AXE( "AXE" );
static const quality_id qual_BUTCHER( "BUTCHER" );
static const quality_id qual_CUT_FINE( "CUT_FINE" );
static const quality_id qual_DIG( "DIG" );
static const quality_id qual_FISHING_ROD( "FISHING_ROD" );
static const quality_id qual_GRASS_CUT( "GRASS_CUT" );
@@ -134,6 +136,7 @@ static const requirement_id requirement_data_multi_butcher( "multi_butcher" );
static const requirement_id requirement_data_multi_butcher_big( "multi_butcher_big" );
static const requirement_id requirement_data_multi_chopping_planks( "multi_chopping_planks" );
static const requirement_id requirement_data_multi_chopping_trees( "multi_chopping_trees" );
static const requirement_id requirement_data_multi_dissect( "multi_dissect" );
static const requirement_id
requirement_data_multi_farm_cut_harvesting( "multi_farm_cut_harvesting" );
static const requirement_id requirement_data_multi_farm_tilling( "multi_farm_tilling" );
@@ -154,6 +157,7 @@ static const zone_type_id zone_type_CAMP_STORAGE( "CAMP_STORAGE" );
static const zone_type_id zone_type_CHOP_TREES( "CHOP_TREES" );
static const zone_type_id zone_type_CONSTRUCTION_BLUEPRINT( "CONSTRUCTION_BLUEPRINT" );
static const zone_type_id zone_type_DISASSEMBLE( "DISASSEMBLE" );
static const zone_type_id zone_type_DISSECT( "DISSECT" );
static const zone_type_id zone_type_FARM_PLOT( "FARM_PLOT" );
static const zone_type_id zone_type_FISHING_SPOT( "FISHING_SPOT" );
static const zone_type_id zone_type_LOOT_CORPSE( "LOOT_CORPSE" );
@@ -1972,6 +1976,7 @@ void fill_requirement_inventory( temp_crafting_inventory &temp_inv,
return id == ACT_MULTIPLE_FARM ||
id == ACT_MULTIPLE_CHOP_PLANKS ||
id == ACT_MULTIPLE_BUTCHER ||
id == ACT_MULTIPLE_DISSECT ||
id == ACT_VEHICLE_DECONSTRUCTION ||
id == ACT_VEHICLE_REPAIR ||
id == ACT_MULTIPLE_CHOP_TREES ||
@@ -2405,6 +2410,40 @@ activity_reason_info multi_butchery_activity_actor::multi_activity_can_do( Chara
return activity_reason_info::fail( do_activity_reason::NO_ZONE );
}
activity_reason_info multi_dissection_activity_actor::multi_activity_can_do( Character &you,
const tripoint_bub_ms &src_loc )
{
map &here = get_map();
std::vector<item> corpses;
for( const item &i : here.i_at( src_loc ) ) {
// make sure nobody else is working on that corpse right now
if( i.is_corpse() &&
( !i.has_var( "activity_var" ) || i.get_var( "activity_var" ) == you.name ) ) {
const mtype corpse = *i.get_mtype();
corpses.push_back( i );
}
}
if( corpses.empty() ) {
return activity_reason_info::fail( do_activity_reason::NO_COMPONENTS );
}
// Multi-dissection is refused if the corpses include species we empathize with
for( item &body : corpses ) {
const mtype &corpse = *body.get_mtype();
for( species_id species : corpse.species ) {
if( you.empathizes_with_species( species ) ) {
return activity_reason_info::fail( do_activity_reason::REFUSES_THIS_WORK );
}
}
}
// We need a fine cutting implement
if( you.has_unreserved_quality( qual_CUT_FINE, 1 ) ) {
return activity_reason_info::ok( do_activity_reason::NEEDS_DISSECTING );
} else {
return activity_reason_info::fail( do_activity_reason::NEEDS_DISSECTING );
}
}
activity_reason_info multi_read_activity_actor::multi_activity_can_do( Character &you,
const tripoint_bub_ms & )
{
@@ -2716,6 +2755,7 @@ bool activity_reason_continue( do_activity_reason reason )
reason == do_activity_reason::NEEDS_CHOPPING ||
reason == do_activity_reason::NEEDS_BUTCHERING ||
reason == do_activity_reason::NEEDS_BIG_BUTCHERING ||
reason == do_activity_reason::NEEDS_DISSECTING ||
reason == do_activity_reason::NEEDS_VEH_DECONST ||
reason == do_activity_reason::NEEDS_VEH_REPAIR ||
reason == do_activity_reason::NEEDS_TREE_CHOPPING ||
@@ -2735,6 +2775,7 @@ bool activity_reason_picks_up_tools( do_activity_reason reason )
reason == do_activity_reason::NEEDS_CHOPPING ||
reason == do_activity_reason::NEEDS_BUTCHERING ||
reason == do_activity_reason::NEEDS_BIG_BUTCHERING ||
reason == do_activity_reason::NEEDS_DISSECTING ||
reason == do_activity_reason::NEEDS_VEH_DECONST ||
reason == do_activity_reason::NEEDS_VEH_REPAIR ||
reason == do_activity_reason::NEEDS_TREE_CHOPPING ||
@@ -2749,6 +2790,7 @@ bool activity_must_be_in_zone( activity_id act_id, const tripoint_bub_ms &src_lo
act_id == ACT_FETCH_REQUIRED ||
act_id == ACT_MULTIPLE_FARM ||
act_id == ACT_MULTIPLE_BUTCHER ||
act_id == ACT_MULTIPLE_DISSECT ||
act_id == ACT_MULTIPLE_CHOP_PLANKS ||
act_id == ACT_MULTIPLE_CHOP_TREES ||
act_id == ACT_VEHICLE_DECONSTRUCTION ||
@@ -2993,6 +3035,16 @@ std::optional<requirement_id> multi_butchery_activity_actor::multi_activity_requ
return requirement_id::NULL_ID();
}
std::optional<requirement_id> multi_dissection_activity_actor::multi_activity_requirements(
Character &,
activity_reason_info &act_info, const tripoint_bub_ms &, const zone_data * )
{
if( act_info.reason == do_activity_reason::NEEDS_DISSECTING ) {
return requirement_data_multi_dissect;
}
return requirement_id::NULL_ID();
}
std::optional<requirement_id> multi_fish_activity_actor::multi_activity_requirements( Character &,
activity_reason_info &act_info, const tripoint_bub_ms &, const zone_data * )
{
@@ -3540,7 +3592,7 @@ bool fetch_required_activity_actor::fetch_activity(
}
static bool butcher_corpse_activity( Character &you, const tripoint_bub_ms &src_loc,
const do_activity_reason &reason )
const do_activity_reason &reason, butcher_type type )
{
map &here = get_map();
map_stack items = here.i_at( src_loc );
@@ -3549,12 +3601,13 @@ static bool butcher_corpse_activity( Character &you, const tripoint_bub_ms &src_
if( elem.is_corpse() &&
( !elem.has_var( "activity_var" ) || elem.get_var( "activity_var" ) == you.name ) ) {
const mtype corpse = *elem.get_mtype();
if( corpse.size > creature_size::medium && reason != do_activity_reason::NEEDS_BIG_BUTCHERING ) {
if( corpse.size > creature_size::medium && reason != do_activity_reason::NEEDS_BIG_BUTCHERING
&& type != butcher_type::DISSECT ) {
continue;
}
elem.set_var( "activity_var", you.name );
item_location corpse_loc = item_location( map_cursor( src_loc ), &elem );
bd.emplace_back( corpse_loc, butcher_type::FULL );
bd.emplace_back( corpse_loc, type );
}
}
if( !bd.empty() ) {
@@ -3707,6 +3760,9 @@ zone_type_id get_zone_for_act( const tripoint_bub_ms &src_loc, const zone_manage
if( act_id == ACT_MULTIPLE_BUTCHER ) {
ret = zone_type_LOOT_CORPSE;
}
if( act_id == ACT_MULTIPLE_DISSECT ) {
ret = zone_type_DISSECT;
}
if( act_id == ACT_MULTIPLE_CHOP_PLANKS ) {
ret = zone_type_LOOT_WOOD;
}
@@ -4036,7 +4092,22 @@ bool multi_butchery_activity_actor::multi_activity_do( Character &you,
if( reason == do_activity_reason::NEEDS_BUTCHERING ||
reason == do_activity_reason::NEEDS_BIG_BUTCHERING ) {
if( butcher_corpse_activity( you, src_loc, reason ) ) {
if( butcher_corpse_activity( you, src_loc, reason, butcher_type::FULL ) ) {
return false;
}
}
return true;
}
bool multi_dissection_activity_actor::multi_activity_do( Character &you,
const activity_reason_info &act_info,
const tripoint_abs_ms &, const tripoint_bub_ms &src_loc )
{
const do_activity_reason &reason = act_info.reason;
if( reason == do_activity_reason::NEEDS_DISSECTING ) {
if( butcher_corpse_activity( you, src_loc, reason, butcher_type::DISSECT ) ) {
return false;
}
}
-20
View File
@@ -11,7 +11,6 @@
#include "debug.h"
#include "enums.h"
#include "generic_factory.h"
#include "sounds.h"
#include "string_formatter.h"
#include "translations.h"
#include "type_id.h"
@@ -143,12 +142,6 @@ void activity_type::check_consistency()
}
}
for( const auto &pair : activity_handlers::finish_functions ) {
if( activity_type_all.find( pair.first ) == activity_type_all.end() ) {
debugmsg( "The finish_function %s doesn't correspond to a valid activity_type",
pair.first.c_str() );
}
}
}
void activity_type::call_do_turn( player_activity *act, Character *you ) const
@@ -159,19 +152,6 @@ void activity_type::call_do_turn( player_activity *act, Character *you ) const
}
}
bool activity_type::call_finish( player_activity *act, Character *you ) const
{
const auto &pair = activity_handlers::finish_functions.find( id_ );
if( pair != activity_handlers::finish_functions.end() ) {
pair->second( act, you );
// kill activity sounds at finish
sfx::end_activity_sounds();
return true;
}
return false;
}
void activity_type::reset()
{
activity_type_all.clear();
-2
View File
@@ -107,8 +107,6 @@ class activity_type
return activity_level;
}
void call_do_turn( player_activity *, Character * ) const;
/** Returns whether it had a finish function or not */
bool call_finish( player_activity *, Character * ) const;
/** JSON stuff */
void load( const JsonObject &jo );
+1 -2
View File
@@ -1710,9 +1710,8 @@ bool advanced_inventory::action_move_item( advanced_inv_listitem *sitem,
// make sure advanced inventory is reopened after activity completion
do_return_entry();
if( srcarea == AIM_WORN && destarea == AIM_INVENTORY ) {
// if worn, we need to fix with the worn index number (starts at -2, as -1 is weapon)
// this is ok because worn items are never stacked (can't move more than 1)
player_character.takeoff( Character::worn_position_to_index( sitem->idx ) + 1 );
player_character.takeoff( item_location( player_character, sitem->items.front().get_item() ) );
} else {
// important if item is worn
if( player_character.can_drop( it_copy ).success() ) {
+17 -10
View File
@@ -215,36 +215,43 @@ bool avatar_action::move( avatar &you, map &m, const tripoint_rel_ms &d )
dest_loc.z() -= 1;
via_ramp = true;
}
// Berserk creatures cannot voluntarily move farther away from visible hostiles.
if( you.has_effect( effect_berserk ) ) {
bool has_hostile = false;
bool approaching_hostile = false;
// assume we do not chase anyone
bool chasing = false;
bool there_is_someone_to_chase = false;
get_creature_tracker().for_each_reachable( you, [&]( Creature * critter ) {
// if already chasing someone, early return
if( chasing ) {
return;
}
// cannot chase yourself
if( critter == &you ) {
return;
}
// cannot chase someone you cannot see
if( !you.sees( here, *critter ) ) {
return;
}
// cannot chase non-hostiles
if( critter->attitude_to( you ) != Creature::Attitude::HOSTILE ) {
return;
}
has_hostile = true;
there_is_someone_to_chase = true;
// check if we actually chase it
const int current_dist = rl_dist( you_pos, critter->pos_bub() );
const int new_dist = rl_dist( dest_loc, critter->pos_bub() );
if( new_dist <= current_dist ) {
approaching_hostile = true;
// we either do not increase, or maintain our distance
// so we chase at least this pal
chasing = chasing || true;
}
} );
if( has_hostile && !approaching_hostile ) {
if( there_is_someone_to_chase && !chasing ) {
add_msg( m_info, _( "You are too enraged to retreat!" ) );
return false;
}
+11 -11
View File
@@ -1124,13 +1124,13 @@ std::vector<wound> &bodypart::get_wounds()
return wounds;
}
void bodypart::add_or_worsen_wound( const wound_type_id wd )
void bodypart::add_or_worsen_wound( const wound_type_id wd, const Character *who )
{
wound wo = wound( wd );
add_or_worsen_wound( wo );
wound wo = wound( wd, who, id );
add_or_worsen_wound( wo, who );
}
void bodypart::add_or_worsen_wound( const wound &wd )
void bodypart::add_or_worsen_wound( const wound &wd, const Character *who )
{
const std::vector<wound_progress> &wound_progression = wd.type->wound_progression;
@@ -1141,17 +1141,17 @@ void bodypart::add_or_worsen_wound( const wound &wd )
if( x_in_y( wdp.chance, 100 ) ) {
const wound *old_wound = get_wound( wd.type );
wound new_wound = wound( wdp.id );
wound new_wound = wound( wdp.id, who, id );
new_wound += *old_wound;
add_msg_debug( debugmode::DF_WOUNDS,
"at bodypart %s, wound %s (pain %d, duration %s) progresses to wound %s (pain %d, duration %s).",
id.str(),
wd.type.str(),
wd.get_pain(),
wd.get_pain_raw(),
to_string_writable( wd.get_healing_time() ),
new_wound.type.str(),
new_wound.get_pain(),
new_wound.get_pain_raw(),
to_string_writable( new_wound.get_healing_time() )
);
@@ -1166,7 +1166,7 @@ void bodypart::add_or_worsen_wound( const wound &wd )
"at bodypart %s, adding wound %s (pain %d, duration %s).",
id.str(),
wd.type.str(),
wd.get_pain(),
wd.get_pain_raw(),
to_string_writable( wd.get_healing_time() )
);
@@ -1179,9 +1179,9 @@ void bodypart::add_wound( const wound &wd )
wounds.emplace_back( wd );
}
void bodypart::add_wound( const wound_type_id wd )
void bodypart::add_wound( const wound_type_id wd, const Character &who )
{
wounds.emplace_back( wd );
wounds.emplace_back( wd, &who, id );
}
bool bodypart::has_wounds() const
@@ -1252,7 +1252,7 @@ void bodypart::update_wounds( const Character &who, time_duration time_passed )
who.add_msg_if_player(
m_bad, string_format( it->type->get_progress_timer_message(), body_part_name( id ) ) );
new_wounds.emplace_back( it->wound_progress_timer.value().first );
new_wounds.emplace_back( it->wound_progress_timer.value().first, &who, id );
it = wounds.erase( it );
break;
case wound_update_ret::REMOVE:
+3 -3
View File
@@ -508,11 +508,11 @@ class bodypart
const std::vector<wound> &get_wounds() const;
std::vector<wound> &get_wounds();
void add_or_worsen_wound( wound_type_id wd );
void add_or_worsen_wound( const wound &wd );
void add_or_worsen_wound( wound_type_id wd, const Character *who );
void add_or_worsen_wound( const wound &wd, const Character *who );
void add_wound( const wound &wd );
void add_wound( wound_type_id wd );
void add_wound( wound_type_id wd, const Character &who );
bool has_wounds() const;
bool has_wound( wound_type_id wd ) const;
wound *get_wound( wound_type_id wd_id );
+10 -4
View File
@@ -55,6 +55,7 @@ static const activity_id ACT_DISMEMBER( "ACT_DISMEMBER" );
static const activity_id ACT_DISSECT( "ACT_DISSECT" );
static const activity_id ACT_FIELD_DRESS( "ACT_FIELD_DRESS" );
static const activity_id ACT_MULTIPLE_BUTCHER( "ACT_MULTIPLE_BUTCHER" );
static const activity_id ACT_MULTIPLE_DISSECT( "ACT_MULTIPLE_DISSECT" );
static const activity_id ACT_QUARTER( "ACT_QUARTER" );
static const activity_id ACT_SKIN( "ACT_SKIN" );
@@ -622,9 +623,10 @@ static std::vector<item> create_charge_items( const itype *drop, int count,
for( const fault_id &flt : entry.faults ) {
obj.set_fault( flt );
}
if( !you.backlog.empty() && you.backlog.front().id() == ACT_MULTIPLE_BUTCHER ) {
if( !you.backlog.empty() && (
you.backlog.front().id() == ACT_MULTIPLE_BUTCHER ||
you.backlog.front().id() == ACT_MULTIPLE_DISSECT ) ) {
obj.set_var( "activity_var", you.name );
}
objs.push_back( obj );
}
@@ -897,7 +899,9 @@ bool butchery_drops_harvest( butchery_data bt, Character &you )
for( const fault_id &flt : entry.faults ) {
obj.remove_fault( flt );
}
if( !you.backlog.empty() && you.backlog.front().id() == ACT_MULTIPLE_BUTCHER ) {
if( !you.backlog.empty() && (
you.backlog.front().id() == ACT_MULTIPLE_BUTCHER ||
you.backlog.front().id() == ACT_MULTIPLE_DISSECT ) ) {
obj.set_var( "activity_var", you.name );
}
for( int i = 0; i != roll; ++i ) {
@@ -943,7 +947,9 @@ bool butchery_drops_harvest( butchery_data bt, Character &you )
ruined_parts.set_mtype( &mt );
ruined_parts.set_item_temperature( corpse_item.temperature );
ruined_parts.set_rot( corpse_item.get_rot() );
if( !you.backlog.empty() && you.backlog.front().id() == ACT_MULTIPLE_BUTCHER ) {
if( !you.backlog.empty() && (
you.backlog.front().id() == ACT_MULTIPLE_BUTCHER ||
you.backlog.front().id() == ACT_MULTIPLE_DISSECT ) ) {
ruined_parts.set_var( "activity_var", you.name );
}
for( int i = 0; i < item_charges; ++i ) {
+13 -12
View File
@@ -1844,7 +1844,7 @@ void Character::on_try_dodge()
const float dodge_skill_modifier = ( 20.0f - get_skill_level( skill_dodge ) ) / 20.0f;
burn_energy_legs( - std::floor( static_cast<float>( base_burn_rate ) * 6.0f *
dodge_skill_modifier ) );
set_activity_level( EXTRA_EXERCISE );
set_activity_level( COMBAT_EXERCISE );
}
}
@@ -3481,8 +3481,9 @@ float Character::instantaneous_activity_level() const
int Character::activity_level_index() const
{
// Activity levels are 1, 2, 4, 6, 8, 10
// So we can easily cut them in half and round down for an index
// Activity levels are 1, 2, 4, 6, 8, 10, 1000
// So we can (mostly) easily cut them in half and round down for an index
// ...This function is only called for EOCs, maybe we should just return the activity level directly instead of this.
return std::floor( instantaneous_activity_level() / 2 );
}
@@ -5463,6 +5464,14 @@ void Character::process_activity()
}
}
void Character::process_activity_until_invalid()
{
while( activity ) {
set_moves( 100 );
activity.do_turn( *this );
}
}
void Character::fall_asleep()
{
// Communicate to the player that he is using items on the floor
@@ -8127,15 +8136,7 @@ void Character::knock_back_to( const tripoint_bub_ms &to )
void Character::use_wielded()
{
use( -1 );
}
void Character::use( int inventory_position )
{
item &used = i_at( inventory_position );
item_location loc = item_location( *this, &used );
use( loc );
use( get_wielded_item() );
}
void Character::use( item_location loc, int pre_obtain_moves, std::string const &method )
+6 -18
View File
@@ -973,7 +973,6 @@ class Character : public Creature, public visitable
* Due to eoc event character_takeoff_item trigger here, item that be takeoff successfully may be deleted by eoc.
*/
bool takeoff( item_location loc, std::list<item> *res = nullptr );
bool takeoff( int pos );
/** Handles health fluctuations over time */
virtual void update_health();
@@ -1884,15 +1883,11 @@ class Character : public Creature, public visitable
*/
bool wield_contents( item &container, item *internal_item = nullptr, bool penalties = true,
int base_cost = INVENTORY_HANDLING_PENALTY );
/** Uses a tool */
void use( int inventory_position );
/** Uses a tool at location */
void use( item_location loc, int pre_obtain_moves = -1, std::string const &method = {} );
/** Uses the current wielded weapon */
void use_wielded();
/** Wear item; returns false on fail. If interactive is false, don't alert the player or drain moves on completion. */
std::optional<std::list<item>::iterator>
wear( int pos, bool interactive = true );
/** Wear item; returns nullopt on fail. If interactive is false, don't alert the player or drain moves on completion.
* The result can be end() of the worn list; do not dereference it.
@@ -2033,6 +2028,9 @@ class Character : public Creature, public visitable
return -2 - position;
}
// checks to see if an item is worn OR wielded
bool is_worn_or_wielded( const item_location &thing ) const;
// checks to see if an item is worn
bool is_worn( const item &thing ) const {
return worn.is_worn( thing );
@@ -2157,18 +2155,6 @@ class Character : public Creature, public visitable
* Only use the invlet in the user interface, otherwise always use the item position. */
item_location invlet_to_item( int invlet ) const;
// Returns the item with a given inventory position.
item &i_at( int position );
const item &i_at( int position ) const;
/**
* Returns the item position (suitable for @ref i_at or similar) of a
* specific item. Returns INT_MIN if the item is not found.
* Note that this may lose some information, for example the returned position is the
* same when the given item points to the container and when it points to the item inside
* the container. All items that are part of the same stack have the same item position.
*/
int get_item_position( const item *it ) const;
/**
* Returns a reference to the item which will be used to make attacks.
* At the moment it's always @ref weapon or a reference to a null item.
@@ -3168,6 +3154,8 @@ class Character : public Creature, public visitable
bool has_activity( const std::vector<activity_id> &types ) const;
/** Process activity until activity invalid or character is out of moves */
void process_activity();
/** Process activity until activity invalid; for tests only! */
void process_activity_until_invalid();
/** Check if character has a given sub_bodypart */
bool has_sub_bodypart( const sub_bodypart_id &sbp ) const;
void resume_backlog_activity();

Some files were not shown because too many files have changed in this diff Show More