Changeset 613 for trunk/LocalPlayer/Diplomacy.pas
- Timestamp:
- Sep 14, 2024, 11:02:08 AM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Diplomacy.pas
r468 r613 29 29 Result := Tribe[P].TPhrase('PRICE_MAP'); 30 30 opTreaty: 31 { if Price -opTreaty<Treaty then31 { if Price - opTreaty < Treaty then 32 32 case Treaty of 33 trPeace: Result:=Phrases.Lookup('FRENDTREATY_PEACE');34 trFriendlyContact: Result:=Phrases.Lookup('FRENDTREATY_FRIENDLY');35 trAlliance: Result:=Phrases.Lookup('FRENDTREATY_ALLIANCE');33 trPeace: Result := Phrases.Lookup('FRENDTREATY_PEACE'); 34 trFriendlyContact: Result := Phrases.Lookup('FRENDTREATY_FRIENDLY'); 35 trAlliance: Result := Phrases.Lookup('FRENDTREATY_ALLIANCE'); 36 36 end 37 37 else } Result := Phrases.Lookup('TREATY', Price - opTreaty); … … 61 61 Result := Tribe[P].TPhrase('PRICE_ALLMODEL'); 62 62 { opCity: 63 Result :=Format(TPhrase('PRICE_CITY',P),[CityName(Price-opCity)]); }64 end 63 Result := Format(TPhrase('PRICE_CITY', P), [CityName(Price - opCity)]); } 64 end; 65 65 end; 66 66 … … 92 92 (Integer(OppOffer.Price[0] - opTreaty) > Treaty) then 93 93 // simple treaty offer 94 { if OppOffer.Price[0] -opTreaty=trCeaseFire then95 Result :=Tribe[pTarget].TPhrase('FRACCEPTCEASEFIRE')94 { if OppOffer.Price[0] - opTreaty = trCeaseFire then 95 Result := Tribe[pTarget].TPhrase('FRACCEPTCEASEFIRE') 96 96 else } Result := Tribe[pTarget].TPhrase('FRACCEPTTREATY') 97 97 else if OppOffer.nDeliver = 0 then … … 132 132 sDeliver := sAdd 133 133 else 134 sDeliver := Format(Phrases.Lookup('PRICE_CONCAT'), [sDeliver, sAdd]) 134 sDeliver := Format(Phrases.Lookup('PRICE_CONCAT'), [sDeliver, sAdd]); 135 135 end; 136 136 sCost := ''; … … 141 141 sCost := sAdd 142 142 else 143 sCost := Format(Phrases.Lookup('PRICE_CONCAT'), [sCost, sAdd]) 143 sCost := Format(Phrases.Lookup('PRICE_CONCAT'), [sCost, sAdd]); 144 144 end; 145 145 … … 167 167 end; 168 168 Result := Result + Phrases.Lookup('FRDONE'); 169 DoIntro := False 170 end 169 DoIntro := False; 170 end; 171 171 end 172 172 else if (Offer.nDeliver + Offer.nCost = 1) and … … 183 183 trAlliance: 184 184 Result := Result + Tribe[pTarget].TPhrase('FRALLIANCE'); 185 end 185 end; 186 186 end 187 187 else if Offer.nDeliver = 0 then // demand … … 196 196 Result := Result + 197 197 Format(Tribe[pTarget].TPhrase('FRDEMAND_STRONG'), [sCost]); 198 DoIntro := False 199 end 198 DoIntro := False; 199 end; 200 200 end 201 201 else if Offer.nCost = 0 then // present … … 216 216 Result := Tribe[pSender].TPhrase('FRSTART_NOTREATY') + ' ' + Result 217 217 else 218 Result := Tribe[pSender].TPhrase('FRSTART_PEACE') + ' ' + Result 218 Result := Tribe[pSender].TPhrase('FRSTART_PEACE') + ' ' + Result; 219 219 end; 220 220
Note:
See TracChangeset
for help on using the changeset viewer.