-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ToboterXP/develop
Develop
- Loading branch information
Showing
49 changed files
with
1,028 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -362,3 +362,4 @@ MigrationBackup/ | |
FodyWeavers.xsd | ||
|
||
AnnouncementDraft.txt | ||
Cutscenes/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using ItemChanger; | ||
using ItemChanger.Items; | ||
using UnityEngine; | ||
|
||
namespace HKSecondQuest | ||
{ | ||
internal class CarefreeMelodyItem : ItemChanger.Items.CharmItem | ||
{ | ||
public class Sprite : ISprite | ||
{ | ||
public UnityEngine.Sprite Value | ||
{ | ||
get { return CharmIconList.Instance.nymmCharm; } | ||
} | ||
|
||
public ISprite Clone() | ||
{ | ||
return new Sprite(); | ||
} | ||
} | ||
public CarefreeMelodyItem() | ||
{ | ||
charmNum = 40; | ||
} | ||
|
||
public override void GiveImmediate(GiveInfo info) | ||
{ | ||
base.GiveImmediate(info); | ||
PlayerData.instance.charmCost_40 = 3; | ||
PlayerData.instance.grimmChildLevel = 5; | ||
GameObject.Find("Queen").LocateMyFSM("Conversation Control").SendEvent("GET ITEM MSG END"); //to make queen fsm advance | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Reflection; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using UnityEngine; | ||
using UnityEngine.Video; | ||
|
||
namespace HKSecondQuest.Endings | ||
{ | ||
internal class CutsceneChanger : MonoBehaviour | ||
{ | ||
bool changed = false; | ||
public string Cutscene; | ||
void Update() | ||
{ | ||
if (!changed && GetComponent<VideoPlayer>()) | ||
{ | ||
changed = true; | ||
string dir = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Cutscenes", Cutscene); | ||
GetComponent<VideoPlayer>().Stop(); | ||
GetComponent<VideoPlayer>().url = dir; | ||
GetComponent<VideoPlayer>().aspectRatio = VideoAspectRatio.FitInside; | ||
GetComponent<VideoPlayer>().Play(); | ||
} | ||
} | ||
} | ||
internal class EndingA : Room | ||
{ | ||
public EndingA() : base("Cinematic_Ending_A") { } | ||
|
||
public override void OnLoad() | ||
{ | ||
GameObject.Find("Cinematic Player").AddComponent<CutsceneChanger>().Cutscene = "Ending1.mp4"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using UnityEngine; | ||
|
||
namespace HKSecondQuest.Endings | ||
{ | ||
internal class EndingC : Room | ||
{ | ||
public EndingC() : base("Cinematic_Ending_C") { } | ||
|
||
public override void OnLoad() | ||
{ | ||
GameObject.Find("Cinematic Player").AddComponent<CutsceneChanger>().Cutscene = "Ending2.mp4"; | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.