<?php

namespace App\Services\PwHexParser\Types;

use App\Services\PwHexParser\Contracts\Translate;

class Ammo extends Translate
{
    protected string $typeKey = 'Ammo';

    public function getStructure(): array
    {
        return [
            'level' => 'int32',
            'required_class' => 'int32',
            'strength_requirement' => 'int32',
            'constitution_requirement' => 'int32',
            'agility_requirement' => 'int32',
            'intelligence_requirement' => 'int32',
            'min_durability' => 'durability',
            'max_durability' => 'durability',
            'unknown1' => 'int64',
            'type' => 'int64',
            'damage' => 'int64',
            'damage_scale' => 'int64',
            'min_weapon_grade' => 'int64',
            'max_weapon_grade' => 'int64',
            'sockets_count' => 'sockets_count',
            'sockets' => 'sockets',
            'addons_count' => 'addons_count',
            'addons' => 'addons',
        ];
    }

    public function getMinimumLength(): int
    {
        return 103;
    }
}