Skip to content

[lua, C++] A Moral Manifest? IF Conversion + Tests - #11153

Open
KiplingFFXI wants to merge 1 commit into
LandSandBoat:basefrom
KiplingFFXI:A-Moral-Manifest-Fixes
Open

[lua, C++] A Moral Manifest? IF Conversion + Tests#11153
KiplingFFXI wants to merge 1 commit into
LandSandBoat:basefrom
KiplingFFXI:A-Moral-Manifest-Fixes

Conversation

@KiplingFFXI

@KiplingFFXI KiplingFFXI commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

I affirm:

  • I understand that if I do not agree to the following points by completing the checkboxes my PR will be ignored.
  • I understand I should leave resolving conversations to the LandSandBoat team so that reviewers won't miss what was said.
  • I have read and understood the Contributing Guide and the Code of Conduct.
  • I have tested my code and the things my code has changed since the last commit in the PR and will test after any later commits.

What does this pull request do?

This PR converts the quest "A Moral Manifest?" into IF and in the process fixes many bugs. This PR also introduces a test file for the quest and for the guildmaster lua. It also makes some C++ changes to accomodate these tests. Namely, the test framework can now trade gil and in tthe appropriate amounts. I ran what I did by a few people as a smell test.

Steps to test these changes

Do the quest. See the old bugs are gone and you can complete it.

Captures

Thank you to Valentine and Skold for giving me me the captures which allowed this to become a conversion and not simply a bug fix.

A Moral Manifest.zip
A Moral Manifest - Pt 2..zip
Quest_A_Moral_Manifest (1).zip

@KiplingFFXI
KiplingFFXI force-pushed the A-Moral-Manifest-Fixes branch from 9a34aad to 7d9584d Compare August 16, 2026 11:04
@KiplingFFXI
KiplingFFXI marked this pull request as ready for review August 16, 2026 11:06

@zach2good zach2good left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If you wanted to do a really good job here: You could add a test for this, so that when this gets rewritten there's something to test it against

@KiplingFFXI

Copy link
Copy Markdown
Contributor Author

If you wanted to do a really good job here: You could add a test for this, so that when this gets rewritten there's something to test it against

Ok I will do that, thank you. Will throw it into draft for now.

@KiplingFFXI
KiplingFFXI marked this pull request as draft August 16, 2026 11:09
@KiplingFFXI
KiplingFFXI force-pushed the A-Moral-Manifest-Fixes branch from 7d9584d to e261f7b Compare August 18, 2026 05:31
@KiplingFFXI
KiplingFFXI marked this pull request as ready for review August 18, 2026 05:35
@KiplingFFXI

Copy link
Copy Markdown
Contributor Author

Update: I received captures and have converted the quest to IF instead. PR title and body updated.

@KiplingFFXI KiplingFFXI changed the title [lua] A Moral Manifest? Bug Fixes [lua] A Moral Manifest? IF Conversion Aug 18, 2026
-- TODO: Convert this to interaction. The way this is coded, it WILL block you out from a guildmaster.
entity.onEventFinish = function(player, csid, option, npc)
-- The guild master handler fires a Records of Eminence hook for any event it is given.
-- A Moral Manifest's events reach this fallback too.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

then the solution would be to add an event check to the guildmaster global

quest:cleanup(player)
end

local function pononoOnTrigger(player, npc)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why are you placing the logic of an npc in a function that is only called in one place?

local function cancelQuest(player)
player:delQuest(quest.areaId, quest.questId)
quest:cleanup(player)
end

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

use this logic directly

@KiplingFFXI KiplingFFXI changed the title [lua] A Moral Manifest? IF Conversion [lua, C++] A Moral Manifest? IF Conversion Aug 19, 2026
@KiplingFFXI KiplingFFXI changed the title [lua, C++] A Moral Manifest? IF Conversion [lua, C++] A Moral Manifest? IF Conversion + Tests Aug 19, 2026
@KiplingFFXI

Copy link
Copy Markdown
Contributor Author

Addressed all comments and added some tests, as well as C++ changes to accommodate the tests.

@KiplingFFXI
KiplingFFXI force-pushed the A-Moral-Manifest-Fixes branch from 2705428 to c191097 Compare August 21, 2026 05:59
@KiplingFFXI
KiplingFFXI force-pushed the A-Moral-Manifest-Fixes branch from c191097 to 08ea907 Compare August 21, 2026 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants