Skip to content

Instantly share code, notes, and snippets.

View efarraro's full-sized avatar

Eric Farraro efarraro

View GitHub Profile
void test(String s) {
int i = 0;
i++;
}
[Serializable]
public class ZapEffect : BaseEffect {
private int[] _damagePerCharge = new int[] { 1, 2, 3 };
public override void Apply()
{
int multiplier = (Ability as Spell).Charges.Percentage == 1 ? 2 : 1;
int damage = _damagePerCharge[Ability.Level] * (Ability as Spell).Charges.Current * multiplier;
BattleApp.Instance.ResolveDamage(damage, BattleApp.Instance.CurrentPlayer, BattleApp.Instance.CurrentTarget, DamageType.Wind);
using UnityEngine;
using System.Collections;
using System;
using System.Runtime.Serialization;
[Serializable]
public class BaseEffect {
[NonSerialized]
public Unit AttachedUnit;
@efarraro
efarraro / gist:f96ff6be5e2428674e7d61c33ebc280e
Created May 7, 2024 03:14
Build.yml for Github Actions (Unity game)
name: Build Bramble Royale
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch
on: [workflow_dispatch]
jobs:
build:
name: Build Windows
runs-on: ubuntu-latest
outputs: