Created
December 29, 2015 14:52
-
-
Save EbiseLutica/8ee1d720a5dcdb4cb342 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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