<%@ Page Language="vb" Debug="true" %> <% @Import NameSpace="System.Data" %> <% @Import NameSpace="System.Data.SQLClient" %> <% @Import NameSpace="System.Diagnostics.Debug" %> <% @Import Namespace="System.Web.Mail" %> <% @Import Namespace="System.Text.RegularExpressions" %> <% @Import NameSpace="System.Data.OleDb" %> <%@ Import namespace="System.IO" %> <%@ Import namespace="System.Net" %>

<% sqlConn.Open() sqlComm = New SqlCommand("SELECT C_Tesoreria, C_Fattorie, C_TagliaLegna, C_Min_Ferro, C_Min_Pietra, C_Min_Zolfo, C_Min_Oro, P_Cittadini, In_Costr_Eser, Cosa_Costr_Eser, Ris_Legna, Ris_Pietra, Ris_Ferro, Ris_Zolfo, Ris_Oro FROM Pianeti WHERE Dimensione = '" + Dimensione + "' AND Reame = '" + Reame + "' AND Paese = '" + Paese + "' ", sqlConn) r = sqlComm.ExecuteReader() While r.Read() Timer_Costruct = r("In_Costr_Eser") Ris_Legna = r("Ris_Legna") Ris_Ferro = r("Ris_Ferro") Ris_Zolfo = r("Ris_Zolfo") Ris_Pietra = r("Ris_Pietra") Ris_Oro = r("Ris_Oro") Cosa_Costr = r("Cosa_Costr_Eser") Var_Cittadini_Tassabili = r("P_Cittadini") %>
Gestione Cittadini


Unitā Quantitā Disponibile Produzione/Ora
Fattorie [<%=r("c_Fattorie")%>]  
Taglialegna [<%=r("C_Taglialegna")%>]
Miniere di Pietra [<%=r("C_Min_Pietra")%>]
Miniere di Ferro [<%=r("C_Min_Ferro")%>]
Miniere di Zolfo [<%=r("C_Min_Zolfo")%>]
Miniere D'Oro [<%=r("C_Min_Oro")%>]
 
Cibo

<% If (Var_P_Fattorie * 5) = 0 Then Msg_Cibo.Text= "Niente Cibo" End If If (Var_P_Fattorie * 5) > 0 Then Msg_Cibo.Text= "Piccole Razioni" End If If (Var_P_Fattorie * 5) > (Cint(Var_Cittadini_Tassabili)) Then Msg_Cibo.Text= "Medie Razioni" End If If (Var_P_Fattorie * 5) > (Cint(Var_Cittadini_Tassabili) * 2) Then Msg_Cibo.Text = "Grandi Razioni" End If %>
 
<% If r("C_Tesoreria") > 0 Then %>
 
Tasse

Piccola Donazione Niente Tasse Tasse Molto Basse Tasse Basse Tasse Normali Tasse Alte Tasse Molto Alte
 
<% End If %>
 
Morale

  <% Dim Check_Morale If (Var_P_Fattorie * 5) = 0 Then Check_Morale = -50 End If If (Var_P_Fattorie * 5) > 0 Then Check_Morale = -20 End If If (Var_P_Fattorie * 5) > (Cint(Var_Cittadini_Tassabili)) Then Check_Morale = +20 End If If (Var_P_Fattorie * 5) > (Cint(Var_Cittadini_Tassabili) * 2) Then Check_Morale = +40 End If If Var_Tasse = 1 Then Check_Morale = Check_Morale +20 End If If Var_Tasse = 2 Then Check_Morale = Check_Morale End If If Var_Tasse = 3 Then Check_Morale = Check_Morale -20 End If If Var_Tasse = 4 Then Check_Morale = Check_Morale -40 End If If Var_Tasse = 5 Then Check_Morale = Check_Morale -50 End If If Var_Tasse = 6 Then Check_Morale = Check_Morale -60 End If If Var_Tasse = 7 Then Check_Morale = Check_Morale -80 End If If Var_C_Taverna = 1 Then Check_Morale = Check_Morale +3 End If If Var_C_Taverna = 2 Then Check_Morale = Check_Morale +5 End If If Var_C_Taverna = 3 Then Check_Morale = Check_Morale +8 End If If Var_C_Taverna = 4 Then Check_Morale = Check_Morale +10 End If If Var_C_Taverna = 5 Then Check_Morale = Check_Morale +13 End If If Var_C_Taverna = 6 Then Check_Morale = Check_Morale +15 End If If Var_C_Taverna = 7 Then Check_Morale = Check_Morale +20 End If If Var_C_Taverna = 8 Then Check_Morale = Check_Morale +25 End If If Var_Livello_Generale > 0 Then Check_Morale = Check_Morale + Var_Livello_Generale End If %>

<% If Check_Morale > 0 %> <% End If %> <% If Check_Morale = 0 %> <% End If %> <% If Check_Morale < 0 %> <% End If %>

 


 
<% End While r.Close() sqlConn.Close() %>