Electric Bass: Difference between revisions

From PZwiki
(Added the weapon code information from the project zomboid "items_weapons.txt")
 
(Add distro table)
 
(26 intermediate revisions by 7 users not shown)
Line 1: Line 1:
== Code ==
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Long blunt weapons}}
===Item===
{{Page version|41.78.16}}
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
{{Infobox item
{{Retrieved|version=41|incver=55}}
|name=Electric Bass
<nowiki>
|model=Guitar_ElectricBassBlack_Model.png
|icon=BassElectricBlack.png
|icon_name=Black Electric Bass
|model2=Guitar_ElectricBassBlue_Model.png
|icon2=BassElectricBlue.png
|icon_name2=Blue Electric Bass
|model3=Guitar_ElectricBassRed_Model.png
|icon3=BassElectricRed.png
|icon_name3=Red Electric Bass
<!--GENERAL-->
|category=Instrument
|weight=3.5
|equipped=One-handed
|attachment_type=Guitar
|skill_type=Long Blunt
<!--PROPERTIES-->
|material=<!-- E.g. Metal -->
|material_value=<!-- E.g. MetalValue attribute -->
|condition_max=12
<!--DAMAGE-->
|damage_type=Blunt
|min_damage=0.9
|max_damage=1.4
|door_damage=10
|tree_damage=0
|min_range=0.61
|max_range=1.35
|base_speed=1
|push_back=0.3
|knockdown=1.5
|crit_chance=70
|crit_multiplier=2
<!-- TECHNICAL -->
|item_id=Base.GuitarElectricBassBlack
|item_id2=Base.GuitarElectricBassBlue
|item_id3=Base.GuitarElectricBassRed
}}
An '''electric bass''' is a long blunt melee [[weapon]].
 
==Usage==
===Weapon===
The electric bass can attack up to 3 enemies at a time dealing a maximum of 1.4 damage to enemies (unless a critical hit) from up to 1.35 [[tiles]] away at an attack speed of 1.
 
===Breaking doors===
It is effective at bashing down [[Door|doors]], dealing 10 damage per hit.
 
==Condition==
The electric bass has a maximum condition of 12. Its rate of degradation is influenced by the [[Skills|long blunt]] and [[Skills|maintenance]] skills. The chance of losing [[durability]] can be simplified to the following formula: <code>1 in (9 + maintenanceMod &times; 2)</code>. Where "maintenanceMod" is calculated using the long blunt and maintenance skills.<br>
Below is an example of the chance of losing durability at varying levels of [[Skills|maintenance]] and [[Skills|long blunt]] levels.
{{Durability weapon|9}}
 
==Distribution==
The loot distributions can be found in the table(s) below.
 
<!--BOT FLAG|GuitarElectricBassBlue|41.78.16-->
{{clear}}
<div class="togglebox theme-red">
    <div>GuitarElectricBassBlue distribution
        <span class="mw-customtoggle-togglebox-GuitarElectricBassBlue" title="{{int:show}} / {{int:hide}}" style="float:right; padding-right:30px; padding-top:4px; font-size:0.7em; font-weight:normal;">{{int:show}} / {{int:hide}}</span></div>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-GuitarElectricBassBlue">
    <div class="toggle-content"><div style="display: flex;"><div style="float:left;">
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
    |+ {{ll|Containers}}
    ! Building / Room
    ! Container
    ! Rolls
    ! Chance
    |-
    | BandPractice
    | {{ll|crate}}
    | 4
    | 2.0
    |-
    | all
    | {{ll|Flightcase}}
    | 1
    | 5.0
    |-
    | all
    | {{ll|wardrobe}}
    | 4
    | 0.01
    |-
    | bedroom
    | {{ll|crate}}
    | 4
    | 4.0
    |-
    | bedroom
    | {{ll|crate}}
    | 1
    | 0.1
    |-
    | bedroom
    | {{ll|wardrobe}}
    | 4
    | 0.01
    |-
    | closet
    | {{ll|crate}}
    | 4
    | 4.0
    |-
    | closet
    | {{ll|metal_shelves}}
    | 4
    | 4.0
    |-
    | musicstore
    | {{ll|shelves}}
    | 4
    | 20.0
    |-
    | musicstore
    | {{ll|shelves}}
    | 1
    | 20.0
    |}
</div>
    </div><div style="clear:both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-GuitarElectricBassBlue" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|GuitarElectricBassBlue|41.78.16-->
 
