@extends('admin.layout') @section('admin-title') Forages @endsection @section('admin-content') {!! breadcrumbs(['Admin Panel' => 'admin', 'Forages' => 'admin/data/forages', ($table->id ? 'Edit' : 'Create') . ' Forage' => $table->id ? 'admin/data/forages/edit/' . $table->id : 'admin/data/forages/create']) !!}
These are the potential rewards from rolling on this forage, similar to loot tables. You can add items, currencies or a loot table. @if (!$table->id) You can test loot rolling after the loot table is created. @endif
You can add any kind of currencies (both user- and character-attached), but be sure to keep track of which are being distributed! Character-only currencies cannot be given to users.
| Loot Type | Reward | Quantity | Weight {!! add_help('A higher weight means a reward is more likely to be rolled. Weights have to be integers above 0 (round positive number, no decimals) and do not have to add up to be a particular number.') !!} | Chance | |
|---|---|---|---|---|---|
| {!! Form::select('rewardable_type[]', ['Item' => 'Item', 'Currency' => 'Currency', 'LootTable' => 'Loot Table', 'None' => 'None'], $loot->rewardable_type, ['class' => 'form-control reward-type', 'placeholder' => 'Select Reward Type']) !!} | @if ($loot->rewardable_type == 'Item') {!! Form::select('rewardable_id[]', $items, $loot->rewardable_id, ['class' => 'form-control item-select selectize', 'placeholder' => 'Select Item']) !!} @elseif($loot->rewardable_type == 'Currency') {!! Form::select('rewardable_id[]', $currencies, $loot->rewardable_id, ['class' => 'form-control currency-select selectize', 'placeholder' => 'Select Currency']) !!} @elseif($loot->rewardable_type == 'LootTable') {!! Form::select('rewardable_id[]', $tables, $loot->rewardable_id, ['class' => 'form-control table-select selectize', 'placeholder' => 'Select Loot Table']) !!} @elseif($loot->rewardable_type == 'None') {!! Form::select('rewardable_id[]', [1 => 'No reward given.'], $loot->rewardable_id, ['class' => 'form-control']) !!} @endif | {!! Form::text('quantity[]', $loot->quantity, ['class' => 'form-control']) !!} | {!! Form::text('weight[]', $loot->weight, ['class' => 'form-control loot-weight']) !!} | Remove |
| {!! Form::select('rewardable_type[]', ['Item' => 'Item', 'Currency' => 'Currency', 'LootTable' => 'Loot Table', 'None' => 'None'], null, ['class' => 'form-control reward-type', 'placeholder' => 'Select Reward Type']) !!} | {!! Form::text('quantity[]', 1, ['class' => 'form-control']) !!} | {!! Form::text('weight[]', 1, ['class' => 'form-control loot-weight']) !!} | Remove |
If you have made any modifications to the loot table contents above, be sure to save it (click the Edit button) before testing.
Please note that due to the nature of probability, as long as there is a chance, there will always be the possibility of rolling improbably good or bad results. This is not indicative of the code being buggy or poor game balance. Be cautious when adjusting values based on a small sample size, including but not limited to test rolls and a small amount of user reports.