Example #1
0
    public override void doClick()
    {
        Debug.Log("click a barrel");
        if (this.getIsEmpty())
        {
            messageUI.showMessage("电脑里已经没有特别的图片。");
        }
        else
        {
            NPC chara = (NPC)roundController.getCurrentRoundChar();
            if (chara.getActionPoint() >= SystemConstant.InverstActionPoint)
            {
                if (chara.getAbilityInfo()[3] >= 4)
                {
                    messageUI.showMessage("一张监控图片引起了你的注意。");
                    chara.getBag().insertItem(this.getItem());
                }

                else
                {
                    messageUI.showMessage("恐惧让你无法注意到电脑里的照片。");
                    chara.getBag().insertItem(this.getItem());
                }
                chara.updateActionPoint(chara.getActionPoint() - SystemConstant.InverstActionPoint);
            }
            else
            {
                messageUI.ShowMessge("行动力不足,不能进行调查。", 1);
            }
        }
    }
Example #2
0
    public override void doClick()
    {
        Debug.Log("click a barrel");
        if (this.getIsEmpty())
        {
            messageUI.showMessage("保险箱里面没有值得注意的物品。");
        }
        else
        {
            NPC chara = (NPC)roundController.getCurrentRoundChar();
            if (chara.getActionPoint() >= SystemConstant.InverstActionPoint)
            {
                if (chara.getAbilityInfo()[2] >= 7)
                {
                    messageUI.showMessage("你明锐的观察到密码键里有几个已经掉漆的数字,尝试了一会就打开了。");
                    chara.getBag().insertItem(this.getItem());
                }
                else
                {
                    messageUI.showMessage("你发现保险箱是有密码的,你想用概率学进行密码穷举法破解,需要知识进行检测大于6才能打开保险箱。");
                    this.maxValue = 6;
                    this.phase    = 1;
                    listenRoll    = true;
                }

                chara.updateActionPoint(chara.getActionPoint() - SystemConstant.InverstActionPoint);
            }
            else
            {
                messageUI.ShowMessge("行动力不足,不能进行调查。", 1);
            }
        }
    }
Example #3
0
    public override void doClick()
    {
        Debug.Log("click a barrel");
        if (this.getIsEmpty())
        {
            messageUI.showMessage("桌子上没有值得注意的物品。");
        }
        else
        {
            NPC chara = (NPC)roundController.getCurrentRoundChar();
            if (chara.getActionPoint() >= SystemConstant.InverstActionPoint)
            {
                if (chara.getAbilityInfo()[2] >= 4)
                {
                    messageUI.showMessage("你注意到一瓶药水上面贴着蜘蛛的图标。");
                    chara.getBag().insertItem(this.getItem());
                }

                else
                {
                    messageUI.showMessage("桌子上一堆药品但是没有一个是你认识的。");
                    chara.getBag().insertItem(this.getItem());
                }
                chara.updateActionPoint(chara.getActionPoint() - SystemConstant.InverstActionPoint);
            }
            else
            {
                messageUI.ShowMessge("行动力不足,不能进行调查。", 1);
            }
        }
    }
Example #4
0
    public override void doClick()
    {
        Debug.Log("click a barrel");
        if (this.getIsEmpty())
        {
            messageUI.showMessage("桌子上没有值得注意的东西。");
        }
        else
        {
            NPC chara = (NPC)roundController.getCurrentRoundChar();
            if (chara.getActionPoint() >= SystemConstant.InverstActionPoint)
            {
                if (chara.getAbilityInfo()[3] >= 5)
                {
                    messageUI.showMessage("桌子上一叠病例记录引起了你的注意。");
                    chara.getBag().insertItem(this.getItem());
                }

                else
                {
                    messageUI.showMessage("你觉得桌子上没有太重要的物品。");
                }
                chara.updateActionPoint(chara.getActionPoint() - SystemConstant.InverstActionPoint);
            }
            else
            {
                messageUI.showMessage("行动力不足,不能进行调查。");
            }
        }
    }
Example #5
0
    IEnumerator WaitResultAction(float ti)
    {
        yield return(new WaitForSeconds(ti));

        this.closeUI();
        messageUI.showMessage(this.resultMessage);
    }
