You are not logged in.
Pages: 1
Good point. So this poll will make philosophy useless and we completely remove darwin.
Offline
The poll states we should revert back to the original default ruleset. So Darwin is a great wonder (only one person can build it) and philosophy only gives tech to the first player who researches it. Given that the multiplayer ruleset intended to remove the benefits that only one player can get, then maybe we should come up with another option for these or remove the benefit entirely. I don't oppose removing the effects but the poll wording should be changed to reflect that fact.
Offline
Is this what we voted for? Someone needs to test this...
diff --git a/lt30/data/lt30/script.lua b/lt30/data/lt30/script.lua
index a90b1f1..d38df35 100644
--- a/lt30/data/lt30/script.lua
+++ b/lt30/data/lt30/script.lua
@@ -16,33 +16,3 @@ function city_destroyed_callback(city, loser, destroyer)
end
signal.connect("city_destroyed", "city_destroyed_callback")
-
-
-tevo_tech = find.tech_type("Theory of Evolution")
-darw_btype = find.building_type("Darwin's Voyage")
-darw_id = darw_btype.id
-
-function building_built_handler(btype, city)
- local player, id = city.owner, btype.id
- if id == darw_id then
- if give_technology(player, tevo_tech, "researched") then
- give_technology(player, nil, "researched")
- give_technology(player, nil, "researched")
- end
- end
-end
-
-signal.connect("building_built", "building_built_handler")
-
-
-phil_tech = find.tech_type("Philosophy")
-phil_id = phil_tech.id
-
-function tech_researched_handler(tech, player, how)
- local id = tech.id
- if id == phil_id and how == "researched" then
- give_technology(player, nil, "researched")
- end
-end
-
-signal.connect("tech_researched", "tech_researched_handler")
diff --git a/lt30/data/lt30/techs.ruleset b/lt30/data/lt30/techs.ruleset
index 20cce2a..c98e05e 100644
--- a/lt30/data/lt30/techs.ruleset
+++ b/lt30/data/lt30/techs.ruleset
@@ -541,11 +541,11 @@ helptext = _("Gives sea units one extra move.")
name = _("Philosophy")
req1 = "Mysticism"
req2 = "Literacy"
-flags = ""
+flags = "Bonus_Tech"
+bonus_message = _("Great philosophers from all the world join \
+your civilization: you get an immediate advance.")
graphic = "a.philosophy"
graphic_alt = "-"
-helptext = _("When you research this technology, you\
- also get one other immediate technology advance.")
[advance_physics]
name = _("Physics")
Offline
I guess also this:
diff --git a/lt30/data/lt30/buildings.ruleset b/lt30/data/lt30/buildings.ruleset
index 2b080a9..7d5ed4c 100644
--- a/lt30/data/lt30/buildings.ruleset
+++ b/lt30/data/lt30/buildings.ruleset
@@ -1095,7 +1095,7 @@ This stunning technological achievement makes two content citizens\
[building_darwins_voyage]
name = _("Darwin's Voyage")
-genus = "SmallWonder"
+genus = "GreatWonder"
reqs =
{ "type", "name", "range"
"Tech", "Railroad", "Player"
@@ -1103,14 +1103,15 @@ reqs =
graphic = "b.darwins_voyage"
graphic_alt = "-"
obsolete_by = "None"
-build_cost = 400
+build_cost = 300
upkeep = 0
sabotage = 0
sound = "w_darwins_voyage"
sound_alt = "w_generic"
helptext = _("\
-Gives two immediate technology advances the first time it is\
- built by each player.\
+Charles Darwin's voyage sparked the discovery of the evolution\
+ of the species, which inspired greater confidence in science.\
+ Gives two immediate technology advances.\
")
[building_eiffel_tower]
Offline
I have tested that the above code runs without error at game start.
I have not played a game to test it, BUT this is the original default code and all of our previous games did use these settings.
BTW you seem to have missed the code at the bottom of techs.ruleset It probably can't do anything without the lua script but best to remove it.
; A placeholder tech used to ensure that when
; a game is reloaded, a player can`t rebuild
; the "Darwin's Voyage" small wonder and get
; two free advances again.
[advance_theory_of_evolution]
name = _("Theory of Evolution")
req1 = "None"
req2 = "None"
root_req = "Theory of Evolution"
flags = ""
graphic = "b.darwins_voyage"
graphic_alt = "-"
helptext = _("This technology is only acquired the first\
time you build Darwin's Voyage.")
Offline
Commited. I'll restart the server after TC later today, in case of trouble.
Here is the exact diff for future reference:
diff --git a/LT30/data/lt30/buildings.ruleset b/LT30/data/lt30/buildings.ruleset
index cf52ba3..45372d5 100644
--- a/LT30/data/lt30/buildings.ruleset
+++ b/LT30/data/lt30/buildings.ruleset
@@ -1117,7 +1117,7 @@ This stunning technological achievement makes two content citizens\
[building_darwins_voyage]
name = _("Darwin's Voyage")
-genus = "SmallWonder"
+genus = "GreatWonder"
reqs =
{ "type", "name", "range"
"Tech", "Railroad", "Player"
@@ -1125,14 +1125,15 @@ reqs =
graphic = "b.darwins_voyage"
graphic_alt = "-"
obsolete_by = "None"
-build_cost = 400
+build_cost = 300
upkeep = 0
sabotage = 0
sound = "w_darwins_voyage"
sound_alt = "w_generic"
helptext = _("\
-Gives two immediate technology advances the first time it is\
- built by each player.\
+Charles Darwin's voyage sparked the discovery of the evolution\
+ of the species, which inspired greater confidence in science.\
+ Gives two immediate technology advances.\
")
[building_eiffel_tower]
diff --git a/LT30/data/lt30/script.lua b/LT30/data/lt30/script.lua
index a90b1f1..d38df35 100644
--- a/LT30/data/lt30/script.lua
+++ b/LT30/data/lt30/script.lua
@@ -16,33 +16,3 @@ function city_destroyed_callback(city, loser, destroyer)
end
signal.connect("city_destroyed", "city_destroyed_callback")
-
-
-tevo_tech = find.tech_type("Theory of Evolution")
-darw_btype = find.building_type("Darwin's Voyage")
-darw_id = darw_btype.id
-
-function building_built_handler(btype, city)
- local player, id = city.owner, btype.id
- if id == darw_id then
- if give_technology(player, tevo_tech, "researched") then
- give_technology(player, nil, "researched")
- give_technology(player, nil, "researched")
- end
- end
-end
-
-signal.connect("building_built", "building_built_handler")
-
-
-phil_tech = find.tech_type("Philosophy")
-phil_id = phil_tech.id
-
-function tech_researched_handler(tech, player, how)
- local id = tech.id
- if id == phil_id and how == "researched" then
- give_technology(player, nil, "researched")
- end
-end
-
-signal.connect("tech_researched", "tech_researched_handler")
diff --git a/LT30/data/lt30/techs.ruleset b/LT30/data/lt30/techs.ruleset
index 20cce2a..b9d2386 100644
--- a/LT30/data/lt30/techs.ruleset
+++ b/LT30/data/lt30/techs.ruleset
@@ -772,18 +772,3 @@ req2 = "None"
flags = ""
graphic = "a.writing"
graphic_alt = "-"
-
-; A placeholder tech used to ensure that when
-; a game is reloaded, a player can`t rebuild
-; the "Darwin's Voyage" small wonder and get
-; two free advances again.
-[advance_theory_of_evolution]
-name = _("Theory of Evolution")
-req1 = "None"
-req2 = "None"
-root_req = "Theory of Evolution"
-flags = ""
-graphic = "b.darwins_voyage"
-graphic_alt = "-"
-helptext = _("This technology is only acquired the first\
- time you build Darwin's Voyage.")
Offline
Pages: 1