Skip to content

Commit

Permalink
Logging Camp managers will now take quest items (CleverRaven#62556)
Browse files Browse the repository at this point in the history
* Add the stuff

* Specify globallity

* Restart Tests
  • Loading branch information
MNG-cataclysm authored Dec 11, 2022
1 parent f16a17d commit 78948f2
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 2 deletions.
53 changes: 53 additions & 0 deletions data/json/effect_on_condition.json
Original file line number Diff line number Diff line change
Expand Up @@ -483,5 +483,58 @@
}
}
]
},
{
"type": "effect_on_condition",
"id": "EOC_MISSION_GET_DRIVEBELTS_done",
"global": true,
"condition": { "u_has_items": { "item": "drivebelt", "count": 3 } },
"effect": [ { "u_sell_item": "drivebelt", "count": 3 } ],
"false_effect": [ { "u_sell_item": "drivebelt_makeshift", "count": 3 } ]
},
{
"type": "effect_on_condition",
"id": "EOC_MISSION_LUMBERMILL_GET_6_BLANKETS_done",
"global": true,
"condition": {
"or": [
{ "u_has_items": { "item": "blanket", "count": 6 } },
{ "u_has_items": { "item": "fur_blanket", "count": 6 } },
{ "u_has_items": { "item": "electric_blanket", "count": 6 } },
{ "u_has_items": { "item": "quilt", "count": 6 } },
{ "u_has_items": { "item": "quilt_patchwork", "count": 6 } }
]
},
"effect": [
{
"run_eocs": [
{
"id": "sell_blanket",
"condition": { "u_has_items": { "item": "blanket", "count": 6 } },
"effect": { "u_sell_item": "blanket", "count": 6 }
},
{
"id": "sell_fur_blanket",
"condition": { "u_has_items": { "item": "fur_blanket", "count": 6 } },
"effect": { "u_sell_item": "fur_blanket", "count": 6 }
},
{
"id": "sell_electric_blanket",
"condition": { "u_has_items": { "item": "electric_blanket", "count": 6 } },
"effect": { "u_sell_item": "electric_blanket", "count": 6 }
},
{
"id": "sell_quilt",
"condition": { "u_has_items": { "item": "quilt", "count": 6 } },
"effect": { "u_sell_item": "quilt", "count": 6 }
},
{
"id": "sell_quilt_patchwork",
"condition": { "u_has_items": { "item": "quilt_patchwork", "count": 6 } },
"effect": { "u_sell_item": "quilt_patchwork", "count": 6 }
}
]
}
]
}
]
5 changes: 3 additions & 2 deletions data/json/npcs/lumbermill_employees/lumbermill_missions.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
{ "u_has_items": { "item": "drivebelt_makeshift", "count": 3 } }
]
},
"end": { "effect": { "run_eocs": "EOC_MISSION_GET_DRIVEBELTS_done" } },
"origins": [ "ORIGIN_SECONDARY" ],
"followup": "MISSION_LUMBERMILL_GET_1000_NAILS",
"has_generic_rewards": true,
Expand Down Expand Up @@ -110,14 +111,14 @@
{ "u_has_items": { "item": "blanket", "count": 6 } },
{ "u_has_items": { "item": "fur_blanket", "count": 6 } },
{ "u_has_items": { "item": "electric_blanket", "count": 6 } },
{ "u_has_items": { "item": "fur_blanket", "count": 6 } },
{ "u_has_items": { "item": "quilt", "count": 6 } },
{ "u_has_items": { "item": "quilt_patchwork", "count": 6 } }
]
},
"origins": [ "ORIGIN_SECONDARY" ],
"end": {
"update_mapgen": { "om_terrain": "lumbermill_1_1_ocu", "place_nested": [ { "chunks": [ "occupied_lum_hotel_1_1" ], "x": 0, "y": 0 } ] }
"update_mapgen": { "om_terrain": "lumbermill_1_1_ocu", "place_nested": [ { "chunks": [ "occupied_lum_hotel_1_1" ], "x": 0, "y": 0 } ] },
"effect": { "run_eocs": "EOC_MISSION_LUMBERMILL_GET_6_BLANKETS_done" }
},
"followup": "MISSION_LUMBERMILL_SET_TRADE_ROUTE",
"has_generic_rewards": true,
Expand Down

0 comments on commit 78948f2

Please sign in to comment.