-
-
Notifications
You must be signed in to change notification settings - Fork 647
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into improve_targetlist_iddlestatus
- Loading branch information
Showing
22 changed files
with
156 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,14 +47,6 @@ jobs: | |
with: | ||
install: true | ||
|
||
- name: Cache Docker layers | ||
uses: actions/cache@main | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-x86-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-x86- | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
|
@@ -109,14 +101,6 @@ jobs: | |
with: | ||
install: true | ||
|
||
- name: Cache Docker layers | ||
uses: actions/cache@main | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-arm-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-arm- | ||
- name: Build | ||
uses: docker/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
data/scripts/actions/items/usable_phantasmal_jade_items.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
local config = { | ||
requiredItems = { | ||
[34072] = { key = "spectral-horseshoes", count = 4 }, | ||
[34073] = { key = "spectral-saddle", count = 1 }, | ||
[34074] = { key = "spectral-horse-tac", count = 1 }, | ||
}, | ||
|
||
mountId = 167, | ||
} | ||
|
||
local usablePhantasmalJadeItems = Action() | ||
|
||
function usablePhantasmalJadeItems.onUse(player, item, fromPosition, target, toPosition, isHotkey) | ||
local itemInfo = config.requiredItems[item:getId()] | ||
if not itemInfo then | ||
return true | ||
end | ||
|
||
if player:hasMount(config.mountId) then | ||
return true | ||
end | ||
|
||
local currentCount = (player:kv():get(itemInfo.key) or 0) + 1 | ||
player:kv():set(itemInfo.key, currentCount) | ||
player:getPosition():sendMagicEffect(CONST_ME_HOLYDAMAGE) | ||
item:remove(1) | ||
|
||
for _, info in pairs(config.requiredItems) do | ||
if (player:kv():get(info.key) or 0) < info.count then | ||
return true | ||
end | ||
end | ||
|
||
player:addMount(config.mountId) | ||
player:addAchievement("Natural Born Cowboy") | ||
player:addAchievement("You got Horse Power") | ||
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Phantasmal jade is now yours!") | ||
return true | ||
end | ||
|
||
for itemId, _ in pairs(config.requiredItems) do | ||
usablePhantasmalJadeItems:id(itemId) | ||
end | ||
|
||
usablePhantasmalJadeItems:register() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.