타입은 ObjectValue<PokemonStore<*>>입니다.
| Name | Description | Usage |
|---|---|---|
add(pokemon: ObjectValue<Pokemon>): Double | 포켓몬을 첫 번째 빈 칸에 추가합니다. 공간이 있으면 1.0을 반환하고, 그렇지 않으면 0.0을 반환합니다. | v.store.add(v.pokemon) |
add_by_properties(properties: String): Double | 스토어 타입이 PlayerPartyStore이면 나열된 properties로 포켓몬을 생성해 스토어에 추가합니다. 1.0을 반환합니다: there was space, 그렇지 않으면 0.0을 반환합니다. | v.store.add_by_properties('species=cobblemon:pikachu gender=male') |
find_by_properties(properties: String): MoValue | 스토어에서 나열된 properties와 일치하는 첫 번째 포켓몬을 찾아 ObjectValue<Pokemon>을 반환합니다. 포켓몬을 찾지 못하면 0.0을 반환합니다. | v.store.find_by_properties('species=cobblemon:pikachu gender=male') |
find_all_by_properties(properties: String): MoValue | 스토어에서 나열된 properties와 일치하는 모든 포켓몬의 ArrayStruct<ObjectValue<Pokemon>>를 반환합니다. | v.store.find_all_by_properties('species=cobblemon:pikachu gender=male') |
find_by_id(id: String): MoValue | 포켓몬의 UUID id와 일치하는 ObjectValue<Pokemon>을 반환합니다. 포켓몬을 찾지 못하면 0.0을 반환합니다. | v.store.find_by_id(v.pokemon.id()) |
remove_by_id(id: String): Double | Removes a 포켓몬 that matches the UUID id. 1.0을 반환합니다: removed, 그렇지 않으면 0.0을 반환합니다. | v.store.remove_by_id(v.pokemon.id()) |
average_level(): Double | 저장소에 있는 모든 포켓몬의 평균 레벨을 반환합니다. 포켓몬이 없으면 0.0을 반환합니다. | v.store.average_level() |
count(): Double | 저장소 안의 포켓몬 수를 반환합니다. | v.store.count() |
count_by_properties(properties: String): Double | 나열된 properties와 일치하는 포켓몬 수를 반환합니다. | v.store.count_by_properties('gender=male') |
highest_level(): Double | 저장소에 있는 모든 포켓몬 중 가장 높은 레벨을 Double로 반환합니다. | v.store.highest_level() |
lowest_level(): Double | 저장소에 있는 모든 포켓몬 중 가장 낮은 레벨을 Double로 반환합니다. | v.store.lowest_level() |
heal(): Double | Heals all 포켓몬 in a store. 1.0을 반환합니다. | v.store.heal() |
healing_remainder_percent(): Double | 부족한 체력의 누적 비율을 Double로 반환합니다. | v.store.healing_remainder_percent() |
has_usable_pokemon(): Double | 1.0을 반환합니다: any 포켓몬 is not fainted, 그렇지 않으면 0.0을 반환합니다. | v.store.has_usable_pokemon() |