コード例 #1
0
    public void clear()
    {
        HPMax   = 0;
        MPMax   = 0;
        MoveMax = 0;

        Attack   = 0;
        Defence  = 0;
        Hit      = 0;
        Miss     = 0;
        Critical = 0;
        Double   = 0;

        Str = 0;
        Int = 0;
        Avg = 0;
        Vit = 0;
        Luk = 0;

        AttributeType = GameAttributeType.None;

        for (int i = 0; i < (int)GameAttributeType.Count; i++)
        {
            AttributeDefence[i] = 0;
        }
    }
コード例 #2
0
ファイル: GameBattleUnitEffect.cs プロジェクト: foxgame/Sword
    public float getAttributeDefence(GameAttributeType type)
    {
        if (type != GameAttributeType.None)
        {
            return(AttributeDefence[(int)type] / 100.0f);
        }

        return(1.0f);
    }