Skip to content

Commit

Permalink
Don't look at the code @rick. Just compile it and hit the 'Test' butt…
Browse files Browse the repository at this point in the history
…on. Be sure you check the status log!
  • Loading branch information
Brygon committed May 30, 2017
1 parent 89870ba commit 9f5c736
Show file tree
Hide file tree
Showing 17 changed files with 609 additions and 3,831 deletions.
20 changes: 15 additions & 5 deletions PersonalDiscordBot/Classes/RPG.cs
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ public static Armor ArmorPicker(RarityType rarityType, Character chara)
}
else
{
armor = Armors.ArmorRandomGen(rarityType, ChooseArmorType(chara), chara.Lvl);
//armor = Armors.ArmorRandomGen(rarityType, ChooseArmorType(chara), chara.Lvl);
}

return armor;
Expand Down Expand Up @@ -1193,10 +1193,10 @@ public static class Armors
imperialArmor
};

public static Armor ArmorRandomGen(RarityType rarity, ArmorType type, int level)
{
//public static Armor ArmorRandomGen(RarityType rarity, ArmorType type, int level)
//{

}
//}
}

public static class Items
Expand Down Expand Up @@ -1279,9 +1279,10 @@ public class Testing
{
public static string line = Environment.NewLine;

public static string RandomWeap()
public static string RandomWeap(out string namer)
{
var pickedLoot = (Weapon)LootDrop.PickLoot(testiculeesCharacter);
namer = pickedLoot.Name;
return ($"{line}Name: {pickedLoot.Name}{line}Description: {pickedLoot.Desc}{line}Type: {pickedLoot.Type.ToString()}{line}Rarity: {pickedLoot.Rarity}{line}Level: {pickedLoot.Lvl}{line}Max Durability: {pickedLoot.MaxDurability}{line}Current Durability: {pickedLoot.CurrentDurability}{line}Worth: {pickedLoot.Worth}{line}Speed: {pickedLoot.Speed}{line}Physical Damage: {pickedLoot.PhysicalDamage}");
}

Expand Down Expand Up @@ -1368,6 +1369,15 @@ public static string RandomMassTest(int num)
return ($"{line}sword = {sword}{line}dagger = {dagger}{line}greatsword = {greatsword}{line}katana = {katana}{line}staff = {staff}{line}focusStone = {focusStone}{line}spear = {spear}{line}dragonSpear = {dragonSpear}{line}twinSwords = {twinSwords}{line}other = {other}{line}starter = {starter}{line}unique = {unique}{line}------------------------------------------------{line}common = {common}{line}uncommon = {uncommon}{line}rare = {rare}{line}epic = {epic}{line}legendary = {legendary}{line}");
}

public static string GetMarried()
{
string namer = "";
var weapon = RandomWeap(out namer);
var time = rng.Next(100000, 382947828);
var whatchaSay = weapon != null ? ($"{line}Hello Richard.{line}You have {time} seconds(s) of safety remaining until Heather uses {namer} on yo ass. You know why.{line}Hint: Marriage.{line}Good Luck!{line}**************************{weapon}") : ($"{line}Hello Richard.{line}You have {time} seconds(s) of safety remaining until Heather uses [[ExceptionUnhandled]] on yo ass. You know why.{line}Hint: Marriage.{line}Good Luck!{line}***********************{line}This was supposed to be a weapon but the code blew it.{line}Thankfully I handled the unhandled exception exceptionally.");
return whatchaSay;
}

public static OwnerProfile testiculeesProfile = new OwnerProfile()
{
CurrentCharacter = testiculeesCharacter,
Expand Down
2 changes: 1 addition & 1 deletion PersonalDiscordBot/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ private async Task MessageHandler(SocketMessage arg)
private void btnTest_Click(object sender, RoutedEventArgs e)
{
//uStatusUpdate(Testing.RandomMassTest(1000));
uStatusUpdate(Testing.RandomWeap());
uStatusUpdate(Testing.GetMarried());
}

#endregion
Expand Down
45 changes: 0 additions & 45 deletions PersonalDiscordBot/bin/Debug/Logs/DebugLog_05-10-17.txt

This file was deleted.

Loading

1 comment on commit 9f5c736

@rick
Copy link

@rick rick commented on 9f5c736 May 31, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.