Skip to content

Refactor all occurrences of 'sheild' to 'shield' for clarity and consistency #1

@GitJohnFis

Description

@GitJohnFis

Overview

Throughout the codebase, the variable and constant name 'sheild' is used instead of the correct spelling 'shield'. This includes class attributes, method names, and constants such as PLAYER_SHEILD_TIME. Refactoring these to 'shield' will improve code readability and maintainability.

Scope

  • Rename all instances of sheild (including variables, attributes, and constants) to shield.
  • Ensure that method names such as activate_sheild become activate_shield.
  • Update any references to these identifiers in other parts of the codebase.
  • Run the code to verify that all references have been updated and nothing is broken due to the renaming.

Example

Before:

def activate_sheild(self):
    self.sheild_active = True
    self.sheild_timer = PLAYER_SHEILD_TIME

After:

def activate_shield(self):
    self.shield_active = True
    self.shield_timer = PLAYER_SHIELD_TIME

Why this is a good first issue

  • This is a straightforward find-and-replace refactor suitable for beginners.
  • It improves overall code consistency and professionalism.
  • It can be completed without deep knowledge of the codebase.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions