Skip to content

Commit

Permalink
[Sky Island] Teleporting items back home (CleverRaven#70200)
Browse files Browse the repository at this point in the history
* Update EOCs.json

* Update EOCs.json

* Update EOCs.json

* Update EOCs.json

* Update EOCs.json
  • Loading branch information
gettingusedto authored and gkarfakis19 committed Dec 14, 2023
1 parent 56c1ea6 commit bbaa123
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions data/mods/Sky_Island/EOCs.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,26 @@
"id": "EOC_statue_return",
"//": "This EOC is activated by return portals. It's just here to confirm that you want to return home, then triggers the actual teleport home.",
"condition": {
"u_query": "This will teleport you back home with only the items on your person. Anything left behind will be as good as gone. Are you ready to leave?",
"u_query": "This will teleport you back to your sky island. Any items inside the room will be teleported home alongside you. Are you ready to leave?",
"default": false
},
"effect": [ { "math": [ "raidswon", "++" ] }, { "run_eocs": [ "EOC_return_OM_teleport" ] } ]
"effect": [ { "math": [ "raidswon", "++" ] }, { "run_eocs": [ "EOC_return_OM_teleport_item" ] } ]
},
{
"type": "effect_on_condition",
"id": "EOC_return_OM_teleport_item",
"effect": [
{ "u_location_variable": { "context_val": "loc" } },
{
"u_map_run_item_eocs": "all",
"loc": { "context_val": "loc" },
"min_radius": 0,
"max_radius": 10,
"true_eocs": [ { "id": "EOC_map_item_run", "effect": [ { "npc_teleport": { "global_val": "OM_HQ_origin" } } ] } ]
},
{ "queue_eocs": [ "EOC_return_OM_teleport" ], "time_in_future": "1 s" },
{ "u_message": "Now teleporting back home. Please wait…" }
]
},
{
"type": "effect_on_condition",
Expand Down

0 comments on commit bbaa123

Please sign in to comment.