コード例 #1
0
    public override void cleanUp()
    {
        // Checks if Skill3 or Skill2 was used
        Character tempTarget  = Target[2];
        bool      whichAction = false;

        if (action == "Skill3")
        {
            whichAction = true;
        }
        base.cleanUp();

        // If getting ready for skill 3 set action and target for next turn
        if (findStatus(STATUS.MISC2) != -1)
        {
            if (Random.Range(0f, 100f) < 80f)
            {
                Target [2] = tempTarget;
            }
            if (whichAction)
            {
                action     = "Skill3";
                actionType = "Offense";
                Target [0] = Target [2];
                Target [1] = Target [2];
                CSUI.ShowTell("Offense");
            }
        }
    }
コード例 #2
0
ファイル: Kuro.cs プロジェクト: QuodEratDemon/Superball
    public override void cleanUp()
    {
        base.cleanUp();

        // If getting ready for skill 3 set action for next turn
        if (findStatus("misc") != -1)
        {
            action     = "Skill3";
            actionType = "Offense";
            CSUI.ShowTell("Offense");
        }
    }
コード例 #3
0
ファイル: Harold.cs プロジェクト: QuodEratDemon/Superball
    public override void cleanUp()
    {
        // Checks if Skill3 or Skill2 was used
        bool whichAction = false;

        if (action == "Skill3")
        {
            whichAction = true;
        }
        base.cleanUp();

        // If getting ready for skill 3 set action and target for next turn
        if (findStatus("misc") != -1)
        {
            if (whichAction)
            {
                action     = "Skill3";
                actionType = "Offense";
                Target [0] = Target [2];
                Target [1] = Target [2];
                CSUI.ShowTell("Offense");
            }
        }
    }
コード例 #4
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            txtID.Text = LC.getIDPegawaiYangLogin(txtUsername.Text).ToString();

            if (txtID.Text == "" || txtPass.Text == "")
            {
                MessageBox.Show("Silahkan lengkapi form yang tersedia", "iNBC", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            }

            else
            {
                if (LC.cekLogin(txtUsername.Text, txtPass.Text) == true)
                {
                    int role = LC.GetRoleUser(txtUsername.Text, txtPass.Text);
                    if (role == 1)
                    {
                        this.Hide();
                        KKUI KKUI = new KKUI();
                        KKUI.ShowDialog();
                        this.Close();
                    }

                    if (role == 2)
                    {
                        this.Hide();
                        PengelolaanPegawai kelola = new PengelolaanPegawai();
                        kelola.setToolStripUser("Pengguna: Admin - " + txtUsername.Text);
                        kelola.ShowDialog();
                        this.Close();
                    }

                    if (role == 3)
                    {
                        this.Hide();
                        CSUI wlc = new CSUI();
                        //wlc.setToolStripUser("Pengguna: Customer Service - " + txtUsername.Text);
                        wlc.ShowDialog();
                        this.Close();
                    }

                    if (role == 4)
                    {
                        this.Hide();
                        Pemeriksaan wlc = new Pemeriksaan();
                        wlc.setToolStripUser("Pengguna: Dokter - " + txtUsername.Text);
                        wlc.ShowDialog();
                        this.Close();
                    }

                    if (role == 5)
                    {
                        this.Hide();
                        Pembayaran wlc = new Pembayaran();
                        wlc.setToolStripUser("Pengguna: Kasir - " + txtUsername.Text);
                        wlc.ShowDialog();
                        this.Close();
                    }

                    if (role == 6)
                    {
                        this.Hide();
                        BTCUI wlc = new BTCUI();
                        // wlc.setToolStripUser("Pengguna: Beautician - " + txtUsername.Text);
                        wlc.ShowDialog();
                        this.Close();
                    }

                    else
                    {
                        MessageBox.Show("Role tersebut tidak tersedia");
                    }
                }

                else
                {
                    MessageBox.Show("Maaf, username / password salah", "iNBC", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
        }