Commit graph

161 commits

Author SHA1 Message Date
Enno Rehling
1e5aeac0e5 familiarmage attribute in CR
bindings for the GM tool (selection, current region)
2006-04-16 16:11:16 +00:00
Enno Rehling
3fb3e7b201 New way of storing attrib-lists should make it faster to find a specific one and jump over entire classes of attribs. 2006-02-25 00:12:48 +00:00
Enno Rehling
b7552f0d06 - New random number generator
- Faster get_pooled/use_pooled
- faster peasants()
- faster plagues()
- faster horses()
2006-02-19 22:43:56 +00:00
Enno Rehling
dceb83c6a7 The incomplete fspecial functions cause quite a bit of attribute-lookups, so I'm putting them in a #define until they get implemented (if ever).
#define KARMA_MODULE is you want to use fspecial in the future.
2006-02-17 22:59:03 +00:00
Enno Rehling
d5c94df710 the awkwardly named 'young tree' is now called 'sapling' 2006-02-10 22:24:20 +00:00
Enno Rehling
3248053efe Messages benutzen alte Hashfunktion für Typ-Key. 2006-02-07 21:31:55 +00:00
Enno Rehling
5dd2542586 Fehler bei neuem itemlisten-argument 2006-01-21 18:10:46 +00:00
Enno Rehling
55b9af27c2 http://eressea.upb.de/mantis/view.php?id=787
Signifikanter CR/NR-Unterschied 

- das Regionsintervall wurde in write_plaintext() nicht korrekt benutzt.
2006-01-21 08:34:01 +00:00
Enno Rehling
6df45d2a93 weight, cargo & capacity in the CR. 2006-01-18 23:12:59 +00:00
Enno Rehling
ba0851da7a There is probably no good way to do this in a CR: writing out a list of missing objects in a message object. 2006-01-13 22:30:24 +00:00
Enno Rehling
b49d1cadca Aus dem TODO:
- WDW spells per XML definiert, so dass sie nicht in Eressea auftauchen, aber auch kein define benötigen

- Neue Variante des seenspell-attributes.

- weniger find_spellbyid() aufrufe.
2006-01-01 18:35:55 +00:00
Enno Rehling
eadda41bcb no more find_spellbyid for resource files. 2006-01-01 17:19:51 +00:00
Enno Rehling
4635c46ec2 - dice_rand kann einfaches multiplizieren
- als dice_roll nach lua exportiert
- equipment kann in inventories getan werden
- region::land bekommt ein inventory
- terraform legt equipment in neue regionen

kingdoms:
- neues terrain berge.
2005-12-11 09:58:17 +00:00
Enno Rehling
15031089b4 http://eressea.upb.de/mantis/view.php?id=772
Falsche Lohn-angabe im CR
2005-12-04 17:15:30 +00:00
Enno Rehling
7783077517 simplified the work() functions
splitting more functionality from process_orders into separate functions
2005-11-20 12:58:59 +00:00
Enno Rehling
357a73e826 XML reports - incomplete implementation, might finish it eventually. 2005-11-18 23:23:47 +00:00
Enno Rehling
d2a75f15fe code cleanup, reports. report types are now registered (some code I had on my disk since the days I was writing xml reports), and a new mailit format (reports.txt replaces mailit). Also, no more writing of shellscripts from the server, since that's done by an external script now. 2005-11-02 21:10:40 +00:00
Enno Rehling
7cfc188e64 bug in pool-parameters (mode and amount mixed up in production code) 2005-10-30 11:55:22 +00:00
Enno Rehling
ada8c3a52d bugfix: water of life
initialization of potion text
removing #if 0 code.
2005-10-30 09:51:02 +00:00
Enno Rehling
91da1f6e89 The quest to remove resource_t from the game continues (finally) 2005-10-29 11:17:21 +00:00
Enno Rehling
ac30257333 removed a lot of old code that used or initialized potions and herbs, moved those to the xml data instead. also made spells use resource_type instead of resource_t to have one less place where those are used.
The tech-tree loading is now smart enough that a resource can depend on another one that isn't loaded yet (it builds a dummy of the resource at first). his can backfire if you then forget to define that resource for real, i'll eventually need error-handling there.
2005-10-25 20:44:18 +00:00
Enno Rehling
68433ad0d1 Der Eressea-Code hat jetzt auch extern definierte Terrains. Ich war so gründlich wie es ging dabei, die alten T_ Konstanten zu entfernen, aber einzelne Regeln sind ziemlich hardgecodet (wo Drachen geboren werden, usw), und benötigen daher noch das terrainid.h include, in das der alte enum verfrachtet ist.
Konfigurierbarkeit ahoi.
2005-10-25 12:38:01 +00:00
Enno Rehling
4ce88dad13 removing the old NEW_RESOURCEGROWTh macro 2005-10-24 20:06:40 +00:00
Enno Rehling
4dc1339ec3 New: familiars are initialized with an equipment-set.
New: familiars can have a LUA initialization function.

Moved the spell implementations from spell.c to spells.c where they "belong".