Example #6
0
 public override void doClick()
 {
     Debug.Log("click a barrel");
     if (this.getIsEmpty())
     {
         messageUI.showMessage("安全柜子是空的。");
     }
     else
     {
         NPC chara = (NPC)roundController.getCurrentRoundChar();
         if (chara.getActionPoint() >= SystemConstant.InverstActionPoint)
         {
             if (chara.getAbilityInfo()[3] >= 8)
             {
                 messageUI.showMessage("你平静地看着瓶子里还未孵化出来的蛛卵,小心翼翼地把它拿了出来。");
                 chara.getBag().insertItem(this.getItem());
             }
             else if (chara.getAbilityInfo()[3] >= 6)
             {
                 messageUI.showMessage("瓶子里未孵化出的蛛卵让你感到恐惧,你需要下很大的决心才能把它取出来。");
                 this.maxValue = 7;
                 this.phase    = 1;
                 listenRoll    = true;
             }
             else if (chara.getAbilityInfo()[3] >= 4)
             {
                 messageUI.showMessage("你似乎看见瓶子的蛛卵像人的心脏一样还在微微跳动,吓得你赶紧关上的柜门。");
                 this.maxValue = 7;
                 this.phase    = 1;
                 listenRoll    = true;
             }
             else
             {
                 messageUI.showMessage("你看见未孵化的蛛卵像你的兄弟一样,你毫不犹豫地拿出了瓶子。");
                 chara.getBag().insertItem(this.getItem());
             }
             chara.updateActionPoint(chara.getActionPoint() - SystemConstant.InverstActionPoint);
         }
         else
         {
             messageUI.ShowMessge("行动力不足,不能进行调查。", 1);
         }
     }
 }
Example #7
0
 public override void doClick()
 {
     Debug.Log("click a barrel");
     if (this.getIsEmpty())
     {
         messageUI.showMessage("尸体已经被处理干净了。");
     }
     else
     {
         NPC chara = (NPC)roundController.getCurrentRoundChar();
         if (chara.getActionPoint() >= SystemConstant.InverstActionPoint)
         {
             if (chara.getAbilityInfo()[3] >= 7)
             {
                 messageUI.showMessage("你很镇静地看着尸体手臂上残留的脓包,然后用旁边的手术刀把残留物装进了瓶子里。");
                 chara.getBag().insertItem(this.getItem());
             }
             else if (chara.getAbilityInfo()[3] >= 4)
             {
                 messageUI.showMessage("你感觉到一阵恶心,但是你强忍住用旁边的手术刀试图把残留物收集起来,你需要对理智进行检测 大于6 才能收集残留物。");
                 this.maxValue = 6;
                 this.phase    = 1;
                 listenRoll    = true;
             }
             else
             {
                 messageUI.showMessage("尸体手臂上的脓包残留物让你感觉到一种亲切感。你小心翼翼地用手把它们收集起来");
                 chara.getBag().insertItem(this.getItem());
             }
             chara.updateActionPoint(chara.getActionPoint() - SystemConstant.InverstActionPoint);
         }
         else
         {
             messageUI.ShowMessge("行动力不足,不能进行调查。", 1);
         }
     }
 }
Example #8
0
 public override void doClick()
 {
     Debug.Log("click a barrel");
     if (this.getIsEmpty())
     {
         messageUI.showMessage("柜子里面是空的。");
     }
     else
     {
         NPC chara = (NPC)roundController.getCurrentRoundChar();
         if (chara.getActionPoint() >= SystemConstant.InverstActionPoint)
         {
             if (chara.getAbilityInfo()[0] >= 7)
             {
                 messageUI.showMessage("你感觉很轻松的就打开的柜子。");
                 chara.getBag().insertItem(this.getItem());
             }
             else if (chara.getAbilityInfo()[2] >= 5)
             {
                 messageUI.showMessage("打开柜子似乎有点费力,你需要对力量进行检测 大于5 才能取出里面的物品。");
                 this.maxValue = 5;
                 this.phase    = 1;
                 listenRoll    = true;
             }
             else
             {
                 messageUI.showMessage("你试图打开柜子,但是发现门很紧,你无法打开。");
             }
             chara.updateActionPoint(chara.getActionPoint() - SystemConstant.InverstActionPoint);
         }
         else
         {
             messageUI.ShowMessge("行动力不足,不能进行调查。", 1);
         }
     }
 }
Example #9
0
 public void useItem(Item item, NPC chara, Character forNPCchara, BattleMenuUI battleMenuUI)
 {
     Debug.Log("战斗中使用物品");
     if (item == null)
     {
         msg.showMessage("请选择一个物品。");
     }
     else
     {
         if (item.getType() == ItemConstant.ITEM_TYPE_POTION ||
             item.getType() == ItemConstant.ITEM_TYPE_TOOL)
         {
             Debug.Log("对自己使用");
             this.useItem(item, chara);
         }
         else
         {
             Debug.Log("对NPC使用任务道具");
             if (useItemSpec(forNPCchara, item, battleMenuUI))
             {
                 chara.getBag().removeItem(item);
             }
             ;
         }
     }
 }