Compare commits

...

13 Commits

11 changed files with 210 additions and 28 deletions

4
.gitignore vendored
View File

@ -9,4 +9,6 @@ riderModule.iml
*.sln.DotSettings.user
/.idea/.idea.LyneMod/.idea/indexLayout.xml
/.idea/.idea.LyneMod/.idea/misc.xml
/.idea/.idea.LyneMod/.idea/inspectionProfiles/Project_Default.xml
/.idea/.idea.LyneMod/.idea/inspectionProfiles/Project_Default.xml
/build/
/LyneMod.zip

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="MarkdownSettings">
<option name="autoScrollEnabled" value="false" />
<enabledExtensions>
<entry key="MermaidLanguageExtension" value="false" />
<entry key="PlantUMLLanguageExtension" value="false" />
</enabledExtensions>
<option name="splitLayout" value="SHOW_EDITOR" />
<option name="verticalSplit" value="false" />
</component>
</project>

View File

@ -1,4 +1,4 @@
// Copyright 2021 Lynnesbian
// Copyright 2021-2022 Lynnesbian
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -13,17 +13,27 @@
// limitations under the License.
using BepInEx;
using RoR2;
using R2API.Utils;
namespace LyneMod {
[BepInDependency("com.bepis.r2api")]
[BepInPlugin("space.lynnesbian.lynemod", "Lyne Mod", "1.0.0")]
[BepInPlugin("space.lynnesbian.lynemod", "Lyne Mod", "1.0.6")]
public class LyneMod : BaseUnityPlugin {
public void Awake() {
On.EntityStates.EngiTurret.DeathState.OnExit += (orig, self) => {
Chat.AddMessage("Turret bonked!");
ChatMessage.Send("Turret bonked!");
orig(self);
};
// On.EntityStates.Barrel.Opening.OnEnter += (On.EntityStates.Barrel.Opening.orig_OnEnter orig, EntityStates.Barrel.Opening self) => {
// TODO: figure out how to do this properly, and how to determine the player that interacted with the barrel
// var healthPickup = new RoR2.Orbs.HealOrb();
// healthPickup.healValue = 10; // 10%
// healthPickup.overrideDuration = 1f;
// healthPickup.target = RoR2.HurtBox.readOnlyBullseyesList[0];
// healthPickup.Begin();
// orig(self);
// };
}
}
}

View File

