Commit Graph

68 Commits (b3ed27adab732292ad8f6c979bb49e2789896cf7)

Author SHA1 Message Date
rubidium 37748a3152 (svn r10483) -Codechange: add support for callbacks to manipulate the building chance of farm fields and chopping chance for lumber mills. 17 years ago
maedhros 44db937929 (svn r10481) -Codechange: Show a news message with the new industry when primary industry prospecting succeeds. 17 years ago
rubidium 95ea8fd2f1 (svn r10477) -Codechange: add some callbacks to customise the acceptance of industries. 17 years ago
rubidium cd702d049e (svn r10460) -Codechange: add some more variables needed for newindustries regarding to the creation of the industries. 17 years ago
rubidium b0a8409200 (svn r10459) -Codechange: add helper functions to determine whether an industry is a primary industry and how much it costs to build such an industry. 17 years ago
rubidium b8f658db94 (svn r10451) -Add: support for "prospecting" raw industries, i.e. you pay an amount of money and then it might (with a given chance) build a raw industry somewhere on the map. 17 years ago
rubidium 4c356457e6 (svn r10442) -Codechange: implement the industry production callback. 17 years ago
rubidium c0ba3dba9d (svn r10439) -Codechange: initial steps for customized industry productions. 17 years ago
belugas 2bedfcd3bf (svn r10425) -Fix (r10418): do not compare bitmasks with HASBIT. Strike two. Forgotten code :) 17 years ago
rubidium 2f14d622ae (svn r10419) -Fix (r10418): do not compare bitmasks with HASBIT. Thanks to Maedhros for spotting this. 17 years ago
rubidium 9534c9795b (svn r10418) -Codechange: implement/resurrect the industry production flags. 17 years ago
rubidium 0debbfd73d (svn r10406) -Fix [FS#968]: only industries in the temperate climate should be affected by the "do not increase production" flag. 17 years ago
rubidium ab52e3da52 (svn r10348) -Fix (r10347): compile errors; do not think it compiles fine when you run make on the wrong working copy. 17 years ago
rubidium 89a4ee256e (svn r10347) -Fix [FS#948]: industries with a very low production could never recover when using smooth economy.
-Fix: in smooth economy producing industries could not close, whereas they could close in non-smooth economy.
-Fix: in smooth economy the "do not increase production" flag of industries was ignored.
17 years ago
truelight 65455f5e07 (svn r10340) -Fix: make sure no industry production can ever hit < 32 with smooth_economy 17 years ago
rubidium 5ee292d806 (svn r10299) -Codechange [FS#931]: industry foundations should be drawn as all other foundations, i.e. with DrawFoundation, instead of writing the same functionality itself. 17 years ago
truelight b1f60c582f (svn r10290) -Fix: with smooth_economy, when industry production hit 32, it stayed there for ever. Give it some chance to get out of that uber-lowness (although it is a very slim chance, at least it has one) 17 years ago
belugas d4632dee67 (svn r10232) -Fix(r1): _numof_industry_table never was composed of 12 entries. Only 11.
It never hurt before, but it would have...
17 years ago
belugas c492167f74 (svn r10226) -Codechange: Add support for newindustry tiles drawing.
Heavily based on Maedhros's newhouses implementation
17 years ago
rubidium 773a7c9cb6 (svn r10205) -Codechange: refactor returning of cost, so it can be more easily modified. 17 years ago
rubidium 3ccc83e640 (svn r10197) -Codechange: replace int32 with CommandCost where appropriate. 17 years ago
belugas 0dc6ed160c (svn r10163) -Fix(r8128): Industries had lost their random recoloring. A test was removed and is now reintroduced in another way. 17 years ago
rubidium d88f4bc78c (svn r10140) -Fix [FS#867]: an industry could overbuild a bridge. 17 years ago
belugas cb65217069 (svn r10099) -Fix(r9867, FS860): Use the specs of the to-be-created industry instead of the scanned industry
Spotted by Oxygene
17 years ago
belugas a8e4af3c52 (svn r10078) -Codechange: Centralize all industry counts data and access 17 years ago
belugas 256ee60545 (svn r10063) -Codechange: Change VARDEF for extern
-CodeChange: Add the count of industries, basic support for variable 67, var action02 forindustries
17 years ago
rubidium d255041365 (svn r10058) -Codechange: give some industry variable sensible names (like not telling "last_mo_production" when it is the production of the current month). 17 years ago
rubidium b0421273f2 (svn r10054) -Codechange: make the industries cost modifier look more like the original one, so it's much easier to support industries that use this original format. 17 years ago
rubidium eab80301fc (svn r9993) -Fix (r9992): smallish typos resulting in compile time errors. 17 years ago
belugas 06bc9866aa (svn r9992) -Codechange: Remove some hardcoded references to Industry IDs.
A few more to go
17 years ago
belugas c3f8c58157 (svn r9984) -Codechange: Remove an obsolete structure and a now meaningless enum, in favor of the "real thing" 17 years ago
belugas 0a3ebbbc22 (svn r9983) -Codechange: Use the "enabled" property of the industry spec. 17 years ago
belugas e4785e0376 (svn r9976) -Codechange: Declare a writable array of specs for industry and industry tiles.
It will be initialized by the original data upon game start.
Rename some enums to be more consistent too
17 years ago
belugas e7bbb79ff5 (svn r9969) -Codechange: Cleanup of industries (Step-14). Remove hardcoded-run-time tile acceptance and put in corresponding tile 17 years ago
rubidium 821e58ac95 (svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple road types on a single tile. 17 years ago
peter1138 72972a1712 (svn r9887) -Fix (r9867): Industry production statistics messed up... 17 years ago
belugas 2e65d6e4e7 (svn r9886) -Codechange: Cleanup of industries (Step-13). Include the sounds table into the industry's spec. 17 years ago
belugas 662bee5b12 (svn r9870) -Codechange: Silence two compiler warnings and give proper type to the "type" member of industry struct 17 years ago
belugas c4b90f3137 (svn r9867) -Codechange: Remove data duplication. The exact same values can be found in the industry spec, so take it from there instead. 17 years ago
belugas 7de20df379 (svn r9762) -Feature: Two new difficulty settings : Very low number of towns and very low number of industries
Based on FS#289, by pitt2
17 years ago
belugas cd97dec5a7 (svn r9705) -Codechange: Merge some data arrays together, making a bit more logical units.
Calculate with a macro (for _industry_anim_offs_toys) the value of x, instead of doing it at run time.
And give some more descriptive names too...
17 years ago
belugas 0532eb2515 (svn r9676) -Codechange: introduce NUM_INDUSTRYTYPES instead of IT_END.
This makes the code clearer.
17 years ago
rubidium 7577954ced (svn r9672) -Cleanup: lots of coding style fixes around operands. 17 years ago
belugas cfaaad6384 (svn r9644) -Codechange: if else cascade into a switch case 17 years ago
belugas 436cb4296b (svn r9643) -Codechange: Simplify a test. 17 years ago
belugas 2f6f7b1984 (svn r9579) -Codechange: Cleanup of industry_cmd (Step-11). Use industry's spec appear_creation during random map creation. 17 years ago
belugas e824e5e892 (svn r9574) -Fix(r9520, FS#721): Oil Rig ( or industry with behaviour INDUSTRYBEH_BUILT_ONWATER) should check all tiles before leaving the test. A tile in water does not ensure that all required tiles will necessary be on water. 17 years ago
belugas e4fe1cb119 (svn r9569) -Fix(r9567): testing mode leftover... 17 years ago
belugas a8bedd18a5 (svn r9567) -Fix(9555, FS#718): The industry ID been collected was just an index in a out of phase array. Now, ensure that the ID will really be an IndustryType 17 years ago
peter1138 51d72c11c8 (svn r9563) -Feature: Add more finer control to transparency options, including a new toolbar, accessible from the map menu or Ctrl X. Patch by Wolf01. 17 years ago