|
1 | | ---- @todo |
2 | | --- suppressing rampage |
3 | | --- get/set variations |
4 | | --- get/set skin variations |
5 | | --- get/set deletable |
6 | | - |
7 | 1 | -- Include Zoo Tycoon 2 libraries |
8 | 2 | include "scenario/scripts/entity.lua" |
9 | 3 | include "scenario/scripts/misc.lua" |
10 | 4 | include "scenario/scripts/token.lua" |
11 | 5 | include "scenario/scripts/ui.lua" |
12 | 6 |
|
13 | | ---- Service for modifiying animals |
| 7 | +--- Service for modifiying animals. |
14 | 8 | AnimalService = {} |
15 | 9 |
|
16 | 10 | ---- ADOPTION ---- |
@@ -208,22 +202,6 @@ function AnimalService.setHygiene (animal, hygiene) |
208 | 202 | setNeed(animal, "hygiene", hygiene) |
209 | 203 | end |
210 | 204 |
|
211 | | ----- NAME ---- |
212 | | - |
213 | | ---- Get animal name |
214 | | ---- @param animal animal |
215 | | ---- @return string |
216 | | -function AnimalService.getName (animal) |
217 | | - return animal:BFG_GET_ATTR_STRING("s_name") |
218 | | -end |
219 | | - |
220 | | ---- Set animal name |
221 | | ---- @param animal animal |
222 | | ---- @param name string |
223 | | -function AnimalService.setName (animal, name) |
224 | | - animal:BFG_SET_ATTR_STRING("s_name", name) |
225 | | -end |
226 | | - |
227 | 205 | ---- PREGNANCY ---- |
228 | 206 |
|
229 | 207 | --- Get if animal is pregnant |
|
335 | 313 |
|
336 | 314 | --- Get animal species |
337 | 315 | --- @param animal animal |
338 | | ---- @return species |
339 | | -function AnimalService.getSpecies (animal) |
340 | | - return getSpeciesFromType(animal:BFG_GET_BINDER_TYPE()) |
341 | | -end |
342 | | - |
343 | | ---- Get animal species as string |
344 | | ---- @param animal animal |
345 | 316 | --- @return string |
346 | | -function AnimalService.getSpeciesString (animal) |
| 317 | +function AnimalService.getSpecies (animal) |
347 | 318 | return animal:BFG_GET_ATTR_STRING("s_Species") |
348 | 319 | end |
349 | 320 |
|
|
0 commit comments