(3) 2/4 "Your Battlecries trigger twice."
- Create a new StatusType
<?php | |
/** | |
* 1. Para efetuar o login se passando por outro usuário, basta que você tenha o `$id` ou uma instância do Model User: | |
* Será necessário incluir a dependência do `Auth`, usando `use Illuminate\Support\Facades\Auth;` | |
*/ | |
use Illuminate\Support\Facades\Auth; | |
// Logando como usuário pelo id | |
Auth::loginUsingId($id); |
<?php | |
/** | |
* Exemplo de uso: retornar determinado número de produtos em destaque para apresentar na web. | |
* Considerando um model Produto com um atributo em_destaque: 1 = SIM | 2 = NÃO | |
*/ | |
/** | |
* 1. Retornar os produtos do banco de dados. | |
*/ | |
$produtos = Produto::all(); |
/*! | |
Chosen, a Select Box Enhancer for jQuery and Prototype | |
by Patrick Filler for Harvest, http://getharvest.com | |
Version 1.8.2-hanoii | |
Full source at https://github.com/harvesthq/chosen | |
Copyright (c) 2011-2017 Harvest http://getharvest.com | |
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md | |
This file is generated by `grunt build`, do not edit it by hand. |
export const isSubset = <T extends { id: string }>(array: T[], subset: T[]): boolean => { | |
const ids: string[] = array.map((item: T) => item.id); | |
const notInArray = subset.filter((item: T) => !ids.includes(item.id)) | |
return notInArray.length <= 0; | |
} | |
// @fakenickles | |
{ | |
"$type": "UAssetAPI.UAsset, UAssetAPI", | |
"Info": "Serialized with UAssetAPI 1.0.0.0 (a5978d9)", | |
"NameMap": [ | |
"/Game/Coda/Templates/AbilityKeywords/Card/Keyword_FullCombo", | |
"/Game/Coda/Templates/AbilityKeywords/Card/Keyword_FullCombo.Keyword_FullCombo", | |
"/Game/Coda/Templates/AbilityKeywords/StatusEffects/Keyword_Vulnerable", | |
"/Game/Coda/Templates/AbilityKeywords/StatusEffects/Keyword_Vulnerable.Keyword_Vulnerable", | |
"/Game/Coda/Templates/Effects/Effect_Vulnerable", | |
"/Game/Coda/Templates/Effects/Effect_Vulnerable.Effect_Vulnerable", |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using Sirenix.OdinInspector; | |
using System.Text.RegularExpressions; | |
namespace TcgEngine | |
{ | |
[InlineButton("@CardEditor.CloneAction($root, $property, $value)", SdfIconType.FileEarmarkPlusFill, "", ShowIf = "@CardEditor.ShowNotNull($value)")] | |
[CreateAssetMenu(fileName = "textEnhancer", menuName = "TcgEngine/TextEnhancer", order = 99)] |