Package that helps you return random Team Fortress 2 names of weapons in factories.
You can install the package via composer:
composer require cheddzy/tf2-faker --dev
Provided for each TF2 class is a method to return a random weapon string in a factory:
$this->faker->scoutWeapon();
You can also specify a class and class + slot:
$this->faker->classWeapon('heavy');
$this->faker->classWeaponSlot('engineer', 'pda');
As well as for specific slots per class:
$this->faker->spyPrimary();
$this->faker->spyMelee();
$this->faker->spyPDA();
$this->faker->spyWatch();
$this->faker->spySapper();
These exist for all 9 classes.
NOTE: Keep in mind spy is the only one with a Watch and Sapper slot, and Engineer and Spy are the only ones with a PDA slot!
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.
Test