-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement QUEST_COND_ITEM_GIVING_FINISHED
Took the oppertunity to Rename ContentFinishGivingItem to ItemGiving
- Loading branch information
1 parent
37b2283
commit 1b7d289
Showing
4 changed files
with
30 additions
and
6 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
src/main/java/emu/grasscutter/game/quest/conditions/ConditionItemGivingFinished.java
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,21 @@ | ||
package emu.grasscutter.game.quest.conditions; | ||
|
||
import emu.grasscutter.data.excels.quest.QuestData; | ||
import emu.grasscutter.game.player.Player; | ||
import emu.grasscutter.game.quest.QuestValueCond; | ||
import lombok.val; | ||
import static emu.grasscutter.game.quest.enums.QuestCond.QUEST_COND_ITEM_GIVING_FINISHED; | ||
|
||
@QuestValueCond(QUEST_COND_ITEM_GIVING_FINISHED) | ||
public class ConditionItemGivingFinished extends BaseCondition { | ||
|
||
@Override | ||
public boolean execute( | ||
Player owner, | ||
QuestData questData, | ||
QuestData.QuestAcceptCondition condition, | ||
String paramStr, | ||
int... params) { | ||
return condition.getParam()[0] == params[0] && (condition.getParam()[1] == 0 || condition.getParam()[1] == params[1]); | ||
} | ||
} |
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