BloodMoonホード中のドロップ品・確率変更

Last-modified: 2019-01-11 (金) 19:18:48

BloodMoonホード中のドロップ品・確率変更

サーバーのBlood Moonホードに参加する意欲を上げる方法として。
ダウンロードしたファイルそのものはVanillaと同じルート品・確率にしているので、好みで変えてください。

ファイルのみが欲しい場合

7 Days To Die直下に配置してください。

#ref(): File not found: "BloodMoonAwesomeLoot1-00.zip" at page "xml書き換え/Alpha17/BloodMoonホード中のドロップ品・確率変更"

全体としては、VanillaのゾンビをExtendsして、Blood Moon中のみ沸くゾンビを作り、そのドロップ品・確率を別物に差し替えてやります。

最初にVanillaのコピーを作り、通常・フェラル化・汚染別にドロップ品のテーブルと確率を割り当てます。
底の方のLootDropProbを変更すれば、ドロップ確率が変化します。

Modlet:entityclasses.xml

<configs>
<append xpath="/*">

<entity_class name="zombieWightFeralBlood" extends="zombieWightFeral"/>
<entity_class name="zombieWightRadiatedBlood" extends="zombieWightRadiated"/>
<!--<entity_class name="zombieBehemothBlood" extends="zombieBehemoth"/>-->
<entity_class name="zombieBoeBlood" extends="zombieBoe"/>
<entity_class name="zombieBoeFeralBlood" extends="zombieBoeFeral"/>
<entity_class name="zombieBoeRadiatedBlood" extends="zombieBoeRadiated"/>
<entity_class name="zombieFootballPlayerBlood" extends="zombieFootballPlayer"/>
<entity_class name="zombieFemaleFatBlood" extends="zombieFemaleFat"/>
<entity_class name="zombieFemaleFatFeralBlood" extends="zombieFemaleFatFeral"/>
<entity_class name="zombieFemaleFatRadiatedBlood" extends="zombieFemaleFatRadiated"/>
<entity_class name="zombieJoeBlood" extends="zombieJoe"/>
<entity_class name="zombieJoeFeralBlood" extends="zombieJoeFeral"/>
<entity_class name="zombieJoeRadiatedBlood" extends="zombieJoeRadiated"/>
<entity_class name="zombieMoeBlood" extends="zombieMoe"/>
<entity_class name="zombieMoeFeralBlood" extends="zombieMoeFeral"/>
<entity_class name="zombieMoeRadiatedBlood" extends="zombieMoeRadiated"/>
<entity_class name="zombieArleneBlood" extends="zombieArlene"/>
<entity_class name="zombieArleneFeralBlood" extends="zombieArleneFeral"/>
<entity_class name="zombieArleneRadiatedBlood" extends="zombieArleneRadiated"/>
<entity_class name="zombieLabBlood" extends="zombieLab"/>
<entity_class name="zombieLabFeralBlood" extends="zombieLabFeral"/>
<entity_class name="zombieLabRadiatedBlood" extends="zombieLabRadiated"/>
<entity_class name="legendaryZombieLabBlood" extends="legendaryZombieLab"/>
<entity_class name="zombieScreamerBlood" extends="zombieScreamer"/>
<entity_class name="zombieScreamerFeralBlood" extends="zombieScreamerFeral"/>
<entity_class name="zombieScreamerRadiatedBlood" extends="zombieScreamerRadiated"/>
<entity_class name="zombieDarleneBlood" extends="zombieDarlene"/>
<entity_class name="zombieDarleneFeralBlood" extends="zombieDarleneFeral"/>
<entity_class name="zombieDarleneRadiatedBlood" extends="zombieDarleneRadiated"/>
<entity_class name="zombieMarleneBlood" extends="zombieMarlene"/>
<entity_class name="zombieMarleneFeralBlood" extends="zombieMarleneFeral"/>
<entity_class name="zombieMarleneRadiatedBlood" extends="zombieMarleneRadiated"/>
<entity_class name="zombieYoBlood" extends="zombieYo"/>
<entity_class name="zombieYoFeralBlood" extends="zombieYoFeral"/>
<entity_class name="zombieYoRadiatedBlood" extends="zombieYoRadiated"/>
<entity_class name="zombieSteveBlood" extends="zombieSteve"/>
<entity_class name="zombieSteveFeralBlood" extends="zombieSteveFeral"/>
<entity_class name="zombieSteveRadiatedBlood" extends="zombieSteveRadiated"/>
<entity_class name="zombieSteveCrawlerBlood" extends="zombieSteveCrawler"/>
<entity_class name="zombieSteveCrawlerFeralBlood" extends="zombieSteveCrawlerFeral"/>
<entity_class name="zombieBusinessManBlood" extends="zombieBusinessMan"/>
<entity_class name="zombieBusinessManFeralBlood" extends="zombieBusinessManFeral"/>
<entity_class name="legendaryZombieBusinessManBlood" extends="legendaryZombieBusinessMan"/>
<entity_class name="zombieSnowBlood" extends="zombieSnow"/>
<entity_class name="zombieSnowFeralBlood" extends="zombieSnowFeral"/>
<entity_class name="zombieSpiderBlood" extends="zombieSpider"/>
<entity_class name="zombieSpiderFeralBlood" extends="zombieSpiderFeral"/>
<entity_class name="zombieSpiderRadiatedBlood" extends="zombieSpiderRadiated"/>
<entity_class name="zombieBurntBlood" extends="zombieBurnt"/>
<entity_class name="zombieNurseBlood" extends="zombieNurse"/>
<entity_class name="zombieNurseFeralBlood" extends="zombieNurseFeral"/>
<entity_class name="zombieFatHawaiianBlood" extends="zombieFatHawaiian"/>
<entity_class name="zombieFatHawaiianFeralBlood" extends="zombieFatHawaiianFeral"/>
<entity_class name="zombieFatCopBlood" extends="zombieFatCop"/>
<entity_class name="zombieFatCopFeralBlood" extends="zombieFatCopFeral"/>
<entity_class name="zombieFatCopRadiatedBlood" extends="zombieFatCopRadiated"/>
<entity_class name="zombieMaleHazmatBlood" extends="zombieMaleHazmat"/>
<entity_class name="zombieUtilityWorkerBlood" extends="zombieUtilityWorker"/>
<entity_class name="zombieUtilityWorkerFeralBlood" extends="zombieUtilityWorkerFeral"/>
<entity_class name="legendaryZombieUtilityWorkerBlood" extends="legendaryZombieUtilityWorker"/>
<entity_class name="zombieSoldierBlood" extends="zombieSoldier"/>
<entity_class name="zombieSoldierFeralBlood" extends="zombieSoldierFeral"/>
<entity_class name="zombieSoldierRadiatedBlood" extends="zombieSoldierRadiated"/>
<entity_class name="zombieSkateboarderBlood" extends="zombieSkateboarder"/>
<entity_class name="zombieSkateboarderFeralBlood" extends="zombieSkateboarderFeral"/>
<entity_class name="zombieSkateboarderRadiatedBlood" extends="zombieSkateboarderRadiated"/>
<entity_class name="zombieCheerleaderBlood" extends="zombieCheerleader"/>
<entity_class name="zombieCheerleaderFeralBlood" extends="zombieCheerleaderFeral"/>
<entity_class name="zombieCheerleaderRadiatedBlood" extends="zombieCheerleaderRadiated"/>
<entity_class name="zombieOldTimerBlood" extends="zombieOldTimer"/>
<entity_class name="zombieOldTimerFeralBlood" extends="zombieOldTimerFeral"/>
<entity_class name="zombieOldTimerRadiatedBlood" extends="zombieOldTimerRadiated"/>
<entity_class name="zombieBikerBlood" extends="zombieBiker"/>
<entity_class name="zombieBikerFeralBlood" extends="zombieBikerFeral"/>
<entity_class name="zombieBikerRadiatedBlood" extends="zombieBikerRadiated"/>
<!--<entity_class name="legendaryZombieBikerBlood" extends="legendaryZombieBiker"/>-->
<entity_class name="zombieFarmerBlood" extends="zombieFarmer"/>
<entity_class name="zombieFarmerFeralBlood" extends="zombieFarmerFeral"/>
<entity_class name="zombieStripperBlood" extends="zombieStripper"/>
<entity_class name="zombieStripperFeralBlood" extends="zombieStripperFeral"/>
<!--<entity_class name="zombieMinerBlood" extends="zombieMiner"/>-->

