Coder Social home page Coder Social logo

Deafness bug about ntstation13 HOT 2 CLOSED

ntstation avatar ntstation commented on August 16, 2024
Deafness bug

from ntstation13.

Comments (2)

Iamgoofball avatar Iamgoofball commented on August 16, 2024

Comment by Malkevin from Friday Jan 10, 2014 at 20:48 GMT


in living\carbon\human\life.dm:

 //Ears
    if(sdisabilities & DEAF)    //disabled-deaf, doesn't get better on its own
        ear_deaf = max(ear_deaf, 1)
    else if(ear_deaf)           //deafness, heals slowly over time
        ear_deaf = max(ear_deaf-1, 0)
    else if(istype(ears, /obj/item/clothing/ears/earmuffs)) //resting your ears with earmuffs heals ear damage faster
        ear_damage = max(ear_damage-0.15, 0)
        ear_deaf = max(ear_deaf, 1)
    else if(ear_damage < 25)    //ear damage heals slowly under this threshold. otherwise you'll need earmuffs
        ear_damage = max(ear_damage-0.05, 0)

There is a check that if ear_damage is over 25 it wont heal on its own unless you wear earmuffs.
Ear_damage is a superfluous var and doesn't actually do jack shit as far as I can tell.

Ear_deaf is the var that's checked in the procs for playing sounds and hearing things speak.

from ntstation13.

Iamgoofball avatar Iamgoofball commented on August 16, 2024

Comment by Malkevin from Friday Jan 10, 2014 at 21:07 GMT


@malkevin - looking into it

from ntstation13.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.