1 | /* |
1 | /* |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 | * |
3 | * |
|
|
4 | * Copyright (©) 2017,2018 Marc Alexander Lehmann / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2002 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 2002 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 1992 Frank Tore Johansen |
7 | * Copyright (©) 1992 Frank Tore Johansen |
7 | * |
8 | * |
8 | * Deliantra is free software: you can redistribute it and/or modify it under |
9 | * Deliantra is free software: you can redistribute it and/or modify it under |
… | |
… | |
63 | |
64 | |
64 | /** Returns a random selection from cauldron_effect[] */ |
65 | /** Returns a random selection from cauldron_effect[] */ |
65 | static const char * |
66 | static const char * |
66 | cauldron_sound () |
67 | cauldron_sound () |
67 | { |
68 | { |
68 | return cauldron_effect [rndm (array_length (cauldron_effect))]; |
69 | return cauldron_effect [rndm (ecb_array_length (cauldron_effect))]; |
69 | } |
70 | } |
70 | |
71 | |
71 | /** |
72 | /** |
72 | * Recipe value of the entire contents of a container. |
73 | * Recipe value of the entire contents of a container. |
73 | * This appears to just generate a hash value, which I guess for now works |
74 | * This appears to just generate a hash value, which I guess for now works |