mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-02-05 17:46:59 +01:00
Re-add hack to fix 35303
This commit is contained in:
@@ -7,6 +7,7 @@ import emu.grasscutter.game.avatar.Avatar;
|
|||||||
import emu.grasscutter.game.inventory.*;
|
import emu.grasscutter.game.inventory.*;
|
||||||
import emu.grasscutter.game.player.Player;
|
import emu.grasscutter.game.player.Player;
|
||||||
import emu.grasscutter.game.props.*;
|
import emu.grasscutter.game.props.*;
|
||||||
|
import emu.grasscutter.game.quest.enums.QuestContent;
|
||||||
import emu.grasscutter.game.world.*;
|
import emu.grasscutter.game.world.*;
|
||||||
import emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock;
|
import emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock;
|
||||||
import emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo;
|
import emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo;
|
||||||
@@ -389,4 +390,20 @@ public class EntityAvatar extends GameEntity {
|
|||||||
// Set position and rotation.
|
// Set position and rotation.
|
||||||
super.move(event.getDestination(), rotation);
|
super.move(event.getDestination(), rotation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onAbilityValueUpdate() {
|
||||||
|
super.onAbilityValueUpdate();
|
||||||
|
|
||||||
|
// TODO: Replace with a proper implementation/call.
|
||||||
|
// Check if the condition for 35303 is met.
|
||||||
|
if (this.getGlobalAbilityValues().containsKey("_ABILITY_UziExplode_Count")) {
|
||||||
|
var count = this.getGlobalAbilityValues().get("_ABILITY_UziExplode_Count");
|
||||||
|
if (count == 2f) {
|
||||||
|
this.getGlobalAbilityValues().remove("_ABILITY_UziExplode_Count");
|
||||||
|
this.getPlayer().getQuestManager()
|
||||||
|
.queueEvent(QuestContent.QUEST_CONTENT_SKILL, 10006);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user