<entity_class name="EntityLootContainerRegularBlood">
	<property name="Mesh" value="LootContainers/zpackPrefab"/>
	<property name="ModelType" value="Custom"/>
	<property name="Prefab" value="Backpack"/>
	<property name="Class" value="EntityLootContainer"/>
	<property name="Parent" value="Backpack"/>
	<property name="IsEnemyEntity" value="false"/>
	<property name="TimeStayAfterDeath" value="300"/>
	<property name="LootListOnDeath" value="111"/>
	<property name="Faction" value="none"/>
</entity_class>

<entity_class name="EntityLootContainerStrongBlood">
	<property name="Mesh" value="LootContainers/zpackPrefab"/>
	<property name="ModelType" value="Custom"/>
	<property name="Prefab" value="Backpack"/>
	<property name="Class" value="EntityLootContainer"/>
	<property name="Parent" value="Backpack"/>
	<property name="IsEnemyEntity" value="false"/>
	<property name="TimeStayAfterDeath" value="300"/>
	<property name="LootListOnDeath" value="112"/>
	<property name="Faction" value="none"/>
</entity_class>

<entity_class name="EntityLootContainerRadiatedBlood">
	<property name="Mesh" value="LootContainers/zpackPrefab"/>
	<property name="ModelType" value="Custom"/>
	<property name="Prefab" value="Backpack"/>
	<property name="Class" value="EntityLootContainer"/>
	<property name="Parent" value="Backpack"/>
	<property name="IsEnemyEntity" value="false"/>
	<property name="TimeStayAfterDeath" value="300"/>
	<property name="LootListOnDeath" value="113"/>
	<property name="Faction" value="none"/>