Spell ids moved to a separate header (to phase them out eventually)
2005-10-23 09:05:11 +00:00
Enno Rehling
046290ebdb Bugfix: spellnames sind nicht von sp->info abhängig. 2005-10-09 09:09:51 +00:00
Enno Rehling
1771a81c52 Neues Datenformat macht Schluss mit der Speicherung von spell-ids im Datenfile. 2005-10-08 15:25:21 +00:00
Enno Rehling
49bd595d69 New code:
"equipment-sets" in the XML definition files (equipment.xml) can define skills and items for a unit. these can be applied using the equip_unit() function (from both LUA and C).

I've rewritten the random first encounters and addplayer() functions to use these. As a result, there's now even less dependency on fixed item types in the source, and I can take more items out.
2005-10-02 20:28:44 +00:00
Enno Rehling
bcf0b8d446 removed the old GROWING_TREES macro.
Also, made sure starting regions always have at least a few trees and horses, because I'm sick and tired of the complaints.
2005-09-10 21:09:51 +00:00
Enno Rehling
170eed6b62 put the faction's age into the CR 2005-09-08 22:55:31 +00:00
Enno Rehling
62a51a8bf0 scores are now an optional module.
spoils are moved to the XMl data, and the racespoils functions are greatly reduced (less LOC -> less bugs).

phoenix feather is a wdw-only item
2005-07-31 16:07:02 +00:00
Enno Rehling
b1703d27d4 local linux fixes 2005-07-26 21:03:08 +00:00
Enno Rehling
5ebac77a1c proper translation of items in the faction pool. 2005-07-26 20:39:36 +00:00
Enno Rehling
e4bdec8e7c crwritemap has been exported to lua as write_map(filename). 2005-07-26 10:50:00 +00:00
Enno Rehling
8e2225e4d5 translating a couple more spells
removing unnecessary includes of spell.h
2005-07-26 10:17:43 +00:00
Enno Rehling
32852df60c unit::botschaften as a special case of messages disappears. Simple code for simple stuff. 2005-07-25 19:56:44 +00:00
Enno Rehling
41708ce703 http://eressea.upb.de/mantis/view.php?id=606
Traumschlößchen verschwindet nicht und funktioniert nicht

Verschwinden tut es wohl immer noch nicht, aber immerhin funktioniert es.
2005-07-23 18:18:53 +00:00
Enno Rehling
659d32e5f3 at_follow Attribut wird nicht mehr im CR/NR ausgegeben, da es ohnehin nicht gespeichert wird. 2005-07-22 18:19:24 +00:00
Enno Rehling
33ae3283ee fehlende message- type/rendered attribute im CR 2005-06-19 09:32:53 +00:00
Enno Rehling
2e9f1954fe http://eressea.upb.de/mantis/view.php?id=521
Händler verkauft und lernt gleichzeitig

Der Trick ist, das man das flag nicht nur in KAUFE/VERKAUFE testen muss, sondern noch viel wichtiger in LERNE auch setzen.
Issue: 521
2005-06-13 19:54:58 +00:00
Enno Rehling
9dc06958e2 Even more flags to reduce attribute-lookups.
double bookkeeping can be scary, but i think it should be rather safe in these cases.
2005-06-12 17:57:14 +00:00
Enno Rehling
c5846b0990 - region flag that speeds up access to at_travelunit
- unit flag that speeds up access to at_guard
- test for at_npcfaction only when AllianceRestricted.
2005-06-11 23:02:52 +00:00
Enno Rehling
1a1dc417c4 misc. memory leaks removed 2005-06-11 08:09:55 +00:00
Enno Rehling
8242e9ed41 Eressea ist 64-bit ready. Denke ich jedenfalls. 2005-06-09 22:10:35 +00:00
Enno Rehling
448e9e7c09 http://eressea.upb.de/mantis/view.php?id=548
DEFAULT-Befehl funktioniert wieder nicht

Wenn neue Befehle in old_orders stehen, werden lange Befehle in orders nicht mehr ausgegeben.
Issue: 548
2005-06-05 16:48:22 +00:00
Enno Rehling
26745e16f7 f->mistakes is a useless pointer. 2005-05-07 23:53:23 +00:00
Enno Rehling
001d9461a1 Wir machen jetzt wieder eine Kopie alter länglicher Befehle. Vielleciht hilft es. 2005-05-01 11:32:24 +00:00
Enno Rehling
f8ef91907a Beschleunigung des von get_seen_interval (Dank ENUM_REGIONS) 2005-05-01 00:26:15 +00:00
Enno Rehling
092b249060 unit::lastorder entfernt. Das Konzept eines einzelnen langen Befehles hat ausgedient, spätestens seit @ existiert. 2005-04-30 17:07:46 +00:00
Enno Rehling
f685f770f0 nochmal der gleiche fehler, i_free ist zu pingelig :-) 2005-04-30 13:51:25 +00:00
Enno Rehling
304ac20747 memory leaked by item reports in the CR. 2005-04-30 11:46:11 +00:00