Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The player doesn't lose ore when paying protection money to Jackal #111

Closed
AmProsius opened this issue Feb 11, 2021 · 2 comments · Fixed by #140
Closed

The player doesn't lose ore when paying protection money to Jackal #111

AmProsius opened this issue Feb 11, 2021 · 2 comments · Fixed by #140
Labels
compatibility: easy This issue is easy to make compatible. impl: hook script func This issue requires hooking script functions. provided fix This issue has a fix provided in the comments. type: session fix The fix for this issues is persistent across a session. validation: validated This issue is still present even with Systempack/Union.
Milestone

Comments

@AmProsius
Copy link
Owner

Describe the bug
The player doesn't lose 10 ore if he chooses to pay the protection money to Jackal.

Expected behavior
The player now correctly loses 10 ore if he chooses to pay the protection money to Jackal.

@AmProsius
Copy link
Owner Author

if (Npc_HasItems(other,itminugget)>=10)
{
AI_Output (self, other,"Info_Jackal_Hello_Pay_07_01"); //You can count on me if I'm close by. You'll find me between the market place and the south gate.
AI_Output (self, other,"Info_Jackal_Hello_Pay_07_02"); //The other areas are Fletcher and Bloodwyn's affair.
Jackal_ProtectionPaid = TRUE;
Npc_SetPermAttitude(self,ATT_FRIENDLY);
Jackal_PayDay = B_SetDayTolerance();
}

changed to

    if (Npc_HasItems(other,itminugget)>=10)
    {
        AI_Output (self, other,"Info_Jackal_Hello_Pay_07_01"); //You can count on me if I'm close by. You'll find me between the market place and the south gate.
        AI_Output (self, other,"Info_Jackal_Hello_Pay_07_02"); //The other areas are Fletcher and Bloodwyn's affair.
        B_GiveInvItems (other, self, itminugget, 10);
        Jackal_ProtectionPaid = TRUE;
        Npc_SetPermAttitude(self,ATT_FRIENDLY);
        Jackal_PayDay = B_SetDayTolerance();
    }

@AmProsius AmProsius added compatibility: difficult This issue is difficult to make compatible. type: session fix The fix for this issues is persistent across a session. provided fix This issue has a fix provided in the comments. validation: validated This issue is still present even with Systempack/Union. labels Feb 11, 2021
@AmProsius AmProsius added this to To Do in v1.0.0 Feb 13, 2021
@AmProsius AmProsius added this to the v1.0.0 milestone Feb 13, 2021
@szapp
Copy link
Collaborator

szapp commented Feb 13, 2021

Refer to #102 #109 #112.

@szapp szapp added compatibility: easy This issue is easy to make compatible. and removed compatibility: difficult This issue is difficult to make compatible. labels Feb 13, 2021
@szapp szapp moved this from To Do to In Progress in v1.0.0 Feb 23, 2021
@szapp szapp moved this from In Progress to To Do in v1.0.0 Feb 23, 2021
szapp added a commit that referenced this issue Feb 23, 2021
@szapp szapp mentioned this issue Feb 23, 2021
@szapp szapp moved this from To Do to In Progress in v1.0.0 Feb 23, 2021
v1.0.0 automation moved this from In Progress to Done Feb 24, 2021
AmProsius added a commit that referenced this issue Feb 24, 2021
@AmProsius AmProsius added this to Dialog: Give items in Fix templates Mar 3, 2021
@szapp szapp added the impl: hook script func This issue requires hooking script functions. label Mar 16, 2021
szapp added a commit that referenced this issue Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility: easy This issue is easy to make compatible. impl: hook script func This issue requires hooking script functions. provided fix This issue has a fix provided in the comments. type: session fix The fix for this issues is persistent across a session. validation: validated This issue is still present even with Systempack/Union.
Projects
Fix templates
Add item transaction to dialog
v1.0.0
  
Done
Development

Successfully merging a pull request may close this issue.

2 participants