Skip to content

Commit

Permalink
update to work with new version
Browse files Browse the repository at this point in the history
  • Loading branch information
HeladoDeBrownie committed Jul 27, 2020
1 parent 021cb8f commit f121812
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 69 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bin/
obj/
Assembly-CSharp.dll
10 changes: 10 additions & 0 deletions Baja Blast.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>

<ItemGroup>
<Reference Include="Assembly-CSharp.dll" />
</ItemGroup>
</Project>
91 changes: 30 additions & 61 deletions LiquidBajaBlast.cs
Original file line number Diff line number Diff line change
@@ -1,64 +1,33 @@
using System;
using System.Collections.Generic;
using System.Text;
using XRL.Liquids;
using XRL.World;
using XRL.World.Parts;

namespace XRL.Liquids {
namespace XRL.Liquids
{
[IsLiquid]
public class LiquidBajaBlast : BaseLiquid {
private static BaseLiquid Convalessence = LiquidVolume.getLiquid ("convalessence");

public LiquidBajaBlast () : base (Convalessence.ID, Convalessence.FlameTemperature, Convalessence.VaporTemperature, Convalessence.Cooling) {}

public override void BeforeRender (LiquidVolume Liquid, Event eRender) {
Convalessence.BeforeRender (Liquid, eRender); }

public override void BeforeRenderSecondary (LiquidVolume Liquid, Event eRender) {
Convalessence.BeforeRenderSecondary (Liquid, eRender); }

public override bool Drank (LiquidVolume Liquid, int Volume, GameObject Target, StringBuilder Message, ref bool ExitInterface) {
return Convalessence.Drank (Liquid, Volume, Target, Message, ref ExitInterface); }

public override bool Froze (LiquidVolume Liquid) {
return Convalessence.Froze (Liquid); }

public override string GetAdjective (LiquidVolume Liquid) {
if (Liquid == null || Liquid.ComponentLiquids [Convalessence.ID] > 0) {
return "&Cbaja"; }
else {
return null; } }

public override string GetColor () {
return Convalessence.GetColor (); }

public override List<string> GetColors () {
return Convalessence.GetColors (); }

public override string GetName (LiquidVolume _) {
return "&Cbaja blast"; }

public override int GetNavigationWeight (LiquidVolume Liquid, GameObject GO, bool Smart, bool Slimewalking, ref bool Uncacheable) {
return Convalessence.GetNavigationWeight (Liquid, GO, Smart, Slimewalking, ref Uncacheable); }

public override string GetPreparedCookingIngredient () {
return Convalessence.GetPreparedCookingIngredient (); }

public override string GetSmearedName (LiquidVolume _) {
return "&Cbaja"; }

public override void ObjectInCell (LiquidVolume Liquid, GameObject GO) {
Convalessence.ObjectInCell (Liquid, GO); }

public override void RenderBackground (LiquidVolume Liquid, RenderEvent eRender) {
Convalessence.RenderBackground (Liquid, eRender); }

public override void RenderPrimary (LiquidVolume Liquid, RenderEvent eRender) {
Convalessence.RenderPrimary (Liquid, eRender); }

public override void RenderSecondary (LiquidVolume Liquid, RenderEvent eRender) {
Convalessence.RenderSecondary (Liquid, eRender); }

public override void RenderSmearPrimary (LiquidVolume Liquid, RenderEvent eRender) {
Convalessence.RenderSmearPrimary (Liquid, eRender); } } }
[System.Serializable]
public class LiquidBajaBlast : LiquidConvalessence
{
public const string NAME = "{{C|baja blast}}";
public const string ADJECTIVE = "{{C|baja}}";
public const string STAINED_NAME = "{{C|baja-blast}}";

public override string GetAdjective(LiquidVolume _)
{
return ADJECTIVE;
}

public override string GetName(LiquidVolume _)
{
return NAME;
}

public override string GetSmearedName(LiquidVolume _)
{
return ADJECTIVE;
}

public override string GetStainedName(LiquidVolume _)
{
return STAINED_NAME;
}
}
}
7 changes: 4 additions & 3 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
This purely cosmetic mod “adds” baja blast to the game. (It was already in the
game under the name of convalessence.)
Baja Blast is a cosmetic Caves of Qud mod that clarifies the truth of convalessence: That it is baja blast.

Official repository: https://github.com/HeladoDeBrownie/Caves-of-Qud-Baja-Blast
The latest release was tested with Caves of Qud version 2.0.201.5.

See [the spoilers](Spoilers.markdown) for more information.
10 changes: 6 additions & 4 deletions Spoilers.markdown
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
- Convalessence is now called `baja blast`.
- An object that has had baja blast poured on it is described as `baja`.
- A mixture in which baja blast is not the primary liquid is described as `baja`.
- There are no functional changes. Baja blast acts just like convalessence.
In total, this mod:

* renames convalessence to “baja blast”;
* changes the adjective for convalessence to “baja”;
* changes the smeared name for convalessence to “baja”;
* and changes the stained name for convalessence to “baja-blast” (as in “baja-blast-stained”; this probably doesn't matter since convalessence doesn't stain).
9 changes: 8 additions & 1 deletion workshop.json
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
{"workshopId":1798541850,"Title":"Baja Blast","Description":"This purely cosmetic mod “adds” baja blast to the game. (It was already in the game under the name of convalessence.)\n\nOfficial repository: https://github.com/HeladoDeBrownie/Caves-of-Qud-Baja-Blast","Tags":"cosmetic,scripting","Visibility":"2","ImagePath":"preview.png"}
{
"workshopId": 1798541850,
"Title": "Baja Blast",
"Description": "Baja Blast is a cosmetic Caves of Qud mod that clarifies the truth of convalessence: That it is baja blast.\n\nThe latest release was tested with Caves of Qud version 2.0.201.5.\n\nSee spoilers and more at: https://github.com/HeladoDeBrownie/Caves-of-Qud-Baja-Blast",
"Tags": "Cosmetic,Liquid,Script",
"Visibility": "2",
"ImagePath": "preview.png"
}

0 comments on commit f121812

Please sign in to comment.