Enno Rehling
|
e72155a563
|
WIP: reimplemented production modifiers.
The system itself seems to work, but some Lua tests are still failing.
|
2017-04-02 14:43:53 +02:00 |
|
Enno Rehling
|
4c67e0603b
|
remove attribs from rtype (it's only in rtype->construction that we use it?)
test to verify that mine bonus for iron works as advertised.
change the oder of arguments for faction.create (race is the only thing not optional).
|
2017-03-17 22:46:10 +01:00 |
|
Enno Rehling
|
7022ae05bd
|
Merge branch 'master' into develop
Conflicts:
src/kernel/item.c
src/modules/arena.c
|
2017-03-06 22:20:22 +01:00 |
|
Enno Rehling
|
aa662e65d2
|
eliminate R_PERSON hack.
|
2017-03-05 13:58:11 +01:00 |
|
Enno Rehling
|
5675ef6091
|
clean and extend the enum of resources.
|
2017-03-05 11:10:59 +01:00 |
|
Enno Rehling
|
acfb666539
|
remove rtype->uget funpointer, and lua callbacks.
fix a missing lua_pop that trashed the heap.
|
2017-03-04 20:59:43 +01:00 |
|
Enno Rehling
|
50bdc71c1b
|
kill lua_canuse_item and itype->canuse
|
2017-03-04 17:27:13 +01:00 |
|
Enno Rehling
|
d976ee6f67
|
special cases, not callbacks, for money and horses.
|
2017-03-03 19:17:20 +01:00 |
|
Enno Rehling
|
5a01eae522
|
make item_use function crash if new and old rules do not agree
add a 'test' function to E3 that exercises all those items
|
2017-02-28 14:22:59 +01:00 |
|
Enno Rehling
|
49d8a03eca
|
remote the item_type.use funpointer.
|
2017-02-27 20:41:05 +01:00 |
|
Enno Rehling
|
44c3838d79
|
WIP: itype->use elimination.
|
2017-02-27 04:22:28 +01:00 |
|
Enno Rehling
|
b8ffc20d87
|
remove item_useonother callbacks (use is fine).
add a test for foolpotion.
|
2017-02-26 19:54:58 +01:00 |
|
Enno Rehling
|
d4b973fea4
|
remove resource_limit struct indirection.
|
2017-02-26 13:55:19 +01:00 |
|
Enno Rehling
|
3a985108a6
|
change all magic resistance to use fractions.
|
2017-02-24 20:47:47 +01:00 |
|
Enno Rehling
|
1498f2e1d7
|
refactor rawmaterial_type.
still have to decide if we need it at all.
|
2017-02-22 21:10:22 +01:00 |
|
Enno Rehling
|
04154628e6
|
remove funpointer for spoils
|
2017-02-20 09:18:04 +01:00 |
|
Enno Rehling
|
2328975dc2
|
do not use floats for material-save.
abusing variants for storing short fractions.
remove unused RMF_SAVERESOURCE.
|
2017-02-17 21:45:10 +01:00 |
|
Enno Rehling
|
5680057e7f
|
adding simple test for MAKE <ITEM>
|
2017-02-15 17:09:23 +01:00 |
|
Enno Rehling
|
d28d3f4690
|
move read/write_items to item.c.
fix bad memset in attrib.test.c.
|
2016-11-14 01:00:48 +01:00 |
|
Enno Rehling
|
2c0f708d1b
|
WIP: remove at_guard, GUARD_TREES and GUARD_MINING
TODO: fix tests
TODO: write new guard coverage
|
2016-10-30 09:18:19 +01:00 |
|
Enno Rehling
|
d84ed1f89d
|
move static variable cleanup to kernel_done.
clean up some more.
|
2016-09-07 21:22:05 +02:00 |
|
Enno Rehling
|
c70d987c09
|
memory leak: free weapon data
|
2015-10-13 22:27:43 +02:00 |
|
Enno Rehling
|
b8df3f3a5f
|
increase the datatype for scores from int to long long
this fixes https://bugs.eressea.de/view.php?id=2136
|
2015-09-06 19:04:04 +02:00 |
|
Enno Rehling
|
c54cbfd472
|
fix copyright notice
|
2015-01-30 22:10:29 +01:00 |
|
Enno Rehling
|
abca25d1d5
|
fix indentation in every file
fix copyright date
remove vi ts=2 code
remove a couple of superfluous extern declarations
|
2015-01-30 20:37:14 +01:00 |
|
Enno Rehling
|
838cf3d938
|
try to allow visual studio to build with all warnings (/WAll) enabled.
|
2015-01-12 22:53:21 +01:00 |
|
Enno Rehling
|
80be0a8e89
|
I broke the Lua tests, must initialize resources in eressea.free_game binding
|
2014-12-31 00:20:19 +01:00 |
|
Enno Rehling
|
228983202d
|
properly free items at cleanup.
|
2014-12-30 23:49:50 +01:00 |
|
Enno Rehling
|
cd70b8684d
|
fix escape_string mmeory corruption error.
fix a number of small stuff that happens when loading very old data files (like 572).
|
2014-12-12 11:28:37 +01:00 |
|
Enno Rehling
|
d7c2fc2b04
|
remove the R_UNIT resource.
https://bugs.eressea.de/view.php?id=1945
assert that only items can be reserved.
|
2014-12-11 23:24:00 +01:00 |
|
Enno Rehling
|
27f94783bc
|
fix gcc build, forward-declare structs in the header.
MSVC allows structs to be declared in a function signature, gcc wants
to know about them earlier.
|
2014-11-01 13:10:22 +01:00 |
|
Enno Rehling
|
ce3e9cd7d0
|
Add missing test coverage for update_guards. Fix the weapon:minskill default.
|
2014-10-14 18:37:45 +02:00 |
|
Enno Rehling
|
920902f8eb
|
replace resource_type::_name array with a single string.
|
2014-08-24 23:58:30 +02:00 |
|
Enno Rehling
|
11a264742b
|
appearance is something only items have, so move it to item_type
|
2014-06-29 17:35:37 -07:00 |
|
Enno Rehling
|
5d32896407
|
rt_register is no longer required, new_resourcetype replaced by rt_get_or_create.
|
2014-06-29 17:02:45 -07:00 |
|
Enno Rehling
|
95929a99b5
|
we are about to remove rt_register, but not quite yet.
|
2014-06-29 16:46:42 -07:00 |
|
Enno Rehling
|
12e15978b8
|
read weight, capacity and flags of items
|
2014-06-25 08:00:09 -07:00 |
|
Enno Rehling
|
92f43a7b51
|
eliminate it_find calls, replace it_find with something backed by rt_find
|
2014-06-24 22:44:05 -07:00 |
|
Enno Rehling
|
dc8a8cdd71
|
rt_find -> get_resourcetype optimization
|
2014-06-24 08:19:11 -07:00 |
|
Enno Rehling
|
d581737744
|
optimization: caching resource types in get_resourcetype.
eliminate some it_find calls.
eliminate static variables, they make testing hard.
|
2014-06-24 07:42:45 -07:00 |
|
Enno Rehling
|
77ee0b7af7
|
remote the item_t enum for good
|
2014-06-23 19:17:13 -07:00 |
|
Enno Rehling
|
73da14e305
|
getting rid of the olditemtypes[] array
reduce use of statics
reduce use of item_t enum
|
2014-06-23 07:28:10 -07:00 |
|
Enno Rehling
|
2c831230a0
|
Added a test for expensive skills.
When resetting the game rules, make sure basic resources (money, hp, person) are initialized.
|
2014-06-22 07:55:14 -07:00 |
|
Enno Rehling
|
bff25f3c51
|
move skill_t into a separate file, give it unit tests.
name functions the same as we did for keyword/direction earlier.
to do: json configuration and lua test.
|
2014-06-20 23:59:04 -07:00 |
|
Enno Rehling
|
03c247c788
|
I am killing the core/ directory.
Lots of files are moving to a new location in src/
Some intersting CMake changes.
|
2014-02-18 05:45:00 +01:00 |
|