// 醫낅즺 泥댄겕. public bool transition_check() { bool is_transit = false; if (this.player.step.get_time() >= use_motion_delay && this.player.control.getMotion() != "m004_use") { ItemWindow.get().clearItem(Item.SLOT_TYPE.MISC, this.slot_index); bool is_atari = (bool)this.item_favor.option0; if (is_atari) { // 異⑸룎 ?대깽?? EventIceAtari event_atari = EventRoot.get().startEvent <EventIceAtari>(); event_atari.setItemSlotAndFavor(this.slot_index, this.item_favor); this.player.step.set_next(STEP.MOVE); } else { this.player.step.set_next(STEP.MOVE); } // ?꾩씠?쒖쓣 ??젣?쒕떎. if (this.slot_index >= 0) { if (is_atari) { // 異⑸룎?덉쓣 ???꾩씠?쒖쓣 ??젣?섏? ?딅뒗?? // 異⑸룎 ????嫄몃줈 ?섎룎由곕떎. this.player.item_slot.miscs[this.slot_index].favor.option0 = false; } else { this.player.item_slot.miscs[this.slot_index].initialize(); this.slot_index = -1; } } is_transit = true; } return(is_transit); }
// 종료 체크. public bool transition_check() { bool is_transit = false; if (this.player.step.get_time() >= use_motion_delay && this.player.control.getMotion() != "m004_use") { ItemWindow.get().clearItem(Item.SLOT_TYPE.MISC, this.slot_index); bool is_atari = (bool)this.item_favor.option0; if (is_atari) { // 충돌 이벤트. EventIceAtari event_atari = EventRoot.get().startEvent <EventIceAtari>(); event_atari.setItemSlotAndFavor(this.slot_index, this.item_favor); this.player.step.set_next(STEP.MOVE); } else { this.player.step.set_next(STEP.MOVE); } // 아이템을 삭제한다. if (this.slot_index >= 0) { if (is_atari) { // 충돌했을 때 아이템을 삭제하지 않는다. // 충돌 안 한 걸로 되돌린다. this.player.item_slot.miscs[this.slot_index].favor.option0 = false; } else { this.player.item_slot.miscs[this.slot_index].initialize(); this.slot_index = -1; } } is_transit = true; } return(is_transit); }