<!--BOT FLAG|GuitarElectricBassRed|41.78.16-->
{{clear}}
<div class="togglebox theme-red">
    <div>GuitarElectricBassRed distribution
        <span class="mw-customtoggle-togglebox-GuitarElectricBassRed" title="{{int:show}} / {{int:hide}}" style="float:right; padding-right:30px; padding-top:4px; font-size:0.7em; font-weight:normal;">{{int:show}} / {{int:hide}}</span></div>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-GuitarElectricBassRed">
    <div class="toggle-content"><div style="display: flex;"><div style="float:left;">
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
    |+ {{ll|Containers}}
    ! Building / Room
    ! Container
    ! Rolls
    ! Chance
    |-
    | BandPractice
    | {{ll|crate}}
    | 4
    | 2.0
    |-
    | all
    | {{ll|Flightcase}}
    | 1
    | 5.0
    |-
    | all
    | {{ll|wardrobe}}
    | 4
    | 0.01
    |-
    | bedroom
    | {{ll|crate}}
    | 4
    | 4.0
    |-
    | bedroom
    | {{ll|crate}}
    | 1
    | 0.1
    |-
    | bedroom
    | {{ll|wardrobe}}
    | 4
    | 0.01
    |-
    | closet
    | {{ll|crate}}
    | 4
    | 4.0
    |-
    | closet
    | {{ll|metal_shelves}}
    | 4
    | 4.0
    |-
    | musicstore
    | {{ll|shelves}}
    | 4
    | 20.0
    |-
    | musicstore
    | {{ll|shelves}}
    | 1
    | 20.0
    |}
</div>
    </div><div style="clear:both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-GuitarElectricBassRed" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|GuitarElectricBassRed|41.78.16-->
 
<!--BOT FLAG|GuitarElectricBassBlack|41.78.16-->
{{clear}}
<div class="togglebox theme-red">
    <div>GuitarElectricBassBlack distribution
        <span class="mw-customtoggle-togglebox-GuitarElectricBassBlack" title="{{int:show}} / {{int:hide}}" style="float:right; padding-right:30px; padding-top:4px; font-size:0.7em; font-weight:normal;">{{int:show}} / {{int:hide}}</span></div>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-GuitarElectricBassBlack">
    <div class="toggle-content"><div style="display: flex;"><div style="float:left;">
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
    |+ {{ll|Containers}}
    ! Building / Room
    ! Container
    ! Rolls
    ! Chance
    |-
    | BandPractice
    | {{ll|crate}}
    | 4
    | 2.0
    |-
    | all
    | {{ll|Flightcase}}
    | 1
    | 5.0
    |-
    | all
    | {{ll|wardrobe}}
    | 4
    | 0.01
    |-
    | bedroom
    | {{ll|crate}}
    | 4
    | 4.0
    |-
    | bedroom
    | {{ll|crate}}
    | 1
    | 0.1
    |-
    | bedroom
    | {{ll|wardrobe}}
    | 4
    | 0.01
    |-
    | closet
    | {{ll|crate}}
    | 4
    | 4.0
    |-
    | closet
    | {{ll|metal_shelves}}
    | 4
    | 4.0
    |-
    | musicstore
    | {{ll|shelves}}
    | 4
    | 20.0
    |-
    | musicstore
    | {{ll|shelves}}
    | 1
    | 20.0
    |}
</div>
    </div><div style="clear:both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-GuitarElectricBassBlack" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|GuitarElectricBassBlack|41.78.16-->
 
==Code==
{{CodeBox|
[[File:BassElectricBlack.png]] ''Black Electric Bass''
{{CodeSnip
  | lang = java
  | line = true
  | start = 2966
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item GuitarElectricBassBlack
item GuitarElectricBassBlack
 
    {
        DisplayCategory = Instrument,
         MaxRange = 1.35,
         MaxRange = 1.35,
         MinAngle = 0.8,
         MinAngle = 0.8,
Line 46: Line 318:
         AttachmentType = Guitar,
         AttachmentType = Guitar,
     }
     }
}}


[[File:BassElectricBlue.png]] ''Blue Electric Bass''
{{CodeSnip
  | lang = java
  | line = true
  | start = 3010
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item GuitarElectricBassBlue
item GuitarElectricBassBlue
 
    {
        DisplayCategory = Instrument,
         MaxRange = 1.35,
         MaxRange = 1.35,
         MinAngle = 0.8,
         MinAngle = 0.8,
Line 88: Line 371:
         BaseSpeed = 1,
         BaseSpeed = 1,
         AttachmentType = Guitar,
         AttachmentType = Guitar,
    }
}}


[[File:BassElectricRed.png]] ''Red Electric Bass''
{{CodeSnip
  | lang = java
  | line = true
  | start = 3054
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item GuitarElectricBassRed
item GuitarElectricBassRed
 
    {
        DisplayCategory = Instrument,
         MaxRange = 1.35,
         MaxRange = 1.35,
         MinAngle = 0.8,
         MinAngle = 0.8,
Line 131: Line 425:
         BaseSpeed = 1,
         BaseSpeed = 1,
         AttachmentType = Guitar,
         AttachmentType = Guitar,
        {</nowiki>
    }
}}
}}
 
