Files
Grasscutter/src/main/java/emu/grasscutter/scripts/data/SceneGadget.java
Nazrin fbe2b138ee Fixes for alchemy dude's quest (#2352)
* Add drops for gadgets

Gadgets only have drop_id when they are not chests (chest_drop_id). When drop_id is not set (0), handleChestDrop quickly exits

* Implement QUEST_COND_ITEM_GIVING_FINISHED

Took the oppertunity to Rename ContentFinishGivingItem to ItemGiving

* Store accept conditions like fail and finish content are

Took the oppertunity to clean up some old code as well

conditions are stored in QuestManager

* Update src/main/java/emu/grasscutter/game/quest/QuestManager.java

Co-authored-by: Magix <27646710+KingRainbow44@users.noreply.github.com>

* Update ConditionItemGivingFinished.java

---------

Co-authored-by: Magix <27646710+KingRainbow44@users.noreply.github.com>
2023-09-10 19:20:28 -04:00

42 lines
1.2 KiB
Java

package emu.grasscutter.scripts.data;
import lombok.*;
@ToString
@Setter
public class SceneGadget extends SceneObject {
public int gadget_id;
public int chest_drop_id;
public int drop_id;
public int drop_count;
public String drop_tag;
boolean showcutscene;
boolean persistence;
public int state;
public int point_type;
public int owner;
public SceneBossChest boss_chest;
public int interact_id;
/**
* Note: this field indicates whether the gadget should disappear permanently. For example, if
* isOneOff=true, like most chests, it will disappear permanently after interacted. If
* isOneOff=false, like investigation points, it will disappear temporarily, and appear again in
* next big world resource refresh routine.
*/
public boolean isOneoff;
public int draft_id;
public int route_id;
public boolean start_route = true;
public boolean is_use_point_array = false;
public boolean persistent = false;
public int mark_flag;
public Explore explore;
public int trigger_count;
public void setIsOneoff(boolean isOneoff) {
this.isOneoff = isOneoff;
}
}