Skip to content

Commit

Permalink
Various fixes for Dream Warriors in Godhome
Browse files Browse the repository at this point in the history
  • Loading branch information
Extremelyd1 committed Sep 1, 2024
1 parent 0de18d6 commit 2b8eb22
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
8 changes: 6 additions & 2 deletions HKMP/Game/Client/Entity/EntitySpawner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,15 @@ List<PlayMakerFSM> clientFsms
}

if (spawningType == EntityType.Galien && spawnedType == EntityType.GalienMiniScythe) {
return SpawnGalienMiniScytheObject(clientFsms[2]);
// The reason we do not use a hardcoded index from the FSMs is because the Shield Attack FSM is indexed
// differently depending on whether Markoth is in Godhome or not
return SpawnGalienMiniScytheObject(clientFsms.Find(fsm => fsm.Fsm.Name.Equals("Summon Minis")));
}

if (spawningType == EntityType.Markoth && spawnedType == EntityType.MarkothShield) {
return SpawnMarkothShieldObject(clientFsms[3]);
// The reason we do not use a hardcoded index from the FSMs is because the Shield Attack FSM is indexed
// differently depending on whether Markoth is in Godhome or not
return SpawnMarkothShieldObject(clientFsms.Find(fsm => fsm.Fsm.Name.Equals("Shield Attack")));
}

if (spawningType == EntityType.Kingsmould && spawnedType == EntityType.KingsmouldBlade) {
Expand Down
12 changes: 6 additions & 6 deletions HKMP/Resource/entity-registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@
{
"base_object_name": "Ghost Warrior Xero",
"type": "Xero",
"fsm_name": "FSM",
"fsm_name": "Attacking",
"components": [
"Music"
]
Expand All @@ -1142,31 +1142,31 @@
{
"base_object_name": "Ghost Warrior Hu",
"type": "ElderHu",
"fsm_name": "FSM",
"fsm_name": "Attacking",
"components": [
"Music"
]
},
{
"base_object_name": "Ghost Warrior Marmu",
"type": "Marmu",
"fsm_name": "FSM",
"fsm_name": "Control",
"components": [
"Music"
]
},
{
"base_object_name": "Ghost Warrior No Eyes",
"type": "NoEyes",
"fsm_name": "FSM",
"fsm_name": "Attacking",
"components": [
"Music"
]
},
{
"base_object_name": "Ghost Warrior Galien",
"type": "Galien",
"fsm_name": "FSM",
"fsm_name": "Movement",
"components": [
"Music"
]
Expand All @@ -1187,7 +1187,7 @@
{
"base_object_name": "Ghost Warrior Markoth",
"type": "Markoth",
"fsm_name": "FSM",
"fsm_name": "Attacking",
"components": [
"Music"
]
Expand Down

0 comments on commit 2b8eb22

Please sign in to comment.