|
|
| Line 1: |
Line 1: |
| '''Testing Module:LVL/Sandbox'''
| | <tabber> |
| | | |-|Side Walkers= |
| --- | | {{Infobox unit |
| '''Function: get_npc_var'''
| | | name = Side Walker |
| ---
| | | Image = Walker Icon.png |
| * Get StompDamage for npc_boss_tier2: {{#invoke:LVL/Sandbox|get_npc_var|npc_boss_tier2|StompDamage}} (Expected: 350)
| | | max_health = {{NpcData|npc_boss_tier2_weak|MaxHealth}} |
| * Get MaxHealth for neutral_trooper_strong: {{#invoke:LVL/Sandbox|get_npc_var|neutral_trooper_strong|MaxHealth}} (Expected: 1760)
| | | bullet_resist = 60%→ -30 |
| * Get a stat from a non-existent NPC: {{#invoke:LVL/Sandbox|get_npc_var|npc_that_does_not_exist|MaxHealth}} (Expected: Error: NPC 'npc_that_does_not_exist' not found.)
| | | spirit_resist = {{NpcData|npc_boss_tier2_weak|IntrinsicAbilityResistance}} |
| * Get a non-existent stat from a valid NPC: {{#invoke:LVL/Sandbox|get_npc_var|trooper_normal|ThisStatDoesNotExist}} (Expected: 0)
| | | dps = 125 |
| * Test with extra whitespace in arguments: {{#invoke:LVL/Sandbox|get_npc_var| trooper_normal | MaxHealth }} (Expected: 300)
| | | attack_range = {{NpcData|npc_boss_tier2_weak|SightRangePlayers}} |
| | | | melee_damage = {{NpcData|npc_boss_tier2_weak|StompDamage}} |
| ---
| | | soul_value = {{#invoke:GenericData|get_objective_param|Tier2GoldKill}} |
| '''Function: get_list_elem'''
| | }} |
| ---
| | |-|Blue Walker= |
| * Get the 4th value from NearbyEnemyResistanceValues for npc_boss_tier2: {{#invoke:LVL/Sandbox|get_list_elem|npc_boss_tier2|NearbyEnemyResistanceValues|4}} (Expected: 20)
| | {{Infobox unit |
| * Get an out-of-bounds index from a list: {{#invoke:LVL/Sandbox|get_list_elem|npc_boss_tier2|NearbyEnemyResistanceValues|100}} (Expected: [blank])
| | | name = Blue Walker |
| * Get a value from a non-existent list: {{#invoke:LVL/Sandbox|get_list_elem|trooper_normal|NonExistentList|1}} (Expected: [blank])
| | | Image = Walker Icon.png |
| * Provide a non-numeric index: {{#invoke:LVL/Sandbox|get_list_elem|npc_boss_tier2|NearbyEnemyResistanceValues|four}} (Expected: Error: Invalid index provided. Must be a number.)
| | | max_health = {{NpcData|npc_boss_tier2|MaxHealth}} |
| | | | bullet_resist = 60%→ -30 |
| ---
| | | spirit_resist = {{NpcData|npc_boss_tier2|IntrinsicAbilityResistance}} |
| '''Function: get_ability_key'''
| | | dps = 125 |
| ---
| | | attack_range = {{NpcData|npc_boss_tier2|SightRangePlayers}} |
| * Get primary weapon for npc_boss_tier2_weak: {{#invoke:LVL/Sandbox|get_ability_key|npc_boss_tier2_weak|ESlot_Weapon_Primary}} (Expected: citadel_weapon_bosstier2_set)
| | | melee_damage = {{NpcData|npc_boss_tier2|StompDamage}} |
| * Get signature ability 3 for npc_boss_tier2: {{#invoke:LVL/Sandbox|get_ability_key|npc_boss_tier2|ESlot_Signature_3}} (Expected: citadel_ability_tier2boss_stomp)
| | | soul_value = {{#invoke:GenericData|get_objective_param|Tier2GoldKill}} |
| * Get ability from an NPC with no BoundAbilities: {{#invoke:LVL/Sandbox|get_ability_key|trooper_normal|ESlot_Weapon_Primary}} (Expected: Error: NPC 'trooper_normal' has no 'BoundAbilities' data.)
| | }} |
| * Get a non-existent ability slot: {{#invoke:LVL/Sandbox|get_ability_key|npc_boss_tier2|ESlot_That_Does_Not_Exist}} (Expected: Error: Slot 'ESlot_That_Does_Not_Exist' not found for NPC 'npc_boss_tier2'.)
| | </tabber> |