==See also==
*[[Acoustic Guitar]]
*[[Banjo]]
*[[Electric Guitar]]
*[[Violin]]
 
{{Navbox items|blunt}}
 
[[Category:Instruments]]

Latest revision as of 17:25, 24 April 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Electric Bass
Guitar ElectricBassBlack Model.png
Guitar ElectricBassBlue Model.png
Guitar ElectricBassRed Model.png
General
Category
Instrument
Encumbrance
Moodle Icon HeavyLoad.png
3.5
Equipped
One-handed
Slot attached
Back
Skill
Properties
Max condition
12
Performance
Damage type
Blunt
Damage
0.9–1.4
Door damage
10
Tree damage
0
Range
0.61–1.35
Attack speed
1
Knockback
0.3
Knockdown
1.5
Crit chance
70%
Technical
Item ID
Base.GuitarElectricBassBlack
Base.GuitarElectricBassBlue
Base.GuitarElectricBassRed

An electric bass is a long blunt melee weapon.

Usage

Weapon

The electric bass can attack up to 3 enemies at a time dealing a maximum of 1.4 damage to enemies (unless a critical hit) from up to 1.35 tiles away at an attack speed of 1.

Breaking doors

It is effective at bashing down doors, dealing 10 damage per hit.

Condition

The electric bass has a maximum condition of 12. Its rate of degradation is influenced by the long blunt and maintenance skills. The chance of losing durability can be simplified to the following formula: 1 in (9 + maintenanceMod × 2). Where "maintenanceMod" is calculated using the long blunt and maintenance skills.
Below is an example of the chance of losing durability at varying levels of maintenance and long blunt levels.

For how this is calculated, see: Durability
Maintenance skill Weapon skill Durability lower chance
0 0 1/9 (11%)
0 4 1/11 (9%)
0 8 1/13 (8%)
4 0 1/13 (8%)
8 0 1/17 (6%)
4 4 1/15 (7%)
4 8 1/17 (6%)
8 8 1/21 (5%)
10 10 1/23 (4%)

Distribution

The loot distributions can be found in the table(s) below.

GuitarElectricBassBlue distribution Show / Hide
Containers
Building / Room Container Rolls Chance
BandPractice crate 4 2.0
all Flightcase 1 5.0
all wardrobe 4 0.01
bedroom crate 4 4.0
bedroom crate 1 0.1
bedroom wardrobe 4 0.01
closet crate 4 4.0
closet metal_shelves 4 4.0
musicstore shelves 4 20.0
musicstore shelves 1 20.0
GuitarElectricBassRed distribution Show / Hide
Containers
Building / Room Container Rolls Chance
BandPractice crate 4 2.0
all Flightcase 1 5.0
all wardrobe 4 0.01
bedroom crate 4 4.0
bedroom crate 1 0.1
bedroom wardrobe 4 0.01
closet crate 4 4.0
closet metal_shelves 4 4.0
musicstore shelves 4 20.0
musicstore shelves 1 20.0
GuitarElectricBassBlack distribution Show / Hide
Containers
Building / Room Container Rolls Chance
BandPractice crate 4 2.0
all Flightcase 1 5.0
all wardrobe 4 0.01
bedroom crate 4 4.0
bedroom crate 1 0.1
bedroom wardrobe 4 0.01
closet crate 4 4.0
closet metal_shelves 4 4.0
musicstore shelves 4 20.0
musicstore shelves 1 20.0

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

