Files

58 lines
2.0 KiB
Ruby
Raw Permalink Normal View History

2026-10-29 21:59:06 +04:00
if $game_map.threat
SndLib.sys_buzzer
$game_map.popup(0,"QuickMsg:Lona/incombat#{rand(2)}",0,0)
return
end
get_character(0).animation = nil
SndLib.catSpot
call_msg("commonComp:CompKitten/begin")
tmpGotoTar = ""
tmpTarList = []
tmpTarList << [$game_text["commonNPC:commonNPC/Cancel"] ,"Cancel"]
tmpTarList << [$game_text["commonComp:Companion/TeamUp"] ,"TeamUp"] if $game_player.record_companion_name_back != "CompKitten"
tmpTarList << [$game_text["commonComp:Companion/Disband"] ,"Disband"] if $game_player.record_companion_name_back == "CompKitten"
cmd_sheet = tmpTarList
cmd_text =""
for i in 0...cmd_sheet.length
cmd_text.concat(cmd_sheet[i].first+",")
end
call_msg("\\optB[#{cmd_text}]")
$game_temp.choice == -1 ? tmpPicked = false : tmpPicked = cmd_sheet[$game_temp.choice][1]
$game_temp.choice = -1
case tmpPicked
when "TeamUp"
call_msg("commonComp:CompKitten/CompData")
show_npc_info(get_character(0),extra_info=false,"commonComp:Companion/Accept") #\optD[算了,確定]
case $game_temp.choice
when 0,-1
when 1
if $game_party.item_number($data_items[12]) >=1 #fish
optain_lose_item($data_items[12],1)
$story_stats["CompKittenDailyGift"] = $game_date.dateAmt+1+rand(2)
if $game_player.actor.wisdom_trait >= rand(40)
get_character(0).set_this_event_companion_back("CompKitten",false,nil)
else
get_character(0).set_this_event_companion_back("CompKitten",false,$game_date.dateAmt+1+($game_player.actor.wisdom_trait/5).round+rand(10))
end
SndLib.catPurr
call_msg("commonComp:CompKitten/Comp_win")
else
SndLib.catAtk
call_msg("commonComp:CompKitten/Comp_failed")
end
end
when "Disband"
call_msg("commonComp:Companion/Accept") #\optD[算了,確定]
case $game_temp.choice
when 0,-1
when 1
SndLib.catHurt
call_msg("commonComp:CompKitten/Comp_disband")
get_character(0).set_this_companion_disband(false)
end
end
eventPlayEnd