<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39730 >

> [pepeto - Tue Oct 09 17:34:27 2007]:
>
> Something else happens. You can use the packet unit_bribe_inq() and
> city_bribe_inq() without diplomat. So, then with a hacked client, you
> can know all city and unit costs of the game. Then you are able to know
> where are the capitals, and how many gold have a player.
>
> unit_bribe_inq() and city_bribe_inq() must contain a diplomat id, and
> this diplomat must be to adjacent tile.
>
>

Oh joy, I guess that will break network compatibility then, so that
means a serverside fix for 2.0 ..

So to fix this in 2.1 you can just add a UNIT diplomat_id to the *_INQ
packets. But  what do you think of merging Diplomat_Action packet with
the bribe_inq packet.


PACKET_UNIT_BRIBE_INQ=67;cs,handle-per-conn,dsend
  UNIT unit_id;
end

PACKET_CITY_INCITE_INQ=33;cs,handle-per-conn,dsend
  CITY city_id;
end

PACKET_UNIT_DIPLOMAT_ACTION=70;cs,dsend
  UNIT diplomat_id;
  DIPLOMAT_ACTION action_type;
  UNIT target_id;   # city_id or unit_id target_id;
  SINT16 value;
end

-- 
/emj



_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to