BassElectricBlack.png Black Electric Bass Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item GuitarElectricBassBlack
    {
        DisplayCategory = Instrument,
        MaxRange	=	1.35,
        MinAngle	=	0.8,
        WeaponSprite	=	Guitar_ElectricBassBlack,
        Type	=	Weapon,
        MinimumSwingTime	=	3.0,
        KnockBackOnNoDeath	=	TRUE,
        Categories	=	Blunt,
        ConditionLowerChanceOneIn	=	9,
        Weight	=	3.5,
        SplatNumber	=	1,
        PushBackMod	=	0.3,
        SubCategory	=	Swinging,
        ConditionMax	=	12,
        MaxHitCount	=	3,
        DoorDamage	=	10,
        IdleAnim	=	Idle_Weapon2,
        SwingAnim	=	Heavy,
        DisplayName	=	Black Electric Bass,
        MinRange	=	0.61,
        SwingTime	=	3.0,
        HitAngleMod	=	-30,
        SplatSize	=	5,
        KnockdownMod	=	1.5,
        SplatBloodOnNoDeath	=	TRUE,
        Icon	=	BassElectricBlack,
        RunAnim	=	Run_Weapon2,
        TwoHandWeapon = TRUE,
        BreakSound  =   ElectricBassBreak,
        DoorHitSound = ElectricBassHit,
		HitSound = ElectricBassHit,
		HitFloorSound = ElectricBassHit,
		SwingSound = ElectricBassSwing,
        TreeDamage  =   0,
        CriticalChance	=	70,
        CritDmgMultiplier = 2,
        MinDamage	=	0.9,
        MaxDamage	=	1.4,
        BaseSpeed = 1,
        AttachmentType = Guitar,
    }

BassElectricBlue.png Blue Electric Bass Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item GuitarElectricBassBlue
    {
        DisplayCategory = Instrument,
        MaxRange	=	1.35,
        MinAngle	=	0.8,
        WeaponSprite	=	Guitar_ElectricBassBlue,
        Type	=	Weapon,
        MinimumSwingTime	=	3.0,
        KnockBackOnNoDeath	=	TRUE,
        Categories	=	Blunt,
        ConditionLowerChanceOneIn	=	9,
        Weight	=	3.5,
        SplatNumber	=	1,
        PushBackMod	=	0.3,
        SubCategory	=	Swinging,
        ConditionMax	=	12,
        MaxHitCount	=	3,
        DoorDamage	=	10,
        IdleAnim	=	Idle_Weapon2,
        SwingAnim	=	Heavy,
        DisplayName	=	Blue Electric Bass,
        MinRange	=	0.61,
        SwingTime	=	3.0,
        HitAngleMod	=	-30,
        SplatSize	=	5,
        KnockdownMod	=	1.5,
        SplatBloodOnNoDeath	=	TRUE,
        Icon	=	BassElectricBlue,
        RunAnim	=	Run_Weapon2,
        TwoHandWeapon = TRUE,
        BreakSound  =   ElectricBassBreak,
        DoorHitSound = ElectricBassHit,
		HitSound = ElectricBassHit,
		HitFloorSound = ElectricBassHit,
		SwingSound = ElectricBassSwing,
        TreeDamage  =   0,
        CriticalChance	=	70,
        CritDmgMultiplier = 2,
        MinDamage	=	0.9,
        MaxDamage	=	1.4,
        BaseSpeed = 1,
        AttachmentType = Guitar,
    }

BassElectricRed.png Red Electric Bass Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item GuitarElectricBassRed
    {
        DisplayCategory = Instrument,
        MaxRange	=	1.35,
        MinAngle	=	0.8,
        WeaponSprite	=	Guitar_ElectricBassRed,
        Type	=	Weapon,
        MinimumSwingTime	=	3.0,
        KnockBackOnNoDeath	=	TRUE,
        Categories	=	Blunt,
        ConditionLowerChanceOneIn	=	9,
        Weight	=	3.5,
        SplatNumber	=	1,
        PushBackMod	=	0.3,
        SubCategory	=	Swinging,
        ConditionMax	=	12,
        MaxHitCount	=	3,
        DoorDamage	=	10,
        IdleAnim	=	Idle_Weapon2,
        SwingAnim	=	Heavy,
        DisplayName	=	Red Electric Bass,
        MinRange	=	0.61,
        SwingTime	=	3.0,
        HitAngleMod	=	-30,
        SplatSize	=	5,
        KnockdownMod	=	1.5,
        SplatBloodOnNoDeath	=	TRUE,
        Icon	=	BassElectricRed,
        RunAnim	=	Run_Weapon2,
        TwoHandWeapon = TRUE,
        BreakSound  =   ElectricBassBreak,
        DoorHitSound = ElectricBassHit,
		HitSound = ElectricBassHit,
		HitFloorSound = ElectricBassHit,
		SwingSound = ElectricBassSwing,
        TreeDamage  =   0,
        CriticalChance	=	70,
        CritDmgMultiplier = 2,
        MinDamage	=	0.9,
        MaxDamage	=	1.4,
        BaseSpeed = 1,
        AttachmentType = Guitar,
    }

See also