Skip to content

Commit

Permalink
Correct how to determine the difference between a slime and a changeling
Browse files Browse the repository at this point in the history
Should fix issue #7, but as the comment says it needs to be updated.

Also, fix slime trail visuals while at it.
  • Loading branch information
Kawa-oneechan committed Nov 12, 2021
1 parent 9552f58 commit 1016161
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Board.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ public void Draw(bool force = false)
fore = t.SlimeColor;
back = fore.Darken();
}
if (t.BurnTimer > 0)
if ((t.Fluid == Fluids.Dry || t.Fluid == Fluids.KoolAid) && t.BurnTimer > 0)
{
fore = Color.FromArgb(Random.Next(20, 25) * 10, Random.Next(5, 25) * 10, 0); //flameColors[Randomizer.Next(flameColors.Length)];
back = Color.FromArgb(Random.Next(20, 25) * 10, Random.Next(5, 25) * 10, 0); //flameColors[Randomizer.Next(flameColors.Length)];
Expand Down
3 changes: 2 additions & 1 deletion Character.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2421,10 +2421,11 @@ public bool Likes(Character other)

public void Copy(Character source)
{
//TODO: This needs to be updated to work with Powers.
var copier = GetToken("copier");
if (copier == null)
throw new InvalidOperationException("Tried to copy, but is not a copier.");
var full = source.HasToken("fullCopy");
var full = copier.HasToken("full");
var toCopyForFull = new[]
{
"balls", "penis", "breasts", "ass", "hips", "waist", "vagina",
Expand Down
1 change: 1 addition & 0 deletions Cursor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ public override void Update()
options["fuck"] = i18n.Format(willRape ? "action_rapehim" : "action_fuckhim", boardChar.Character.HimHerIt(true));
}

//TODO: This needs to be updated to work with Powers.
if (canSee && !boardChar.Character.HasToken("beast") && player.Character.HasToken("copier") && player.Character.Path("copier/timeout") == null)
{
//if (player.Character.UpdateCopier())
Expand Down
2 changes: 1 addition & 1 deletion mix/testarena.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ TestArena = {
BioGender = Gender.Male,
IdentifyAs = Gender.Male,
Preference = 0,
Bodyplan = "felin",
Bodyplan = "slime",
BonusTrait = "charismatic",
ArenaWidth = 20,
ArenaHeight = 20
Expand Down

0 comments on commit 1016161

Please sign in to comment.