mirror of
https://github.com/chev2/RoR2-Mods.git
synced 2026-03-15 00:02:08 +00:00
Check for artifact enabled, comment change
This commit is contained in:
parent
2f8f6f7b0d
commit
843d137314
1 changed files with 5 additions and 2 deletions
|
|
@ -53,9 +53,8 @@ namespace Chev
|
|||
// This uses the ArtifactAPI submodule in R2API
|
||||
ArtifactAPI.Add(Artifact);
|
||||
|
||||
// On stage start event
|
||||
// On run start event
|
||||
// This is when we add our items
|
||||
//Stage.onStageStartGlobal += AddBeginningItems;
|
||||
Run.onRunStartGlobal += AddBeginningItems;
|
||||
|
||||
Logger.LogMessage("Loaded mod com.Chev.ArtifactOfSequencing");
|
||||
|
|
@ -112,6 +111,10 @@ namespace Chev
|
|||
|
||||
public void AddBeginningItems(Run run)
|
||||
{
|
||||
// If our artifact is not enabled
|
||||
if (!RunArtifactManager.instance.IsArtifactEnabled(Artifact.artifactIndex))
|
||||
return;
|
||||
|
||||
CharacterMaster master = PlayerCharacterMasterController.instances[0].master;
|
||||
|
||||
if (master)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue