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 later #112

Closed
AmProsius opened this issue Feb 11, 2021 · 1 comment · Fixed by #139
Closed

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

AmProsius opened this issue Feb 11, 2021 · 1 comment · Fixed by #139
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 later.

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

@AmProsius
Copy link
Owner Author

if (Npc_HasItems(other,itminugget)>=10)
{
AI_Output (other, self,"Info_Jackal_Schutz_15_00"); //I've been thinking about that protection money - here's your 10 ore.
AI_Output (self, other,"Info_Jackal_Schutz_07_01"); //You've made the right choice, man. I'll protect you from now on!
Jackal_ProtectionPaid = TRUE;
Npc_SetPermAttitude(self,ATT_FRIENDLY);
Jackal_PayDay = B_SetDayTolerance();
}

changed to

    if (Npc_HasItems(other,itminugget)>=10)
    {
        AI_Output (other, self,"Info_Jackal_Schutz_15_00"); //I've been thinking about that protection money - here's your 10 ore.
        AI_Output (self, other,"Info_Jackal_Schutz_07_01"); //You've made the right choice, man. I'll protect you from now on!
        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 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 added a commit that referenced 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