Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Fixing Ferries in Mhaura #411

Merged
merged 29 commits into from
Mar 26, 2020
Merged

Fixing Ferries in Mhaura #411

merged 29 commits into from
Mar 26, 2020

Conversation

kaincenteno
Copy link
Contributor

  • Offset was wrong and time at dock was also wrong. This was fixed.
  • Issue with docking position for Ferries is still wrong, but pos in table is now retail accurate.
  • NPC at dock in Mhaura now moves when ferry arrives and departs, also tells you about it,
    not 100% retail accurate as it needs to rotate when it reaches final location. Leaving it as a TODO
    for someone else to complete it.

I affirm:

  • that I agree to Project Topaz's Limited Contributor License Agreement, as written on this date
  • that I've tested my code since the last commit in the PR, and will test after any later commits

KnowOne134 and others added 28 commits February 22, 2020 14:36
Client Version Update (30200217_0)
fix some npcids in commented rows
Fix inaccurate trade behavior
no longer need mobmod with no xp pull for bcnms
when storing dancers attire (M vs F), give correct key item for later retrieval
Sidestream biweekly (2020/02/15 to 2020/02/29)
Force linkage of pthread on linux platforms
* Offset was wrong and time at dock was also wrong. This was fixed.
* Issue with docking position for Ferries is still wrong, but pos in table is now retail accurate.
* NPC at dock in Mhaura now moves when ferry arrives and departs, also tells you about it,
not 100% retail accurate as it needs to rotate when it reaches final location. Leaving it as a TODO
for someone else to complete it.
@ibm2431 ibm2431 changed the base branch from master to release March 12, 2020 22:26
Copy link
Contributor

@ibm2431 ibm2431 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, kain~!

Mainly just some variable shortening and prettification:

@@ -24,6 +24,33 @@ tpz.transport.messageTime =
SILVER_SEA = 480
}

tpz.transport.dockPorterMhauraTrigger =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can probably shorten these; they're already in the tpz.transport namespace, so Porter is already implied. 😉

tpz.transport.trigger.mhaura
tpz.transport.offset.mhaura
tpz.transport.interval.mhaura
tpz.transport.pos.mhaura

Comment on lines 29 to 32
FERRY_ARRIVING_FROM_ALZAHBI = 0,
FERRY_DEPARTING_TO_ALZAHBI = 1,
FERRY_ARRIVING_FROM_SELBINA = 2,
FERRY_DEPARTING_TO_SELBINA = 3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Picky ibm: Could you make sure the = line up all pretty like~?

Comment on lines 67 to 68
if triggerID == tpz.transport.dockPorterMhauraTrigger.FERRY_ARRIVING_FROM_ALZAHBI or
triggerID == tpz.transport.dockPorterMhauraTrigger.FERRY_ARRIVING_FROM_SELBINA then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's a trick you could do to save some lines and space, since your "arriving" and "departing" are all even/odd:

if (triggerID % 2) == 0 then
    npc:pathThrough(-- arriving)
else
    npc:pathThrough(-- departing)
end

Comment on lines 64 to 65

tpz.transport.dockPorterMhauraMessages = function(npc, triggerID, messages)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not going to force you to globalize this juuusstt yet, but you can save yourself a little effort later by:

tpz.transport.messages = {}
tpz.transport.messages.mhaura = function(npc, triggerID, messages)

(Later we can extend this to instead be just one function which takes a dock, and then pulls the appropriate tables based on the dock, but I realize right now that the focus is to fix the ferry)

end

function onTimeTrigger(npc, triggerID)
tpz.transport.dockPorterMhauraMessages(npc, triggerID, messages)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And then your function call down here becomes: tpz.transport.messages.mhaura(npc, triggerID, messages)

@ibm2431 ibm2431 changed the base branch from release to transport March 16, 2020 22:17
@ibm2431 ibm2431 changed the base branch from transport to release March 16, 2020 22:18
@ibm2431
Copy link
Contributor

ibm2431 commented Mar 16, 2020

Developer: I was going to have this target the transport branch, but the commit history did not like that, so I punted back to release. I'll have to see what's going on with the transport branch later.

transport is just quite a ways behind release, which is what this was based on.

@ibm2431 ibm2431 added hold Requests have been made to merge reviewed Has been reviewed by at least one Staff Member labels Mar 16, 2020
@ibm2431 ibm2431 self-assigned this Mar 16, 2020
@ibm2431 ibm2431 changed the base branch from release to transport March 17, 2020 00:14
Copy link
Contributor

@ibm2431 ibm2431 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushed review changes~!

(And she seems to be working!)

@ibm2431 ibm2431 added merge ready reviewed and deemed ready to merge and removed hold Requests have been made to merge reviewed Has been reviewed by at least one Staff Member labels Mar 26, 2020
@zircon-tpl zircon-tpl merged commit 2071cc1 into project-topaz:transport Mar 26, 2020
@kaincenteno kaincenteno deleted the mhaura_ferries branch March 27, 2020 03:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
merge ready reviewed and deemed ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants