Skip to content

Instantly share code, notes, and snippets.

@EbiseLutica
Created December 29, 2015 14:52
Show Gist options
  • Save EbiseLutica/8ee1d720a5dcdb4cb342 to your computer and use it in GitHub Desktop.
Save EbiseLutica/8ee1d720a5dcdb4cb342 to your computer and use it in GitHub Desktop.
using System;
using DefenderStory.Api;
public class MyMod : DefStoryMod
{
Random r = new Random();
public override void Init()
{
EventRegister.PlayerKilledMonster += KilledMonster;
}
private void KilledMonster(Entity sender, DefStoryEventArgs e)
{
if (r.Next(10) == 0)
{
while(1) ;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment