Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2004:
[Freeciv-Dev] (PR#9590) Patch: make angry citizens appear (by adjusting
Home

[Freeciv-Dev] (PR#9590) Patch: make angry citizens appear (by adjusting

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: per@xxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#9590) Patch: make angry citizens appear (by adjusting empire_size_inc)
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 18 Oct 2004 15:16:04 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=9590 >

You have:

-  ginfo.cityfactor = game.cityfactor;

but for this to work with optional capabilities, you have to send the
cityfactor, empire_size_mod, and empire_size_inc to old clients.  That
means putting values into the packet and letting the net code decide
what to send.

I think the new system is a simplification of the old system, so it's
possible to determine values that will fit.  For instance:

  cityfactor = 14
  empire_size_mod = unhappy_size - cityfactor
  emprie_size_inc = unhappy_size

but I'm also not sure that reducing the old 2-dimensional system to a
1-dimensional system is a good idea.  Why shouldn't the first unhappy
citizen come at 3 cities while each successive one comes every 10 cities?

jason



[Prev in Thread] Current Thread [Next in Thread]