[Bug, Singleplayer]Lizard Girl Heat

[Bug, Singleplayer]Lizard Girl Heat

Postby Ettanin » Fri Sep 19, 2014 8:07 am

There is a bug with the heat functionality in which the heat does not impregnate you with lizard girl seed, but instead with the seed of the last enemy you encountered and/or the last listing in the random critters list.
This bug stems from the fact that it is not guaranteed that "lizard girl" will be in the list all the time.

I propose the following workaround, based on the fact that the "impregnate with" function uses a text parameter, disadvantage is that this might actually cause more work when implementing more impregnation/pregnancy methods:

Edit the function "lizgirl impreg" to:
Code: Select all
to say liz impreg:
   if lizgirlimpreg is 1:
      if cocks of player is 0:
         say "With a gasp you feel something you thought long lost to you, a male orgasm, but it feels odd, as it should since you have no member, but it feels like you are still ejaculating. A growing fullness in your feminine depths reveals the true purpose of the Lizard Girl's earlier actions, she has reworked your reproductive system quite amazingly. As you look down in wonder, the glow of release still holding you immobile, you notice a small trail of cum leaking from your pussy lips.[lizgirlimpregchance]";
      otherwise:
         say "With a gasp you feel a male orgasm, but it feels odd, you cannot see any of your seed leaking out of your member, but it feels like you are still ejaculating. A growing fullness in your feminine depths reveals the true purpose of the Lizard Girl's earlier actions, she has reworked your reproductive system quite amazingly. As you look down in wonder, the glow of release still holding you immobile, you notice a small trail of cum leaking from your pussy lips.[lizgirlimpregchance]";


Add the following functions:
Code: Select all
to say lizgirlimpregchance: [Fix because going through the rows is unreliable]
   if ovipreglevel is 3:
      say "[lizgirlovichance]";
   otherwise if ( cunts of player > 0 or ( "MPreg" is listed in feats of player and ( level of Velos is not 1 or hp of Velos < 3 ) ) ) and "Sterile" is not listed in feats of player and larvaegg is not 2:
      let target be 10;
      if insectlarva is true:
         increase target by 2 + larvaegg;
      if level of Velos > 0 and cunts of player is 0:
         increase target by ( 3 - level of Velos );
      if "Fertile" is listed in feats of player, decrease target by 3;
      if inheat is true, decrease target by 3;
      if inheat is true and heatlevel is 3, decrease target by 1;
      if playercanub is true, increase target by 1;
      choose row monster from the table of random critters;
      if a random chance of 2 in target succeeds:
         now ovipregnant is false;
         impregnate with "lizard girl";
         now the libido of the player is (the libido of the player) / 2;
   
to say lizgirlovichance: [Fix because going through the rows is unreliable]
   if ( cunts of player > 0 or ( "MPreg" is listed in feats of player and ( level of Velos is not 1 or hp of Velos < 3 ) ) ) and "Sterile" is not listed in feats of player and larvaegg is not 2:
      let target be 10;
      if insectlarva is true:
         increase target by 2 + larvaegg;
      if level of Velos > 0 and cunts of player is 0:
         increase target by ( 3 - level of Velos );
      if "Fertile" is listed in feats of player, decrease target by 3;
      if inheat is true, decrease target by 3;
      if inheat is true and heatlevel is 3, decrease target by 1;
      if playercanub is true, increase target by 1;
      choose row monster from the table of random critters;
      if a random chance of 2 in target succeeds:
         now ovipregnant is true;
         impregnate with "lizard girl";
         now the libido of the player is (the libido of the player) / 2;
Ettanin
 
Posts: 1
Joined: Fri Sep 19, 2014 7:57 am

Re: [Bug, Singleplayer]Lizard Girl Heat

Postby TigerStripes » Fri Sep 19, 2014 12:42 pm

Thanks for catching this, but there's a much easier fix to resolve it. The issue was that the row found during the search was not set as 'monster'. I'll correct this and also add a quick check to make sure the lizard girl creature data was found at all before proceeding. This way, the standard impregchance subroutine can still be used.
User avatar
TigerStripes
 
Posts: 593
Joined: Mon Dec 09, 2013 4:39 pm


Return to Dev Chat

Who is online

Users browsing this forum: No registered users and 2 guests

cron