Skip to content

Commit

Permalink
helm logic updated, chocobo digging spots added
Browse files Browse the repository at this point in the history
  • Loading branch information
Flibe-XI committed Oct 3, 2023
1 parent 718f4d0 commit dc74079
Show file tree
Hide file tree
Showing 5 changed files with 244 additions and 97 deletions.
3 changes: 1 addition & 2 deletions scripts/globals/chocobo_digging.lua
Original file line number Diff line number Diff line change
Expand Up @@ -970,9 +970,8 @@ xi.chocoboDig.start = function(player, precheck)
roll = roll * .5
end

-- AMK07
-- AMK mission 7 (index 6)
if
xi.settings.main.ENABLE_AMK == 1 and
player:getCurrentMission(xi.mission.log_id.AMK) == xi.mission.id.amk.SHOCK_ARRANT_ABUSE_OF_AUTHORITY and
xi.amk.helpers.chocoboDig(player, zoneId, text)
then
Expand Down
2 changes: 1 addition & 1 deletion scripts/globals/helm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1557,7 +1557,7 @@ xi.helm.onTrade = function(player, npc, trade, helmType, csid, func)
npcUtil.giveKeyItem(player, xi.ki.RAINBOW_BERRY)
end

-- AMK04
-- AMK mission 4 (index 3)
if xi.settings.main.ENABLE_AMK == 1 then
xi.amk.helpers.helmTrade(player, helmType, broke)
end
Expand Down
1 change: 1 addition & 0 deletions scripts/missions/amk/06_An_Errand_The_Professors_Price.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ local orbKeyItems =
}

local beginCardianFight = function(player, npc)
-- TODO: Increase default number of cardians to 20 as is required. Mob IDs missing
local numToSpawn = 15

local modsToAdd = {}
Expand Down
6 changes: 4 additions & 2 deletions scripts/missions/amk/07_Shock_Arrant_Abuse_of_Authority.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ mission.sections =
{
-- Reminder
onTrigger = function(player, npc)
-- Variable is stored as 1-indexed zone offset, cutscenes are 0-indexed
local diggingZone = xi.amk.helpers.getDiggingZone(player)
return mission:progressEvent(10182, diggingZone)
return mission:progressEvent(10182, diggingZone) - 1
end,
},

Expand All @@ -59,7 +60,8 @@ mission.sections =
{
-- Reminder
onTrigger = function(player, npc)
local diggingZone = xi.amk.helpers.getDiggingZone(player)
-- Variable is stored as 1-indexed zone offset, cutscenes are 0-indexed
local diggingZone = xi.amk.helpers.getDiggingZone(player) - 1
return mission:progressEvent(10189, diggingZone)
end,
},
Expand Down
Loading

0 comments on commit dc74079

Please sign in to comment.