</entity_class>
</append>

<!-- ===== ===== ===== ===== ===== ===== ===== ===== ===== ===== -->

<append xpath="/*/*[substring(@name,string-length(@name)-string-length('Blood')+1)='Blood']">
	<property name="LootDropEntityClass" value="EntityLootContainerRegularBlood"/>
	<property name="LootDropProb" value="0.02"/>
</append>

<append xpath="/*/*[substring(@name,string-length(@name)-string-length('FeralBlood')+1)='FeralBlood']">
	<property name="LootDropEntityClass" value="EntityLootContainerStrongBlood"/>
	<property name="LootDropProb" value="0.03"/>
</append>

<append xpath="/*/*[substring(@name,string-length(@name)-string-length('RadiatedBlood')+1)='RadiatedBlood']">
	<property name="LootDropEntityClass" value="EntityLootContainerStrongBlood"/>
	<!--<property name="LootDropEntityClass" value="EntityLootContainerRadiatedBlood"/>-->
	<property name="LootDropProb" value="0.03"/>
</append>
</configs>

次に、Blood Moonホードに沸くゾンビの名前を先ほど用意した専用ゾンビの名前に変更します。

Modlet:entitygroups.xml

<configs>
<append xpath="/*/*[starts-with(@name,'feralHordeStageGS')]
	/*[starts-with(@name,'zombie') or starts-with(@name,'legendaryZombie')]
	/@name">
Blood</append>
</configs>

最後に、専用ゾンビのLootContainerを用意すれば完成です。

Modlet:loot.xml

<configs>
<append xpath="/*">

<!-- Blood moon Normal zombie -->
<lootcontainer id="111" count="1,3" size="5,10" destroy_on_close="false" sound_open="UseActions/open_backpack"
	sound_close="UseActions/close_backpack" open_time="1" loot_quality_template="baseTemplate">
	<item group="cannedfood" count="1,2" prob="13"/>
	<item name="drinkJarBeer" count="1,3" prob="5"/>
	<item name="drinkJarBoiledWater" count="1,4" prob="10"/>
	<item group="books" prob="6"/>
	<item group="brassResource" prob="6"/>
	<item name="resourceForgedIron" count="2,10" prob="3"/>
	<item name="resourceForgedSteel" count="2,10" prob="3"/>
	<item group="tools" prob="6"/>
	<item group="rareTools" prob="3"/>
	<item group="ironArmor" prob="3"/>
	<item group="steelArmor" prob="2"/>
	<item group="militaryArmor" prob="2"/>
	<item group="clothes" prob="6"/>
	<item group="warmClothes" prob=".2"/>
	<item group="ammo" count="1,2" prob="13"/>
	<item group="ammoSteel" count="1,2" prob="6"/>
	<item group="weaponsPistol+ammo" prob="5"/>
	<item group="weaponsShotgun+ammo" prob="5"/>
	<item group="weaponsHuntingRifle+ammo" prob="3"/>
	<item group="weaponsMagnum+ammo" loot_prob_template="probTemplate0.5"/>
	<item group="weaponsMilitaryGuns+ammo" loot_prob_template="probTemplate1.0"/>
	<item name="gunCompoundBow" loot_prob_template="probTemplate0.5"/>
	<item name="nightvisionGoggles" loot_prob_template="probTemplate1.0"/>
	<item name="casinoCoin" count="200,410" prob="6"/>
	<item name="oldCash" count="150,500" prob="6"/>
	<item name="drugHerbalAntibiotics" count="1,2" prob="1.3"/>
	<item group="rareMedicine" prob="2"/>
	<item name="drugPainkillers" count="1,2" prob="3"/>
	<item name="drugVitamins" count="1,2" prob="4.5"/>
	<item group="treasureMaps" count="1" prob="0.6"/>
	<item group="questChallenge" count="1" prob="0.6"/>
</lootcontainer>

<!-- Blood moon Feral zombie -->
<lootcontainer id="112" count="2,3" size="5,10" destroy_on_close="false" sound_open="UseActions/open_backpack"
	sound_close="UseActions/close_backpack" open_time="1" loot_quality_template="baseTemplate">
	<item group="cannedfood" count="1,2" prob="3.7"/>
	<item name="drinkJarBeer" count="1,3" prob="2"/>
	<item name="drinkJarBoiledWater" count="2,5" prob="2.5"/>
	<item group="books" prob="2.5"/>
	<item group="brassResource" prob="2.5"/>
	<item name="resourceForgedIron" count="1,8" prob="1.25"/>
	<item name="resourceForgedSteel" count="1,8" prob="1.25"/>
	<item name="resourceMilitaryFiber" count="3,6" prob="0.5"/>
	<item group="tools" prob="2.5"/>
	<item group="rareTools" prob=".2"/>
	<item group="ironArmor" prob="1.25"/>
	<item group="steelArmor" prob="1.25"/>
	<item group="militaryArmor" prob="1.25"/>
	<item name="armorSwatHelmet" prob="2.5"/>
	<item group="hazmatGear" prob="1.25"/>
	<item group="clothes" prob="2.5"/>
	<item group="warmClothes" prob=".75"/>
	<item group="ammo" count="1,2" prob="5"/>
	<item group="ammoSteel" count="5"/>
	<item group="weaponsPistol+ammo" prob="1.5"/>
	<item group="weaponsMagnum+ammo" loot_prob_template="probTemplate0.5"/>
	<item group="weaponsShotgun+ammo" prob="1.5"/>
	<item group="weaponsHuntingRifle+ammo" prob="1"/>
	<item group="weaponsMilitaryGuns+ammo" loot_prob_template="probTemplate1.0"/>
	<item name="meleeClubIron" prob="0.5"/>
	<item name="meleeToolHuntingKnife" prob="1.5"/>
	<item name="meleeToolMachete" prob="1.5"/>
	<item name="gunCompoundBow" loot_prob_template="probTemplate1.0"/>
	<item name="nightvisionGoggles" loot_prob_template="probTemplate0.75"/>
	<item name="casinoCoin" count="10,110" prob="2.5"/>
	<item name="oldCash" count="150,800" prob="2.5"/>
	<item name="drugHerbalAntibiotics" count="1,3" prob="0.5"/>
	<item group="rareMedicine" prob="0.75"/>
	<item name="drugPainkillers" count="2,3" prob="1.25"/>
	<item name="drugVitamins" count="2,3" prob="1.75"/>
	<item group="treasureMaps" count="1" prob="0.25"/>
	<item group="questChallenge" count="1" prob="0.25"/>
	<item group="modAllT1" loot_prob_template="probTemplate1.0"/>
	<item group="modAllT2" loot_prob_template="probTemplate0.75"/>
	<item group="modAllT3" loot_prob_template="probTemplate0.5"/>
	<item group="modAllT3" loot_prob_template="vehicleParts"/>
</lootcontainer>

<!-- Blood moon Radiated zombie (Option) -->
<lootcontainer id="113" count="2,3" size="5,10" destroy_on_close="false" sound_open="UseActions/open_backpack"
	sound_close="UseActions/close_backpack" open_time="1" loot_quality_template="baseTemplate">
	<item group="cannedfood" count="1,2" prob="3.7"/>
	<item name="drinkJarBeer" count="1,3" prob="2"/>
	<item name="drinkJarBoiledWater" count="2,5" prob="2.5"/>
	<item group="books" prob="2.5"/>
	<item group="brassResource" prob="2.5"/>
	<item name="resourceForgedIron" count="1,8" prob="1.25"/>
	<item name="resourceForgedSteel" count="1,8" prob="1.25"/>
	<item name="resourceMilitaryFiber" count="3,6" prob="0.5"/>
	<item group="tools" prob="2.5"/>
	<item group="rareTools" prob=".2"/>
	<item group="ironArmor" prob="1.25"/>
	<item group="steelArmor" prob="1.25"/>
	<item group="militaryArmor" prob="1.25"/>
	<item name="armorSwatHelmet" prob="2.5"/>
	<item group="hazmatGear" prob="1.25"/>
	<item group="clothes" prob="2.5"/>
	<item group="warmClothes" prob=".75"/>
	<item group="ammo" count="1,2" prob="5"/>
	<item group="ammoSteel" count="5"/>
	<item group="weaponsPistol+ammo" prob="1.5"/>
	<item group="weaponsMagnum+ammo" loot_prob_template="probTemplate0.5"/>
	<item group="weaponsShotgun+ammo" prob="1.5"/>
	<item group="weaponsHuntingRifle+ammo" prob="1"/>
	<item group="weaponsMilitaryGuns+ammo" loot_prob_template="probTemplate1.0"/>
	<item name="meleeClubIron" prob="0.5"/>
	<item name="meleeToolHuntingKnife" prob="1.5"/>
	<item name="meleeToolMachete" prob="1.5"/>
	<item name="gunCompoundBow" loot_prob_template="probTemplate1.0"/>
	<item name="nightvisionGoggles" loot_prob_template="probTemplate0.75"/>
	<item name="casinoCoin" count="10,110" prob="2.5"/>
	<item name="oldCash" count="150,800" prob="2.5"/>
	<item name="drugHerbalAntibiotics" count="1,3" prob="0.5"/>
	<item group="rareMedicine" prob="0.75"/>
	<item name="drugPainkillers" count="2,3" prob="1.25"/>
	<item name="drugVitamins" count="2,3" prob="1.75"/>
	<item group="treasureMaps" count="1" prob="0.25"/>
	<item group="questChallenge" count="1" prob="0.25"/>
	<item group="modAllT1" loot_prob_template="probTemplate1.0"/>
	<item group="modAllT2" loot_prob_template="probTemplate0.75"/>
	<item group="modAllT3" loot_prob_template="probTemplate0.5"/>
	<item group="modAllT3" loot_prob_template="vehicleParts"/>
</lootcontainer>
</append>
</configs>