tonibm19
1ff051c9a3
Now saddled horses spawn a saddle pickup when killed
2013-10-28 20:28:16 +01:00
tonibm19
5a723454a9
Now saddle pigs spawn a saddle pickup when killed
2013-10-28 20:27:05 +01:00
madmaxoft
1eac38f3d7
Fixed indentation in tonibm19's code.
2013-10-28 19:54:03 +01:00
tonibm19
984277f65e
Fixed compilation
...
STR_Warrior code had an error (I copied&pasted it before)
2013-10-28 19:47:38 +01:00
tonibm19
6e554c3b52
Use STR_Warrior code and changed variable name
2013-10-28 19:42:02 +01:00
tonibm19
144b528257
Extra line
2013-10-27 10:42:16 +01:00
tonibm19
a42561cf5a
Sheep fixes.
...
Now amount of wool you get when shearing a sheep is random.
Sheeps only spawn in white color (I will add sheep dying soon).
2013-10-27 10:41:25 +01:00
madmaxoft
86bec4c57c
cMonster: Improved doxycomments.
2013-10-25 10:41:19 +02:00
madmaxoft
5331555708
Renamed cMonster::GetSpawnRate() to GetSpawnDelay().
2013-10-24 16:45:13 +02:00
madmaxoft
4cf0862c12
Fixed an assert in cMonster
2013-10-22 17:54:23 +02:00
madmaxoft
d8576a7953
Reimplemented cMonster::FamilyFromType() as a simple switch (duh!)
2013-10-20 14:15:55 +02:00
madmaxoft
6075f7cecd
Fixed memory leaks in cMobCensus, moved GetSpawnRate() to cMonster.
2013-10-20 14:00:45 +02:00
madmaxoft
71d06e3015
Fixed binary search in StringToMobType().
2013-10-20 13:42:59 +02:00
madmaxoft
848d061de1
Moved all MobTypesManager functions to cMonster.
...
This removes some of the memory leaks and is more logical in structure. Also the functions are exported to Lua.
2013-10-20 13:25:56 +02:00
madmaxoft
34928378b8
Fixed loading allowed mobs in world.
2013-10-20 10:23:30 +02:00
madmaxoft
5d4fa298d3
Fixed indentation and re-styled conditions.
2013-10-18 16:34:01 +02:00
Mattes D
2a9997881c
Merge pull request #259 from tonibm19/patch-2
...
Fixed horse saddle
2013-10-18 07:29:23 -07:00
Mattes D
8bba2b02a1
Merge pull request #253 from SamJBarney/master
...
Merge of Mob Spawning code by mgueydan
2013-10-18 03:41:43 -07:00
tonibm19
2c187e53b7
Moved lines
...
don't know if I did well
2013-10-17 21:28:45 +02:00
tonibm19
90c39c55a9
More fixes
...
- You can only tame horses with nothing at hand
- Fixed rearing
2013-10-17 18:41:52 +02:00
tonibm19
137ed5a556
Improved horse saddling [SEE DESC]
...
Now it checks if horse is already saddled, and if it's, you don't lose the saddle. Also, if the horse isn't tammed, you can't saddle it.
2013-10-16 19:50:59 +02:00
madmaxoft
6a1149cf46
Fixed compilation errors.
2013-10-16 15:15:51 +02:00
tonibm19
2f8a0a8a3a
Added extra line
2013-10-15 21:26:43 +02:00
tonibm19
4ee2632d4f
Fixed saddle horse
2013-10-15 21:25:33 +02:00
tonibm19
400cab0b86
Fixed a big fail.I did
2013-10-15 18:17:17 +02:00
tonibm19
06b7e09e70
Added extra line (yes, again)
2013-10-15 17:32:15 +02:00
tonibm19
fbba2e79eb
Added basic milk code.
2013-10-15 17:31:26 +02:00
tonibm19
7d4c0582a8
Added extra line
2013-10-15 17:11:42 +02:00
tonibm19
8147ccd13b
Added horse saddling
...
It uses pig code, sorry if it don't works, i'm a noob, but it should work.
2013-10-15 17:09:43 +02:00
Samuel Barney
318d552248
Merge branch 'MobSpawning' of https://github.com/mgueydan/MCServer into MobSpawning
...
Conflicts:
source/Mobs/Bat.h
source/Mobs/Monster.h
source/World.cpp
2013-10-14 10:03:47 -06:00
madmaxoft
e62cac07c0
Merge branch 'metadata' of git://github.com/tigerw/MCServer into tigerw-metadata.
2013-10-13 18:26:45 +02:00
Tiger Wang
d8d2f35e9d
Eight round of fixes
...
* Changed IsA() to *long if statement*
- Removed deprecated values in Entity.h - to blazes with the plugins!
* Renamed villager type enumerations to be LESS SHOUTY and more vt-y
+ Use vtMax for World.cpp testificate spawning
2013-10-13 12:47:55 +01:00
Tiger Wang
327abdd10d
Sixth round of fixes
...
* Made horse rearing time fixed instead of random
2013-10-11 21:33:56 +01:00
Tiger Wang
e2aaf202ab
Fifth round of fixes
...
* Enumerated Villager spawning
2013-10-11 20:57:22 +01:00
Tiger Wang
ee2df34d03
Fourth round of fixes
...
* Switchified WriteMobMetadata
* Renamed Horse functions to be better
2013-10-11 01:00:16 +01:00
Tiger Wang
d7b2c534fd
Third round of fixes
...
* Split WriteMetadata into three functions for common, entity, and mob
* Edited a few mob sizes to Vanilla values
2013-10-11 00:41:54 +01:00
Tiger Wang
fe6fa23a97
Second round of fixes
...
* Implemented suggestions
2013-10-09 21:02:59 +01:00
Tiger Wang
7401fc000d
Initial round of fixes
...
* Fixed intentional misspelling of baby! :D
* Better chested horse bool name
* Fixed some weird continuity issues with my recent changes not being
pushed up initially
* Fixed derpy hexadecimal values
2013-10-08 22:21:55 +01:00
Tiger Wang
5db6213f34
Initial Metadata Commit [SEE DESC]
...
+ Pigs, Minecarts, Sheep, Skeletons, Slimes, Villagers, Wolves, and
Horses have metadata
+ Base code on taming wolves, shearing sheep, and taming horses
+ Sheep and horses have different colours when spawned
2013-10-08 19:20:49 +01:00
madmaxoft
c7fe42be26
Linux compilation fix #2 .
2013-09-21 11:15:53 +02:00
madmaxoft
ea0addc2b9
Fixed Linux compilation.
2013-09-21 11:10:35 +02:00
madmaxoft
f3d0cdc9bc
Fixed compilation from previous commit.
2013-09-21 11:05:44 +02:00
Tiger Wang
ecf40e2893
Fixed new monster aggressiveness issue
2013-09-19 21:20:21 +01:00
Tiger Wang
3e698d7b72
Added moar mobs!
...
+ Added dragons
+ Added golems
+ Added giants
+ Added horses
+ Added some missing items
+ Added missing spawn egg metas
2013-09-18 22:17:43 +01:00
Tiger Wang
f2b7b220a4
Fixed undead burning
...
(c'mon xoft, test ya code :P)
2013-09-17 20:57:35 +01:00
madmaxoft
9f7b2e259d
Exported cMonster:GetMobType() to the Lua API.
2013-09-16 11:42:20 +02:00
tonibm19
973753774e
Added an extra line.
...
In first commit it says I removed first line
2013-09-13 20:06:42 +02:00
tonibm19
b703d9c83b
Fixed mobs attack range being too long
...
It was set to 5, I think 2 is better because now mobs can kill you when there is a block (or 2) between you and monster.
2013-09-13 19:33:22 +02:00
mgueydan
f12ac6b995
Inside cMonster::getMobFamily() : replacing Polymorphism by Map, in order to remove redundancy
2013-09-10 15:09:45 +02:00
mgueydan
bf4781d0ee
Changing Bat to AMbiant creature
2013-09-10 14:26:27 +02:00