Skip to content

[API]: Custom PayPhone messages API#56

Merged
KaBooMa merged 38 commits intoKaBooMa:pr-verificationfrom
MaxtorCoder:payphone-manager
Apr 27, 2025
Merged

[API]: Custom PayPhone messages API#56
KaBooMa merged 38 commits intoKaBooMa:pr-verificationfrom
MaxtorCoder:payphone-manager

Conversation

@MaxtorCoder
Copy link
Copy Markdown
Collaborator

Changes/Features:

  • Implement payphone API for custom payphone messages
  • Add GetQuestByGuid and GetQuestByName getters for QuestManager
  • Add QuestState getter in Quest code
  • Add utilities for array adding (AddItem does not work from HarmonyLib)
  • Fix merge mistakes from BepInEx merge

Example usage:

public class TestPhoneCall : PhoneCallDefinition
{
    public TestPhoneCall() : base(NPC.Get<MarcoBaron>())
    {
        var testQuest = (TestQuest)QuestManager.CreateQuest<TestQuest>();

        AddStage("Hello there - I want you to check something out for me...");
        AddStage("There's a <h1>meth business</h> close by that needs some... Cleaning...");

        var questStage = AddStage("Can you take care of it for me?");
        questStage.AddSystemTrigger(SystemTriggerType.DoneTrigger)
            .AddQuestSetter(EvaluationType.PassOnTrue, testQuest!, QuestAction.Begin);
    }
}

KaBooMa and others added 30 commits April 25, 2025 02:38
- Add centralized Log class for both BepInEx and MelonLoader
- Add `MonoBepInEx` and `Il2CppBepInEx` configurations
- Improve `.csproj` layout for S1API
feat: finished timemanager and gamedatetime
feat: Implement BepInEx modloader support
# Conflicts:
#	S1API/Console/ConsoleHelper.cs
#	S1API/Internal/Patches/PhoneAppPatches.cs
#	S1API/Messaging/Response.cs
#	S1API/NPCs/NPC.cs
#	S1API/NPCs/NPCInstance.cs
#	S1API/PhoneApp/PhoneApp.cs
#	S1API/S1API.csproj
#	S1API/UI/UIFactory.cs
KaBooMa and others added 8 commits April 27, 2025 04:31
fix: Resolved merge issues; Adjusted workflows for BepInEx
fix: Resolved issue with missing ' in references
fix: Allowed net6.0 build for S1API (possible hacky solution to allow…
- Implement payphone API for custom payphone messages
- Add GetQuestByGuid and GetQuestByName getters for QuestManager
- Add QuestState getter in Quest code
- Add utilities for array adding (AddItem does _not_ work from HarmonyLib)
@KaBooMa KaBooMa changed the base branch from bleeding-edge to pr-verification April 27, 2025 23:45
@KaBooMa KaBooMa merged commit 8863d32 into KaBooMa:pr-verification Apr 27, 2025
1 check failed
@KaBooMa
Copy link
Copy Markdown
Owner

KaBooMa commented Apr 29, 2025

🎉 This PR is included in version 1.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@MaxtorCoder MaxtorCoder deleted the payphone-manager branch May 2, 2025 14:49
k073l pushed a commit to k073l/S1API that referenced this pull request Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants