Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: sentanced to death over breaking and entering  (Read 2625 times)

jaked122

  • Bay Watcher
  • [PREFSTRING:Lurker tendancies]
    • View Profile
sentanced to death over breaking and entering
« on: May 25, 2009, 08:31:23 am »

Wow, how did this happen, one account of breaking and entering and I was sentenced to death.

Capital Fish

  • Bay Watcher
  • "Hi Mister Dog!"
    • View Profile
Re: sentanced to death over breaking and entering
« Reply #1 on: May 25, 2009, 09:15:27 am »

The "Death Penelty" issue was at C+, maybe?
Logged
Find the errors in the above post and win a prize!

mainiac

  • Bay Watcher
  • Na vazeal kwah-kai
    • View Profile
Re: sentanced to death over breaking and entering
« Reply #2 on: May 25, 2009, 10:52:25 am »

Still... even in C+ that does seem a bit extreme.  I could see a C+ court sentencing someone to death over theft on a really conservative day, but not over B+E only.

But looking at the code, I don't think it should be possible to be sentenced to death for breaking and entering.  If I'm reading this right, the only crimes which can result in the death penalty are murder, treason and flagburning at C+ laws.  I believe these are the relevant sections:

Code: [Select]
   if(!lenient&&((g.lawflag[LAWFLAG_MURDER])||(g.lawflag[LAWFLAG_TREASON])||
      ((g.lawflag[LAWFLAG_BURNFLAG])&&law[LAW_FLAGBURNING]==-2)||
      law[LAW_DEATHPENALTY]==-2))
   {
      if(law[LAW_DEATHPENALTY]==-2)g.deathpenalty=1;
      if(law[LAW_DEATHPENALTY]==-1)g.deathpenalty=LCSrandom(3);
      if(law[LAW_DEATHPENALTY]==0)g.deathpenalty=LCSrandom(2);
      if(law[LAW_DEATHPENALTY]==1)g.deathpenalty=!LCSrandom(5);
      if(law[LAW_DEATHPENALTY]==2)g.deathpenalty=0;
   }

...which I believe checks for a capital offense and then gives a chance of 100% (C+), 33% (C), 50% (M), 20% (L) or 0% (L+) chance of setting deathpenalty to true (1 is true).


Code: [Select]
   
if(g.deathpenalty)
   {
      g.sentence=3;
      set_color(COLOR_RED,COLOR_RED,1);
      move(7,1);
      addstr(g.propername);
      addstr(", you are sentenced to DEATH!");
      refresh();
      getch();
      set_color(COLOR_WHITE,COLOR_BLACK,0);
      move(9,1);
      addstr("The execution is scheduled to occur three months from now.");
      refresh();
      getch();
   }

and this will sentence you to death if g.deathpenalty was set to true ("1") in the previous section.

So I think it's a bug that you got sentenced to death.  But I might be misreading this or it could be outdated (got it off the LCS wiki src download.)  And I'm not exactly sure what "=!LCSrandom(5)" means in the L case of the first section.  I think it should be "=LCSrandom(5)" which would set the preceding bit to a liberally random number between 1 and 5 (LCSrandom returns a random number up to the input).  So maybe that could create this bug if deathpenalty law was L?
Logged
Ancient Babylonian god of RAEG
--------------
[CAN_INTERNET]
[PREFSTRING:google]
"Don't tell me what you value. Show me your budget and I will tell you what you value"
« Last Edit: February 10, 1988, 03:27:23 pm by UR MOM »
mainiac is always a little sarcastic, at least.

Ampersand

  • Bay Watcher
    • View Profile
Re: sentanced to death over breaking and entering
« Reply #3 on: May 25, 2009, 10:56:15 am »

Wait, why is the law more apt to kill you at moderate level? Or did you just put C and M backwards?
Logged
!!&!!

mainiac

  • Bay Watcher
  • Na vazeal kwah-kai
    • View Profile
Re: sentanced to death over breaking and entering
« Reply #4 on: May 25, 2009, 10:58:14 am »

Wait, why is the law more apt to kill you at moderate level? Or did you just put C and M backwards?

I was feeling confusion about that my own self.
Logged
Ancient Babylonian god of RAEG
--------------
[CAN_INTERNET]
[PREFSTRING:google]
"Don't tell me what you value. Show me your budget and I will tell you what you value"
« Last Edit: February 10, 1988, 03:27:23 pm by UR MOM »
mainiac is always a little sarcastic, at least.

LiteralKa

  • Bay Watcher
  • LCS Developer
    • View Profile
    • My Website!
Re: sentanced to death over breaking and entering
« Reply #5 on: May 25, 2009, 11:56:31 am »

Wait, why is the law more apt to kill you at moderate level? Or did you just put C and M backwards?
I'll check that out.
Logged
LCS developer, insomniac, writer.

Servant Corps

  • Bay Watcher
    • View Profile
Re: sentanced to death over breaking and entering
« Reply #6 on: May 25, 2009, 12:23:00 pm »

Wait, why is the law more apt to kill you at moderate level? Or did you just put C and M backwards?

It's not. What the code is doing is picking a random number, say, 1 to 3. If the code picks a 1, then you get executed, if not, you don't.

Looking at the code, it is possible to be sentenced to death for breaking and entering. There are three ways to get the death penalty

*The judge is not lienant and you are accused of murder
*The judge is not lienant and you are accused of Treason
*The judge is not lineant and you are accused of burning the flag and flag burning is C+
*The judge is not linenat and the current Death Penalty Law is C+.

If the judge is not linenat and the current death penalty law is C+, then it automatically decides to go to this code. Since g.deathpenalty is set to 1, this means you have a 100% chance of being executed in a C+ Death Penalty law.
Logged
I have left Bay12Games to pursue a life of non-Bay12Games. If you need to talk to me, please email at me at igorhorst at gmail dot com.

LiteralKa

  • Bay Watcher
  • LCS Developer
    • View Profile
    • My Website!
Re: sentanced to death over breaking and entering
« Reply #7 on: May 25, 2009, 12:24:01 pm »

Wait, why is the law more apt to kill you at moderate level? Or did you just put C and M backwards?

It's not. What the code is doing is picking a random number, say, 1 to 3. If the code picks a 1, then you get executed, if not, you don't.

Looking at the code, it is possible to be sentenced to death for breaking and entering. There are three ways to get the death penalty

*The judge is not lienant and you are accused of murder
*The judge is not lienant and you are accused of Treason
*The judge is not lineant and you are accused of burning the flag and flag burning is C+
*The judge is not linenat and the current Death Penalty Law is C+.

If the judge is not linenat and the current death penalty law is C+, then it automatically decides to go to this code. Since g.deathpenalty is set to 1, this means you have a 100% chance of being executed in a C+ Death Penalty law.
Kinda... harsh, I'll petition Jonathan to make this less likely.
Logged
LCS developer, insomniac, writer.

Servant Corps

  • Bay Watcher
    • View Profile
Re: sentanced to death over breaking and entering
« Reply #8 on: May 25, 2009, 12:38:35 pm »

Well, if you get some sleeper judges, then you can't get the death penalty. Sleeper judges are always "lienant". You'll "only" get life imprisonment though.
Logged
I have left Bay12Games to pursue a life of non-Bay12Games. If you need to talk to me, please email at me at igorhorst at gmail dot com.

Exxos

  • Escaped Lunatic
    • View Profile
Re: sentanced to death over breaking and entering
« Reply #9 on: May 25, 2009, 01:01:53 pm »

I don't think this should be changed... just for the game sake, C+ law is there to make death penalty as widely used as it's possible. Death squads patrolling the streets killing for making a graffiti? (no option to give up) It is quite consistent with the whole idea of C+ country that tries to get rid of anyone who is... not fitting.
Logged

Kanil

  • Bay Watcher
  • [T_WORD:PILLAR:kanil]
    • View Profile
Re: sentanced to death over breaking and entering
« Reply #10 on: May 25, 2009, 01:15:47 pm »

It's not. What the code is doing is picking a random number, say, 1 to 3. If the code picks a 1, then you get executed, if not, you don't.

From what mainiac posted, it appears moderate picks 1-2, and C picks 1-3.

Personally, I like excessive death penalty.
Logged
Yah, it sounds like minecraft with content, you have obviously missed the point, people dont like content, they like different coloured blocks.
Seems to work fine with my copy. As soon as I loaded the human caravan came by and the world burst into fire.

EuchreJack

  • Bay Watcher
  • Lord of Norderland - Lv 20 SKOOKUM ROC
    • View Profile
Re: sentanced to death over breaking and entering
« Reply #11 on: May 25, 2009, 01:37:36 pm »

I also like the C+ auto-death penalty, as it does two things:

1) Should you be in this spot, it creates a "Do-or-Die" situation in regards to changing the country.  Well, for the members it's "Do-and-Die", but it really pushes the player to hit that courthouse.

2) Experienced players know they can't let the death penalty laws get to C+, so they make sure to keep the Court House under their control, either through sleepers or regular attacks.  Considering how many other issues are tied to the Court House, and the fact that you're gonna want two sleepers there anyways (Judge and Lawyer), it actually encourages good gameplay.

Servant Corps

  • Bay Watcher
    • View Profile
Re: sentanced to death over breaking and entering
« Reply #12 on: May 25, 2009, 01:38:35 pm »

Hm. Then it must be a bug maniac found. It seems that it should be...
*C picks 1-3
*M picks 1-4
*L picks 1-5.
Logged
I have left Bay12Games to pursue a life of non-Bay12Games. If you need to talk to me, please email at me at igorhorst at gmail dot com.

Yanlin

  • Bay Watcher
  • Legendary comedian.
    • View Profile
Re: sentanced to death over breaking and entering
« Reply #13 on: May 25, 2009, 01:41:37 pm »

No. M should be 1-7 and L should be 1-15.
Logged
WE NEED A SLOGAN!

Rafal99

  • Bay Watcher
    • View Profile
Re: sentanced to death over breaking and entering
« Reply #14 on: May 25, 2009, 01:53:03 pm »


...which I believe checks for a capital offense and then gives a chance of 100% (C+), 33% (C), 50% (M), 20% (L) or 0% (L+) chance of setting deathpenalty to true (1 is true).


It is 100%, 66%, 50%, 20%, 0% actually.
Logged
The spinning Tantrum Spiral strikes The Fortress in the meeting hall!
It explodes in gore!
The Fortress has been struck down.
Pages: [1] 2