@ -5,22 +5,22 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="0Harmony, Version=2.4.0.0, Culture=neutral, PublicKeyToken=null">
<Reference Include="0Harmony, Version=2.9.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\..\..\..\..\.config\r2modmanPlus-local\RiskOfRain2\profiles\Lynnear\BepInEx\core\0Harmony.dll</HintPath>
</Reference>
<Reference Include="0Harmony20, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\..\..\..\..\.config\r2modmanPlus-local\RiskOfRain2\profiles\Lynnear\BepInEx\core\0Harmony20.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\..\..\..\..\.steam\ssd\steamapps\common\Risk of Rain 2\Risk of Rain 2_Data\Managed\Assembly-CSharp.dll</HintPath>
<HintPath>..\..\..\..\..\.steam\debian-installation\steamapps\common\Risk of Rain 2\Risk of Rain 2_Data\Managed\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="BepInEx, Version=5.4.9.0, Culture=neutral, PublicKeyToken=null">
<Reference Include="BepInEx, Version=5.4.19.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\..\..\..\..\.config\r2modmanPlus-local\RiskOfRain2\profiles\Lynnear\BepInEx\core\BepInEx.dll</HintPath>
</Reference>
<Reference Include="BepInEx.Harmony, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\..\..\..\..\.config\r2modmanPlus-local\RiskOfRain2\profiles\Lynnear\BepInEx\core\BepInEx.Harmony.dll</HintPath>
</Reference>
<Reference Include="BepInEx.Preloader, Version=5.4.9.0, Culture=neutral, PublicKeyToken=null">
<Reference Include="BepInEx.Preloader, Version=5.4.19.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\..\..\..\..\.config\r2modmanPlus-local\RiskOfRain2\profiles\Lynnear\BepInEx\core\BepInEx.Preloader.dll</HintPath>
</Reference>
<Reference Include="HarmonyXInterop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
@ -29,35 +29,23 @@
<Reference Include="MMHOOK_Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\..\..\..\..\.config\r2modmanPlus-local\RiskOfRain2\profiles\Lynnear\BepInEx\plugins\MMHOOK\MMHOOK_Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil, Version=0.10.4.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e">
<HintPath>..\..\..\..\..\.config\r2modmanPlus-local\RiskOfRain2\profiles\Lynnear\BepInEx\core\Mono.Cecil.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil.Mdb, Version=0.10.4.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e">
<HintPath>..\..\..\..\..\.config\r2modmanPlus-local\RiskOfRain2\profiles\Lynnear\BepInEx\core\Mono.Cecil.Mdb.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil.Pdb, Version=0.10.4.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e">
<HintPath>..\..\..\..\..\.config\r2modmanPlus-local\RiskOfRain2\profiles\Lynnear\BepInEx\core\Mono.Cecil.Pdb.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil.Rocks, Version=0.10.4.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e">
<HintPath>..\..\..\..\..\.config\r2modmanPlus-local\RiskOfRain2\profiles\Lynnear\BepInEx\core\Mono.Cecil.Rocks.dll</HintPath>
</Reference>
<Reference Include="MonoMod.RuntimeDetour, Version=21.1.11.1, Culture=neutral, PublicKeyToken=null">
<Reference Include="MonoMod.RuntimeDetour, Version=22.1.29.1, Culture=neutral, PublicKeyToken=null">
<HintPath>..\..\..\..\..\.config\r2modmanPlus-local\RiskOfRain2\profiles\Lynnear\BepInEx\core\MonoMod.RuntimeDetour.dll</HintPath>
</Reference>
<Reference Include="MonoMod.Utils, Version=21.1.11.1, Culture=neutral, PublicKeyToken=null">
<Reference Include="MonoMod.Utils, Version=22.1.29.1, Culture=neutral, PublicKeyToken=null">
<HintPath>..\..\..\..\..\.config\r2modmanPlus-local\RiskOfRain2\profiles\Lynnear\BepInEx\core\MonoMod.Utils.dll</HintPath>
</Reference>
<Reference Include="R2API, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\..\..\..\..\.config\r2modmanPlus-local\RiskOfRain2\profiles\Lynnear\BepInEx\plugins\tristanmcpherson-R2API\R2API\R2API.dll</HintPath>
</Reference>
<Reference Include="RoR2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\..\..\..\..\.steam\debian-installation\steamapps\common\Risk of Rain 2\Risk of Rain 2_Data\Managed\RoR2.dll</HintPath>
</Reference>
<Reference Include="UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\..\..\..\..\.steam\ssd\steamapps\common\Risk of Rain 2\Risk of Rain 2_Data\Managed\UnityEngine.dll</HintPath>
<HintPath>..\..\..\..\..\.steam\debian-installation\steamapps\common\Risk of Rain 2\Risk of Rain 2_Data\Managed\UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\..\..\..\..\.steam\ssd\steamapps\common\Risk of Rain 2\Risk of Rain 2_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.Networking, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\..\..\..\..\.steam\ssd\steamapps\common\Risk of Rain 2\Risk of Rain 2_Data\Managed\UnityEngine.Networking.dll</HintPath>
<HintPath>..\..\..\..\..\.steam\debian-installation\steamapps\common\Risk of Rain 2\Risk of Rain 2_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
</Reference>
</ItemGroup>

5
README.md Normal file
View File

