Skip to content

Commit

Permalink
added radiant and ascended compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Samihamer1 committed Jun 26, 2023
1 parent bf57090 commit 9d5f45d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
7 changes: 4 additions & 3 deletions ModClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,14 @@ private string ChangeText(string key, string sheetTitle, string orig)

private void CheckScene(UnityEngine.SceneManagement.Scene arg0, UnityEngine.SceneManagement.Scene arg1)
{
if (arg1.name == "GG_Mage_Knight")
Modding.Logger.Log(arg1.name);
if (arg1.name == "GG_Mage_Knight" || arg1.name == "GG_Mage_Knight_V")
{
GameManager.instance.StartCoroutine(CheckChampion());
GameManager.instance.StartCoroutine(CheckKnight());
}
}

private IEnumerator CheckChampion()
private IEnumerator CheckKnight()
{
yield return new WaitWhile(() => GameObject.Find("Mage Knight") == null);
GameObject.Find("Mage Knight").AddComponent<PaladinControl>();
Expand Down
9 changes: 6 additions & 3 deletions MonoBehaviours/PaladinControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ private void ControlSetup(PlayMakerFSM controlfsm)
FsmState wakestate = controlfsm.GetState("Wake");
wakestate.GetAction<SetDamageHeroAmount>().damageDealt = 2;

//doubling slash damage
foreach (DamageHero damageHero in gameObject.GetComponentsInChildren<DamageHero>())
{
damageHero.damageDealt = 2;
}

//Stomp speed.
FsmState stompstate = controlfsm.GetState("Stomp Air");
stompstate.GetAction<SetVelocity2d>().y = -85f;
Expand Down Expand Up @@ -75,9 +81,6 @@ private void ControlSetup(PlayMakerFSM controlfsm)
FsmState shoot = controlfsm.GetState("Shoot");
addZaps(shoot);

//doubling orb damage (hope it doesnt affect other orbs)
controlFsm.GetAction<SpawnObjectFromGlobalPool>("Shoot", 3).storeObject.Value.GetComponent<DamageHero>().damageDealt = 2;

//Variable edits.
controlfsm.FsmVariables.FindFsmFloat("Dash Speed").Value = 65f;
controlfsm.FsmVariables.FindFsmFloat("Fire Speed").Value = 30f;
Expand Down
2 changes: 1 addition & 1 deletion ReadMe.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Soul_Paladin

The Soul Warrior has been training.
Attacks have been modified, sped up, and one new attack was added.
Attacks have been modified and sped up.

0 comments on commit 9d5f45d

Please sign in to comment.