Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jester Victory Screen Improvements & Server Messages in Chat Improvements #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions Jester/GameEventListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,26 @@ public GameEventListener(ILogger<ExamplePlugin> logger)
private async Task ServerSendChatToPlayerAsync(string text, IInnerPlayerControl player)
{
string playername = player.PlayerInfo.PlayerName;
await player.SetNameAsync($"PrivateMsg").ConfigureAwait(false);
byte playercolor = player.PlayerInfo.ColorId;

await player.SetColorAsync(ColorType.Black).ConfigureAwait(false);
await player.SetNameAsync($"<Server>").ConfigureAwait(false);
await player.SendChatToPlayerAsync($"{text}", player).ConfigureAwait(false);

await player.SetColorAsync(playercolor);
await player.SetNameAsync(playername);
}

private async Task ServerSendChatAsync(string text, IInnerPlayerControl player)
{
string playername = player.PlayerInfo.PlayerName;
await player.SetNameAsync($"PublicMsg").ConfigureAwait(false);
await player.SendChatAsync($"{text}").ConfigureAwait(false);
byte playercolor = player.PlayerInfo.ColorId;

await player.SetColorAsync(ColorType.Black).ConfigureAwait(false);
await player.SetNameAsync($"<Server>").ConfigureAwait(false);
await player.SendChatAsync($"{text}").ConfigureAwait(false);

await player.SetColorAsync(playercolor);
await player.SetNameAsync(playername);
}

Expand Down Expand Up @@ -254,8 +264,11 @@ private async Task TurnTheTables(IPlayerExileEvent e)
foreach (var player in e.Game.Players)
{
if (player.Client.Id != JesterGames[e.Game.Code].JesterClientId)
{
await player.Character.SetHatAsync(HatType.DumSticker).ConfigureAwait(false);
{
await player.Character.SetHatAsync(HatType.DumSticker).ConfigureAwait(false);
await player.Character.SetColorAsync(ColorType.Black).ConfigureAwait(false);
await player.Character.SetSkinAsync(SkinType.None).ConfigureAwait(false);
await player.Character.SetPetAsync(PetType.NoPet).ConfigureAwait(false);
}
}
foreach (var player in e.Game.Players)
Expand Down
23 changes: 23 additions & 0 deletions Jester/obj/Debug/netstandard2.1/Jester.AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyCompanyAttribute("Jester")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Jester")]
[assembly: System.Reflection.AssemblyTitleAttribute("Jester")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

// Von der MSBuild WriteCodeFragment-Klasse generiert.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e7e4adcabece9fe2480f845cfda452ce0117e87c
Binary file not shown.
Binary file not shown.
68 changes: 68 additions & 0 deletions Jester/obj/Jester.csproj.nuget.dgspec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"format": 1,
"restore": {
"C:\\Users\\fynnl\\Desktop\\Jester Plugin\\Everyone Black\\Jester\\Jester.csproj": {}
},
"projects": {
"C:\\Users\\fynnl\\Desktop\\Jester Plugin\\Everyone Black\\Jester\\Jester.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\fynnl\\Desktop\\Jester Plugin\\Everyone Black\\Jester\\Jester.csproj",
"projectName": "Jester",
"projectPath": "C:\\Users\\fynnl\\Desktop\\Jester Plugin\\Everyone Black\\Jester\\Jester.csproj",
"packagesPath": "C:\\Users\\fynnl\\.nuget\\packages\\",
"outputPath": "C:\\Users\\fynnl\\Desktop\\Jester Plugin\\Everyone Black\\Jester\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\fynnl\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netstandard2.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netstandard2.1": {
"targetAlias": "netstandard2.1",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netstandard2.1": {
"targetAlias": "netstandard2.1",
"dependencies": {
"Impostor.Api": {
"target": "Package",
"version": "[1.2.2-ci.121, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"NETStandard.Library": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.101\\RuntimeIdentifierGraph.json"
}
}
}
}
}
18 changes: 18 additions & 0 deletions Jester/obj/Jester.csproj.nuget.g.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\fynnl\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.8.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="$([MSBuild]::EnsureTrailingSlash($(NuGetPackageFolders)))" />
</ItemGroup>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
</Project>
6 changes: 6 additions & 0 deletions Jester/obj/Jester.csproj.nuget.g.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
</Project>
Loading