[Freeciv-Dev] Re: (PR#8754) effects patch
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=8754 >
In this code:
+ resistance = 100 - get_improvement_type(improvement)->sabotage;
+ if (get_city_bonus(pcity, EFT_SPY_RESISTANT)) {
+ resistance = 50;
+ }
+ if (resistance > 0) {
+/* if (myrand(100) < resistance) { */
if (myrand (2) == 1) {
I think there is a big bug. Setting resistance to 50 will make some
buildings more vulnerable to sabotage. I think the correct code should
be more like
vulnerability = get_improvement_type(improvement)->sabotage;
if (...) {
vulnerability /= 2;
}
if (myrand(100) >= vulnerability) {
/* Sabotage fails; diplomat caught. */
}
the current code is buggy IMO because if the diplomat is caught there
will never be an incident. This seems to be the opposite of what should
happen. But the effects patch shouldn't fix this.
jason
- [Freeciv-Dev] (PR#8754) effects patch, (continued)
- [Freeciv-Dev] (PR#8754) effects patch, Vasco Alexandre da Silva Costa, 2004/07/08
- [Freeciv-Dev] Re: (PR#8754) effects patch, Mike Kaufman, 2004/07/08
- [Freeciv-Dev] (PR#8754) effects patch, Vasco Alexandre da Silva Costa, 2004/07/08
- [Freeciv-Dev] Re: (PR#8754) effects patch, Mike Kaufman, 2004/07/08
- [Freeciv-Dev] Re: (PR#8754) effects patch, Jason Short, 2004/07/08
- [Freeciv-Dev] Re: (PR#8754) effects patch, Per Inge Mathisen, 2004/07/09
- [Freeciv-Dev] Re: (PR#8754) effects patch, Vasco Alexandre da Silva Costa, 2004/07/09
- [Freeciv-Dev] Re: (PR#8754) effects patch, Vasco Alexandre da Silva Costa, 2004/07/09
- [Freeciv-Dev] (PR#8754) effects patch, Vasco Alexandre da Silva Costa, 2004/07/12
- [Freeciv-Dev] (PR#8754) effects patch, Jason Short, 2004/07/13
- [Freeciv-Dev] Re: (PR#8754) effects patch,
Jason Dorje Short <=
- [Freeciv-Dev] Re: (PR#8754) effects patch, Jason Dorje Short, 2004/07/13
- [Freeciv-Dev] Re: (PR#8754) effects patch, Jason Dorje Short, 2004/07/13
- [Freeciv-Dev] Re: (PR#8754) effects patch, Jason Dorje Short, 2004/07/13
- [Freeciv-Dev] Re: (PR#8754) effects patch, Jason Dorje Short, 2004/07/13
- [Freeciv-Dev] Re: (PR#8754) effects patch, Jason Dorje Short, 2004/07/13
- [Freeciv-Dev] Re: (PR#8754) effects patch, Jason Dorje Short, 2004/07/13
- [Freeciv-Dev] Re: (PR#8754) effects patch, Jason Dorje Short, 2004/07/14
- [Freeciv-Dev] Re: (PR#8754) effects patch, Per Inge Mathisen, 2004/07/14
- [Freeciv-Dev] Re: (PR#8754) effects patch, Per Inge Mathisen, 2004/07/14
- [Freeciv-Dev] Re: (PR#8754) effects patch, Vasco Alexandre da Silva Costa, 2004/07/14
|
|