@ -0,0 +1,5 @@
LyneMod
===
LyneMod is a simple and silly little mod that mostly changes a bunch of text strings in the game to be more silly (and perhaps even wacky). It is a little bit powerful, I think.
Available on ThunderStore [here](https://thunderstore.io/package/Lynnesbian/LyneMod/1.0.3/) if you want to use it for whatever reason. All of the language changes are in [the lyne.language file](https://git.bune.city/lynnesbian/LyneMod/src/branch/master/res/lyne.language).

9
package.sh Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -e
mkdir build || true
dotnet build -o build
mv build/LyneMod.dll res
rm -r build
rm LyneMod.zip || true
zip -rj9 LyneMod.zip res/*

BIN
res/LyneMod.dll Normal file

Binary file not shown.

4
res/README.md Normal file
View File

@ -0,0 +1,4 @@
LyneMod
===
LyneMod is a simple and silly little mod that mostly changes a bunch of text strings in the game to be more silly (and perhaps even wacky). It is a little bit powerful, I think.

BIN
res/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

119
res/lyne.language Normal file
View File

@ -0,0 +1,119 @@
{
"strings": {
"ITEM_MISSILE_NAME": "Hooah.",
"ITEM_EXPLODEONDEATH_NAME": "Will-o'-the-stinch",
"ITEM_MUSHROOM_NAME": "Bungus",
"ITEM_BLEEDONHIT_NAME": "Tri-Tip Stabber",
"ITEM_HEALWHILESAFE_NAME": "Slightly Sluggy Slug",
"ITEM_INFUSION_NAME": "Inboosion",
"ITEM_TOOTH_NAME": "Stuping Necklace",
"ITEM_STICKYBOMB_NAME": "Sticky Maracas",
"ITEM_SPRINTBONUS_NAME": "Sprite of Power",
"ITEM_BARRIERONKILL_NAME" : "Turtle Brooch",
"ITEM_BEAR_NAME": "Tedding Times",
"ITEM_DEATHMARK_NAME": "Death's Head",
"ITEM_EQUIPMENTMAGAZINE_NAME": "Snool Cell",
"ITEM_NOVAONLOWHEALTH_NAME" : "Jelly Defense",
"ITEM_KNURL_NAME": "Titanic Snurl",
"ITEM_LUNARTRINKET_NAME" : "Pecha's Rosary",
"ITEM_FOCUSEDCONVERGENCE_NAME" : "Orb of Speed",
"ITEM_SHIELDONLY_NAME": "Spooking Beetle",
"ITEM_SQUIDTURRET_NAME" : "Squidular Turret",
"ITEM_SQUIDTURRET_PICKUP" : "Activating an interactable puts a Squid Turret nearby.",
"ITEM_SQUIDTURRET_DESC": "Activating an interactable <style=cIsUtility>puts</style> a <style=cIsDamage>Squid Turret</style> that attacks nearby enemies at <style=cIsDamage>100% <style=cStack>(+100% per stack)</style> attack speed</style>. Lasts <style=cIsUtility>30</style> seconds.",
"ITEM_BEETLEGLAND_NAME": "Beetle Putter",
"ITEM_BEETLEGLAND_PICKUP": "Put a Beetle Guard.",
"ITEM_BEETLEGLAND_DESC": "Every 30 seconds, <style=cIsUtility>put a Beetle Guard</style> with bonus <style=cIsDamage>300%</style> damage and <style=cIsHealing>100% health</style>. Can have up to <style=cIsUtility>1</style> <style=cStack>(+1 per stack)</style> Guards at a time.",
"ITEM_HOOF_DESC": "Increases <style=cIsUtility>shmovement speed</style> by <style=cIsUtility>14%</style> <style=cStack>(+14% per stack)</style>.",
"ITEM_SPRINTOUTOFCOMBAT_DESC": "Leaving combat boosts your <style=cIsUtility>shmovement speed</style> by <style=cIsUtility>30%</style> <style=cStack>(+30% per stack)</style>.",
"ITEM_CRITGLASSES_NAME": "Critsy Glasses",
"ITEM_FIRERING_NAME": "Cripsy Band",
"ITEM_ICERING_NAME": "Frotsy Band",
"ITEM_STRENGTHENBURN_NAME" : "NOS Bottle",
"ITEM_MOVESPEEDONKILL_NAME" : "Stuping Harpoon",
"ITEM_TREASURECACHEVOID_NAME": "Crutsy Key",
"ITEM_SLOWONHIT_NAME": "Make Sticky",
"ITEM_BEARVOID_NAME" : "Tardigrade Times",
"ITEM_MISSILEVOID_NAME": "Missile Shrimp",
"EQUIPMENT_FIREBALLDASH_NAME" : "Volcanic Eggy",
"EQUIPMENT_LIFESTEALONHIT_NAME": "Loveleech",
"EQUIPMENT_TEAMWARCRY_NAME": "Gorgug's Opus",
"EQUIPMENT_BLACKHOLE_NAME": "Very Heavy Cube",
"EQUIPMENT_METEOR_NAME": "Stuping Meteorite",
"ITEM_MUSHROOMVOID_NAME": "The Infamous Wungus",
"SHRINE_COMBAT_NAME": "Shrine of Wombat",
"SHRINE_COMBAT_CONTEXT": "Pray to Shrine of Wombat",
"SHRINE_BOSS_NAME": "Shrine of the Mountain King",
"SHRINE_BOSS_CONTEXT": "Pray to Shrine of the Mountain King",
"SHRINE_BOSS_USE_MESSAGE_2P": "<style=cShrine>You have invited the challenge of the Mountain King...</color>",
"SHRINE_BOSS_USE_MESSAGE": "<style=cShrine>{0} has invited the challenge of the Mountain King...</color>",
"SHRINE_BOSS_BEGIN_TRIAL": "<style=cShrine>Let the challenge of the Mountain King... begin!</style>",
"PICKUP_LUNAR_COIN": "Bunar Coin",
"LUNAR_COIN_PICKUP_CONTEXT": "Pick up Bunar Coin",
"TELEPORTER_NAME": "Telepeebus",
"TELEPORTER_BEGIN_CONTEXT": "Activate Telepeebus...?",
"TELEPORTER_END_CONTEXT": "Enter Telepeebus",
"CHEST2_NAME": "Powerful Chest",
"CHEST2_CONTEXT": "Open powerful chest",
"LUNAR_CHEST_NAME" : "Bunar Pod",
"LUNAR_CHEST_CONTEXT" : "Open Bunar Pod",
"LUNAR_TERMINAL_NAME" : "Bunar Bud",
"LUNAR_TERMINAL_CONTEXT" : "Open Bunar Bud",
"NEWT_STATUE_NAME" : "Snoot Altar",
"NEWT_STATUE_CONTEXT" : "Donate to Snoot Altar",
"SHRINE_HEALING_NAME": "Shrine of Fungus Woods",
"SHRINE_HEALING_CONTEXT": "Offer to Shrine of Fungus Woods",
"SHRINE_HEALING_USE_MESSAGE_2P": "<style=cShrine>You are embraced by the healing warmth of Fungus Woods.</color>",
"SHRINE_HEALING_USE_MESSAGE": "<style=cShrine>{0} is embraced by the healing warmth of Fungus Woods.</color>",
"PLAYER_KILLED_MESSAGE": "<style=cEvent>{0} was bonked by '{1}'</color>",
"PLAYER_DIED_MESSAGE": "<style=cEvent>{0} has been bonked.</color>",
"PLAYER_ACTIVATED_TELEPORTER_2P": "<style=cEvent>You activated the <style=cDeath>Telepeebus <sprite name=\"TP\" tint=1></style>.</style>",
"PLAYER_ACTIVATED_TELEPORTER": "<style=cEvent>{0} activated the <style=cDeath>Telepeebus <sprite name=\"TP\" tint=1></style>.</style>",
"PLAYER_PING_DEFAULT" : "<style=cIsHealing>{0} wants to shmove here.</style>",
"LUNAR_TELEPORTER_IDLE" : "<style=cWorldEvent>The Primordial Telepeebus aligns with the planet..</style>",
"LUNAR_TELEPORTER_ACTIVE" : "<style=cWorldEvent>The Primordial Telepeebus aligns with the moon..</style>",
"PLAYER_CONNECTED": "<style=cEvent>Hi {0}!</color>",
"PLAYER_DISCONNECTED": "<style=cEvent>Bye {0}!</color>",
"GAME_RESULT_LOST": "Eewr!",
"TITLE_EXIT": "Stinch Off",
"OBJECTIVE_FIND_TELEPORTER": "Find and activate the <style=cDeath>Telepeebus <sprite name=\"TP\" tint=1></style>",
"OBJECTIVE_CHARGE_TELEPORTER": "Charge the <style=cDeath>Telepeebus <sprite name=\"TP\" tint=1></style> ({0}%)",
"OBJECTIVE_CHARGE_TELEPORTER_OOB": "Enter the <style=cDeath>Telepeebus zone!</style> ({0}%)",
"OBJECTIVE_FINISH_TELEPORTER": "Proceed through the <style=cDeath>Telepeebus <sprite name=\"TP\" tint=1></style>",
"ENGI_SPECIAL_NAME": "TR12 Funny Sentry",
"ENGI_SPECIAL_DESCRIPTION" : "Place a sentry that <style=cIsUtility>inherits all your items.</style> Fires a cannon for <style=cIsDamage>100% damage</style>. Can place up to 2.",
"ENGI_SECONDARY_NAME": "Eggies",
"ENGI_SECONDARY_DESCRIPTION" : "Place a two-stage eggy that deals <style=cIsDamage>300% damage</style>, or <style=cIsDamage>900% damage</style> if fully armed. Can place up to 4.",
"ENGI_SPIDERMINE_NAME": "Leggy Eggies",
"ENGI_SPIDERMINE_DESCRIPTION": "Place a belegged eggy that deals <style=cIsDamage>600% damage</style> when an enemy walks nearby. Can place up to 4.",
"MAGE_PRIMARY_FIRE_DESCRIPTION" : "Fire a shiny, yet deadly bolt for <style=cIsDamage>220% damage</style> that <style=cIsDamage>ignites</style> enemies. Hold up to 4.</style>",
"MAGE_UTILITY_ICE_DESCRIPTION" : "<style=cIsUtility>Freezing</style>. Create a barrier that hurts enemies for <style=cIsDamage>100% ouching damage</style>.",
"TOOLBOT_PRIMARY_NAME": "Putting",
"TOOLBOT_PRIMARY_DESCRIPTION" : "Rapidly put nails for <style=cIsDamage>70% damage</style>. Finishes with a blast of <style=cIsDamage>12</style> nails.",
"LOADER_BODY_SUBTITLE" : "Buff Lesbian GF",
"MINIMUSHROOM_BODY_NAME" : "Stuping Mushrum",
"GOLEM_BODY_NAME": "Stoney Jabroni",
"TITAN_BODY_NAME": "MegaGolem",
"JELLYFISH_BODY_NAME": "Stuping Jellyfish",
"MAGMAWORM_BODY_NAME": "Fat Wormy Snake",
"ELECTRICWORM_BODY_NAME": "Extremely Fat Wormy Snake",
"GRANDPARENT_BODY_SUBTITLE": "Big",
"VAGRANT_BODY_SUBTITLE": "World's Most Stuping Jellyfish",
"MAGMAWORM_BODY_SUBTITLE": "Devourer of Turrets",
"ENGITURRET_BODY_NAME": "Funny Sentry",
"CUTSCENE_INTRO_FLAVOR_1": "UES 'I Sure Hope Nothing Bad Happens' ",
"ENGI_OUTRO_FLAVOR": "..and so she left, her eggies sown.",
"ENGI_MAIN_ENDING_ESCAPE_FAILURE_FLAVOR": "..and so she vanished, feeling rather bonked.",
"MAGE_OUTRO_FLAVOR": "..and so she left, feeling a little bit powerful.",
"MAGE_MAIN_ENDING_ESCAPE_FAILURE_FLAVOR": "..and so she vanished, into her own little world."
}
}

33
res/manifest.json Normal file
View File

@ -0,0 +1,33 @@
{
"ManifestVersion": 2,
"AuthorName": "Lynnesbian",
"DisplayName": "LyneMod",
"Name": "Lynnesbian-LyneMod",
"Description": "A somewhat bonked mod, by a somewhat bonked Lynne...",
"Licence": "",
"GameVersion": "N/A",
"Version": "1.0.6",
"Dependencies": [
"bbepis-BepInExPack-5.4.1902",
"tristanmcpherson-R2API-4.0.11"
],
"OptionalDependencies": [],
"Incompatibilities": [],
"NetworkMode": "both",
"PackageType": "mod",
"InstallMode": "managed",
"Loaders": [
"bepinex"
],
"WebsiteURL": "https://git.bune.city/lynnesbian/lynemod",
"ExtraData": {},
"name": "LyneMod",
"version_number": "1.0.6",
"website_url": "https://git.bune.city/lynnesbian/lynemod",
"description": "A somewhat bonked mod, by a somewhat bonked Lynne...",
"dependencies": [
"bbepis-BepInExPack-5.4.1902",
"tristanmcpherson-R2API-4.0.11"
]
}