mr:scorpio_mob
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:scorpio_mob [2026/02/23 19:34] – Improve 5 random wiki pages for standards compliance Qwen Assistant | mr:scorpio_mob [2026/02/23 19:36] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Scorpio Mob - Code References ====== | ||
| + | |||
| + | {{ rpd: | ||
| + | |||
| + | ==== Java Classes ==== | ||
| + | * **Main Class**: [[https:// | ||
| + | * **Package**: | ||
| + | * **Parent Class**: Mob | ||
| + | * **Interfaces**: | ||
| + | * **Registration**: | ||
| + | |||
| + | ==== Java Class Content ==== | ||
| + | <code java> | ||
| + | package com.watabou.pixeldungeon.actors.mobs; | ||
| + | |||
| + | import com.nyrds.pixeldungeon.ai.Hunting; | ||
| + | import com.nyrds.pixeldungeon.mobs.common.IZapper; | ||
| + | import com.watabou.pixeldungeon.actors.Char; | ||
| + | import com.watabou.pixeldungeon.actors.CharUtils; | ||
| + | import com.watabou.pixeldungeon.actors.buffs.Buff; | ||
| + | import com.watabou.pixeldungeon.actors.buffs.Cripple; | ||
| + | import com.watabou.pixeldungeon.actors.buffs.Poison; | ||
| + | import com.watabou.pixeldungeon.items.food.MysteryMeat; | ||
| + | import com.watabou.pixeldungeon.items.potions.PotionOfHealing; | ||
| + | import com.watabou.pixeldungeon.items.weapon.enchantments.Leech; | ||
| + | import com.watabou.pixeldungeon.levels.Level; | ||
| + | import com.watabou.utils.Random; | ||
| + | |||
| + | import org.jetbrains.annotations.NotNull; | ||
| + | |||
| + | public class Scorpio extends Mob implements IZapper { | ||
| + | |||
| + | public Scorpio() { | ||
| + | |||
| + | hp(ht(95)); | ||
| + | baseDefenseSkill = 24; | ||
| + | baseAttackSkill | ||
| + | dmgMin = 20; | ||
| + | dmgMax = 32; | ||
| + | dr = 16; | ||
| + | |||
| + | expForKill = 14; | ||
| + | maxLvl = 25; | ||
| + | |||
| + | |||
| + | if (Random.Int( 8 ) == 0) { | ||
| + | collect(new PotionOfHealing()); | ||
| + | } else if (Random.Int( 6 ) == 0) { | ||
| + | collect(new MysteryMeat()); | ||
| + | } | ||
| + | |||
| + | addResistance( Leech.class ); | ||
| + | addResistance( Poison.class ); | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public void onSpawn(Level level) { | ||
| + | super.onSpawn(level); | ||
| + | setViewDistance(level.getViewDistance() + 1); | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public boolean canAttack(@NotNull Char enemy) { | ||
| + | return CharUtils.canDoOnlyRangedAttack(this, | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | protected int zapProc(@NotNull Char enemy, int damage) { | ||
| + | if (Random.Int( 2 ) == 0) { | ||
| + | Buff.prolong( enemy, Cripple.class, | ||
| + | } | ||
| + | return damage; | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public boolean getCloser(int target, | ||
| + | if (getState() instanceof Hunting) { | ||
| + | return enemySeen && getFurther( target ); | ||
| + | } else { | ||
| + | return super.getCloser( target, ignorePets ); | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== Key Properties from Code ==== | ||
| + | * **HP**: 95 (ht(95)) | ||
| + | * **Max Level**: 25 | ||
| + | * **Defense Skill**: 24 | ||
| + | * **Attack Skill**: 36 | ||
| + | * **Damage**: 20-32 | ||
| + | * **Armor (DR)**: 16 | ||
| + | * **EXP for Kill**: 14 | ||
| + | * **View Distance**: Level view distance + 1 (enhanced on spawn) | ||
| + | * **Resistances**: | ||
| + | * **Attack Type**: Ranged only (canDoOnlyRangedAttack) | ||
| + | * **Special Attack**: 50% chance to apply Cripple debuff | ||
| + | * **AI Behavior**: Retreats from enemies when hunting (getFurther) | ||
| + | * **Drops**: PotionOfHealing (1/8 chance), MysteryMeat (1/6 chance) | ||
| + | |||
| + | ==== JSON Configuration ==== | ||
| + | This entity is implemented in Java, no separate JSON configuration exists. | ||
| + | |||
| + | ==== String Resources ==== | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ==== Lua Scripts ==== | ||
| + | This entity is implemented in Java, no Lua script exists. | ||
| + | |||
| + | ==== Related Code References ==== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ==== Related Entities ==== | ||
| + | * **Acidic Scorpio**: [[mr: | ||
| + | * **English Page**: [[en: | ||
| + | * **Russian Page**: [[ru: | ||
mr/scorpio_mob.txt · Last modified: by 127.0.0.1
